public class EZBasicAction extends AbstractAction
Modifier and Type | Field and Description |
---|---|
static String |
GLOBAL_UPDT_PROP
property name used by this.fireUpdate().
|
changeSupport, enabled
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
Constructor and Description |
---|
EZBasicAction()
Default constructor.
|
EZBasicAction(Object usrObject)
Construction with a user object.
|
EZBasicAction(Object usrObject,
String name)
Basic constructor with a user object and a key name.
|
EZBasicAction(Object usrObject,
String name,
Icon icon)
Basic constructor with a user object, a key name and an icon.
|
EZBasicAction(String name)
Basic constructor with a key name.
|
EZBasicAction(String name,
Icon icon)
Basic constructor a key name and an icon.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent e)
Implementation of AbstractAction method.
|
protected void |
fireUpdate()
Sends an update notification message to this action property change
listeners.
|
protected String |
getClassNameWithoutPackage(Class<?> cl) |
String |
getKeyName()
Returns the key name of the action.
|
Object |
getUserObject()
Returns the user object associated to this action.
|
boolean |
isValidForThisOsMenu()
Figures out if this Action can be displayed in Menus for
the current OS.
|
void |
setKeyName(String name)
Sets the key name of this action.
|
void |
setUserObject(Object usrObject)
Sets the user object.
|
void |
update()
Enable or disable this action.
|
void |
validForThisOsMenu(boolean b)
Sets whether or not this Action can be displayed in Menus for
the current OS.
|
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
public static final String GLOBAL_UPDT_PROP
public EZBasicAction()
public EZBasicAction(Object usrObject)
public EZBasicAction(String name)
public EZBasicAction(Object usrObject, String name)
public EZBasicAction(Object usrObject, String name, Icon icon)
public String getKeyName()
public void setKeyName(String name)
public void update()
public void setUserObject(Object usrObject)
public Object getUserObject()
public void validForThisOsMenu(boolean b)
public boolean isValidForThisOsMenu()
protected void fireUpdate()
public void actionPerformed(ActionEvent e)
Plealog Software - 2003-2017