public abstract class IdentifiableAction extends AbstractAction implements Identifiable
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
Modifier | Constructor and Description |
---|---|
protected |
IdentifiableAction(String name,
IconBundle iconBundle)
Create a new abstract identifiable action with the specified name
and icon bundle.
|
Modifier and Type | Method and Description |
---|---|
IconBundle |
getIconBundle()
Return the icon bundle for this identifiable object.
|
String |
getName()
Return the name of this identifiable object.
|
void |
setIconBundle(IconBundle iconBundle)
Set the icon bundle for this identifiable action to
iconBundle . |
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
actionPerformed
protected IdentifiableAction(String name, IconBundle iconBundle)
name
- name for this identifiable actioniconBundle
- icon bundle for this identifiable action, must
not be nullpublic final void setIconBundle(IconBundle iconBundle)
iconBundle
.
This is a bound property.
iconBundle
- icon bundle for this identifiable action, must not be nullpublic final String getName()
Identifiable
getName
in interface Identifiable
public final IconBundle getIconBundle()
Identifiable
getIconBundle
in interface Identifiable
Copyright (c) 2003-2019 held jointly by the individual authors. Licensed under the GNU Lesser General Public License (LGPL).