de.kleopatra.view.presentation
Class DefaultPresentationManager.ButtonCustomizer
java.lang.Object
de.kleopatra.view.presentation.DefaultPresentationManager.DefaultComponentCustomizer
de.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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultPresentationManager.ButtonCustomizer
public DefaultPresentationManager.ButtonCustomizer()
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.