de.kleopatra.view.presentation
Class DefaultPresentationManager.ButtonCustomizer

java.lang.Object
  extended byde.kleopatra.view.presentation.DefaultPresentationManager.DefaultComponentCustomizer
      extended byde.kleopatra.view.presentation.DefaultPresentationManager.ButtonCustomizer
All Implemented Interfaces:
ComponentCustomizer
Enclosing class:
DefaultPresentationManager

public static class DefaultPresentationManager.ButtonCustomizer
extends DefaultPresentationManager.DefaultComponentCustomizer

Customizer for AbstractButtons.

if the button's action is null let the current ActionFactory create a default action with the button's id as actionCommand and register the action on the factories list with the current group id (that's why we need the hacky static access to the PresentationManager's current id and factory) and set the action to the button.

customize the action with the presentation attributes: name, accelerator (? buttons not listening), tooltip, icon, long description, mnemonic.


Constructor Summary
DefaultPresentationManager.ButtonCustomizer()
           
 
Method Summary
protected  javax.swing.Action createDefaultAction(java.lang.String actionCommand)
           
 void customize(java.awt.Component comp, PresentationDescription desc, java.lang.Class clazz)
           
 void customizeButton(javax.swing.AbstractButton button, PresentationDescription desc, java.lang.Class clazz)
           
 
Methods inherited from class de.kleopatra.view.presentation.DefaultPresentationManager.DefaultComponentCustomizer
createDescription, createPresentationDescription, customize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultPresentationManager.ButtonCustomizer

public DefaultPresentationManager.ButtonCustomizer()
Method Detail

customize

public void customize(java.awt.Component comp,
                      PresentationDescription desc,
                      java.lang.Class clazz)
Specified by:
customize in interface ComponentCustomizer
Overrides:
customize in class DefaultPresentationManager.DefaultComponentCustomizer

customizeButton

public void customizeButton(javax.swing.AbstractButton button,
                            PresentationDescription desc,
                            java.lang.Class clazz)

createDefaultAction

protected javax.swing.Action createDefaultAction(java.lang.String actionCommand)


Copyright © 2003, 2004 SwingEmpire Jeanette Winzenburg. All Rights Reserved.