org.xnap.commons.gui.action
Class AbstractXNapAction
java.lang.Object
   javax.swing.AbstractAction
javax.swing.AbstractAction
       org.xnap.commons.gui.action.AbstractXNapAction
org.xnap.commons.gui.action.AbstractXNapAction
- All Implemented Interfaces: 
- ActionListener, Serializable, Cloneable, EventListener, Action
- Direct Known Subclasses: 
- AbstractSelectionAction, AbstractSingleSelectionAction, AbstractToggleAction, ClearCompletionModelAction, ColorChooserPanel.ColorChooserAction, DirectoryChooser.HomeAction, EraseTextFieldAction, WhatsThisAction, WizardDialog.FinishAction, WizardDialog.NextAction, WizardDialog.PreviousAction
- public abstract class AbstractXNapAction 
- extends AbstractAction
Provides an abstract action. All actions should inherit this class,
 since it provides a few convenience methods.
- See Also:
- Serialized Form
 
 
 
 
 
 
 
 
ICON_FILENAME
public static final String ICON_FILENAME
- See Also:
- Constant Field Values
AbstractXNapAction
public AbstractXNapAction()
setEnabledLater
public void setEnabledLater(boolean enabled)
- Enables/disables the action in the swing thread by calling 
 SwingUtilities.invokeLater(java.lang.Runnable).
 
- 
- Parameters:
- enabled- parameter passed to- Action.setEnabled(boolean).
 
tr
protected String tr(String text)
- Convenience method for translating which can be used by subclasses.
 
 This works because subclasses are in their own package, so the right
 resource bundle can be chosen.
 
 
- 
 
tr
protected String tr(String text,
                    Object... objects)
- See tr(String)andI18n.tr(String, Object[]).
 
- 
 
getIcon
public static Icon getIcon(AbstractButton button,
                           String filename)
- 
 
initialize
public static void initialize(AbstractButton button,
                              Action action)
- 
 
Copyright © 2004-2007 XNap Commons Team. All Rights Reserved.