de.schwarzrot.ui.action
Class ApplicationCommand
java.lang.Object
javax.swing.AbstractAction
de.schwarzrot.ui.action.ApplicationCommand
- All Implemented Interfaces:
- ActionListener, Serializable, Cloneable, EventListener, Action
public class ApplicationCommand
- extends AbstractAction
action base class for applications. ApplicationCommand
extends
AbstractAction
with localized lookup of text- and image- resources.
It also implements the famous actionPerformed
, so the use of this
class will reduce the anonymous classes a lot. ApplicationCommand
uses ActionCallback
s to bind to application methods.
- Author:
- Reinhard Mantey
- See Also:
- Serialized Form
Fields inherited from interface javax.swing.Action |
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON |
ACCESS_GRANTED_KEY
public static final String ACCESS_GRANTED_KEY
- See Also:
- Constant Field Values
ACCESS_MODE_KEY
public static final String ACCESS_MODE_KEY
- See Also:
- Constant Field Values
APPLICATION_EVENT_PUBLISHER_KEY
public static final String APPLICATION_EVENT_PUBLISHER_KEY
- See Also:
- Constant Field Values
APPLICATION_ID_KEY
public static final String APPLICATION_ID_KEY
- See Also:
- Constant Field Values
APPLICATION_CALLBACK_KEY
public static final String APPLICATION_CALLBACK_KEY
- See Also:
- Constant Field Values
ApplicationCommand
public ApplicationCommand(String actionID,
Application<?> app,
AbstractActionCallback cb)
ApplicationCommand
public ApplicationCommand(String actionID,
String appID,
AbstractActionCallback cb)
ApplicationCommand
public ApplicationCommand(String actionID,
String appID,
AbstractActionCallback cb,
int mnemonic,
AccessMode mode)
actionPerformed
public final void actionPerformed(ActionEvent ae)
getAccessMode
public AccessMode getAccessMode()
getActionId
public String getActionId()
getApplicationID
public String getApplicationID()
isPermitted
public Boolean isPermitted()
getActionCallback
protected AbstractActionCallback getActionCallback()
setAccessMode
protected void setAccessMode(AccessMode accessMode)
setActionCallback
protected void setActionCallback(AbstractActionCallback cb)
setApplicationID
protected void setApplicationID(String appID)
setPermitted
protected void setPermitted(boolean permitted)
Submit
a bug or request a feature
SRJRCFrames is published according to the
GNU General Public License
Copyright 2005-2012
Reinhard Mantey - some rights reserved.