public abstract class AbstractXAction extends AbstractAction implements XAction
changeSupport, enabled
LARGE_DISABLED_ICON, LARGE_DISABLED_SELECTED_ICON, LARGE_ICON, LARGE_PRESSED_ICON, LARGE_ROLLOVER_ICON, LARGE_ROLLOVER_SELECTED_ICON, LARGE_SELECTED_ICON, SMALL_DISABLED_ICON, SMALL_DISABLED_SELECTED_ICON, SMALL_PRESSED_ICON, SMALL_ROLLOVER_ICON, SMALL_ROLLOVER_SELECTED_ICON, SMALL_SELECTED_ICON
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 |
---|
AbstractXAction()
Creates an empty AbstractXAction.
|
Modifier and Type | Method and Description |
---|---|
KeyStroke |
getAccelerator()
Gets the value from the key Action.ACCELERATOR_KEY
|
String |
getActionCommand()
Gets the value from the key Action.ACTION_COMMAND_KEY
|
Icon |
getLargeDisabledIcon()
Gets the value from the key XAction.LARGE_DISABLED_ICON
|
Icon |
getLargeDisabledSelectedIcon()
Gets the value from the key XAction.LARGE_DISABLED_SELECTED_ICON
|
Icon |
getLargeIcon()
Gets the value from the key XAction.LARGE_ICON
|
Icon |
getLargePressedIcon()
Gets the value from the key XAction.LARGE_PRESSED_ICON
|
Icon |
getLargeRolloverIcon()
Gets the value from the key XAction.LARGE_ROLLOVER_ICON
|
Icon |
getLargeRolloverSelectedIcon()
Gets the value from the key XAction.LARGE_ROLLOVER_SELECTED_ICON
|
Icon |
getLargeSelectedIcon()
Gets the value from the key XAction.LARGE_SELECTED_ICON
|
String |
getLongDescription()
Gets the value from the key Action.LONG_DESCRIPTION
|
int |
getMnemonicKey()
Gets the value from the key Action.MNEMONIC_KEY
|
String |
getName()
Gets the value from the key Action.NAME
|
String |
getShortDescription()
Gets the value from the key Action.SHORT_DESCRIPTION
|
Icon |
getSmallDisabledIcon()
Gets the value from the key XAction.SMALL_DISABLED_ICON
|
Icon |
getSmallDisabledSelectedIcon()
Gets the value from the key XAction.SMALL_DISABLED_SELECTED_ICON
|
Icon |
getSmallIcon()
Gets the value from the key Action.SMALL_ICON
|
Icon |
getSmallPressedIcon()
Gets the value from the key XAction.SMALL_PRESSED_ICON
|
Icon |
getSmallRolloverIcon()
Gets the value from the key XAction.SMALL_ROLLOVER_ICON
|
Icon |
getSmallRolloverSelectedIcon()
Gets the value from the key XAction.SMALL_ROLLOVER_SELECTED_ICON
|
Icon |
getSmallSelectedIcon()
Gets the value from the key XAction.SMALL_SELECTED_ICON
|
void |
setAccelerator(KeyStroke keyStroke)
Sets the value for the key Action.ACCELERATOR_KEY
|
void |
setActionCommand(String actionCommand)
Sets the value for the key Action.ACTION_COMMAND_KEY
|
void |
setLargeDisabledIcon(Icon icon)
Sets the value for the key XAction.LARGE_DISABLED_ICON
|
void |
setLargeDisabledSelectedIcon(Icon icon)
Sets the value for the key XAction.LARGE_DISABLED_SELECTED_ICON
|
void |
setLargeIcon(Icon icon)
Sets the value for the key XAction.LARGE_ICON
|
void |
setLargePressedIcon(Icon icon)
Sets the value for the key XAction.LARGE_PRESSED_ICON
|
void |
setLargeRolloverIcon(Icon icon)
Sets the value for the key XAction.LARGE_ROLLOVER_ICON
|
void |
setLargeRolloverSelectedIcon(Icon icon)
Sets the value for the key XAction.LARGE_ROLLOVER_SELECTED_ICON
|
void |
setLargeSelectedIcon(Icon icon)
Sets the value for the key XAction.LARGE_SELECTED_ICON
|
void |
setLongDescription(String longDescription)
Sets the value for the key Action.LONG_DESCRIPTION
|
void |
setMnemonicKey(int mnemonicKey)
Sets the value for the key Action.MNEMONIC_KEY
|
void |
setName(String name)
Sets the value for the key Action.NAME
|
void |
setShortDescription(String shortDescription)
Sets the value for the key Action.SHORT_DESCRIPTION
|
void |
setSmallDisabledIcon(Icon icon)
Sets the value for the key XAction.SMALL_DISABLED_ICON
|
void |
setSmallDisabledSelectedIcon(Icon icon)
Sets the value for the key XAction.SMALL_DISABLED_SELECTED_ICON
|
void |
setSmallIcon(Icon icon)
Sets the value for the key Action.SMALL_ICON
|
void |
setSmallPressedIcon(Icon icon)
Sets the value for the key XAction.SMALL_PRESSED_ICON
|
void |
setSmallRolloverIcon(Icon icon)
Sets the value for the key XAction.SMALL_ROLLOVER_ICON
|
void |
setSmallRolloverSelectedIcon(Icon icon)
Sets the value for the key XAction.SMALL_ROLLOVER_SELECTED_ICON
|
void |
setSmallSelectedIcon(Icon icon)
Sets the value for the key XAction.SMALL_SELECTED_ICON
|
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addPropertyChangeListener, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
actionPerformed
public KeyStroke getAccelerator()
getAccelerator
in interface XAction
public void setAccelerator(KeyStroke keyStroke)
setAccelerator
in interface XAction
keyStroke
- The new accelerator valuepublic String getActionCommand()
getActionCommand
in interface XAction
public void setActionCommand(String actionCommand)
setActionCommand
in interface XAction
actionCommand
- the action commandpublic Icon getLargeDisabledIcon()
getLargeDisabledIcon
in interface XAction
public void setLargeDisabledIcon(Icon icon)
setLargeDisabledIcon
in interface XAction
icon
- the large disabled iconpublic Icon getLargeDisabledSelectedIcon()
getLargeDisabledSelectedIcon
in interface XAction
public void setLargeDisabledSelectedIcon(Icon icon)
setLargeDisabledSelectedIcon
in interface XAction
icon
- the large disabled selected iconpublic Icon getLargeIcon()
getLargeIcon
in interface XAction
public void setLargeIcon(Icon icon)
setLargeIcon
in interface XAction
icon
- the large iconpublic Icon getLargePressedIcon()
getLargePressedIcon
in interface XAction
public void setLargePressedIcon(Icon icon)
setLargePressedIcon
in interface XAction
icon
- the large pressed iconpublic Icon getLargeRolloverIcon()
getLargeRolloverIcon
in interface XAction
public void setLargeRolloverIcon(Icon icon)
setLargeRolloverIcon
in interface XAction
icon
- the large rollover iconpublic Icon getLargeRolloverSelectedIcon()
getLargeRolloverSelectedIcon
in interface XAction
public void setLargeRolloverSelectedIcon(Icon icon)
setLargeRolloverSelectedIcon
in interface XAction
icon
- the large rollover selected iconpublic Icon getLargeSelectedIcon()
getLargeSelectedIcon
in interface XAction
public void setLargeSelectedIcon(Icon icon)
setLargeSelectedIcon
in interface XAction
icon
- the large selected iconpublic String getLongDescription()
getLongDescription
in interface XAction
public void setLongDescription(String longDescription)
setLongDescription
in interface XAction
longDescription
- the long descriptionpublic int getMnemonicKey()
getMnemonicKey
in interface XAction
public void setMnemonicKey(int mnemonicKey)
setMnemonicKey
in interface XAction
mnemonicKey
- The new mnemonicKey valuepublic String getName()
public void setName(String name)
public String getShortDescription()
getShortDescription
in interface XAction
public void setShortDescription(String shortDescription)
setShortDescription
in interface XAction
shortDescription
- the short descriptionpublic Icon getSmallDisabledIcon()
getSmallDisabledIcon
in interface XAction
public void setSmallDisabledIcon(Icon icon)
setSmallDisabledIcon
in interface XAction
icon
- the small disabled iconpublic Icon getSmallDisabledSelectedIcon()
getSmallDisabledSelectedIcon
in interface XAction
public void setSmallDisabledSelectedIcon(Icon icon)
setSmallDisabledSelectedIcon
in interface XAction
icon
- the small disabled selected iconpublic Icon getSmallIcon()
getSmallIcon
in interface XAction
public void setSmallIcon(Icon icon)
setSmallIcon
in interface XAction
icon
- the small iconpublic Icon getSmallPressedIcon()
getSmallPressedIcon
in interface XAction
public void setSmallPressedIcon(Icon icon)
setSmallPressedIcon
in interface XAction
icon
- the small pressed iconpublic Icon getSmallRolloverIcon()
getSmallRolloverIcon
in interface XAction
public void setSmallRolloverIcon(Icon icon)
setSmallRolloverIcon
in interface XAction
icon
- the small rollover iconpublic Icon getSmallRolloverSelectedIcon()
getSmallRolloverSelectedIcon
in interface XAction
public void setSmallRolloverSelectedIcon(Icon icon)
setSmallRolloverSelectedIcon
in interface XAction
icon
- the small rollover selected iconpublic Icon getSmallSelectedIcon()
getSmallSelectedIcon
in interface XAction
public void setSmallSelectedIcon(Icon icon)
setSmallSelectedIcon
in interface XAction
icon
- the small selected iconCopyright © 2002–2016 SoftSmithy. All rights reserved.