|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.JSpinner.DisabledAction
An Action implementation that is always disabled.
| Field Summary |
| Fields inherited from interface javax.swing.Action |
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON |
| Constructor Summary | |
private |
JSpinner.DisabledAction()
|
| Method Summary | |
void |
actionPerformed(ActionEvent ae)
Invoked when an action occurs. |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener l)
Adds a PropertyChange listener. |
Object |
getValue(String key)
Gets one of this object's properties using the associated key. |
boolean |
isEnabled()
Returns the enabled state of the Action. |
void |
putValue(String key,
Object value)
Sets one of this object's properties using the associated key. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener l)
Removes a PropertyChange listener. |
void |
setEnabled(boolean b)
Sets the enabled state of the Action. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
private JSpinner.DisabledAction()
| Method Detail |
public Object getValue(String key)
Action
getValue in interface ActionAction.putValue(java.lang.String, java.lang.Object)
public void putValue(String key,
Object value)
ActionPropertyChangeEvent is sent
to listeners.
putValue in interface Actionkey - a String containing the keyvalue - an Object valuepublic void setEnabled(boolean b)
ActionAction. When enabled,
any component associated with this object is active and
able to fire this object's actionPerformed method.
If the value has changed, a PropertyChangeEvent is sent
to listeners.
setEnabled in interface Actionb - true to enable this Action, false to disable itpublic boolean isEnabled()
ActionAction. When enabled,
any component associated with this object is active and
able to fire this object's actionPerformed method.
isEnabled in interface ActionAction is enabledpublic void addPropertyChangeListener(java.beans.PropertyChangeListener l)
ActionPropertyChange listener. Containers and attached
components use these methods to register interest in this
Action object. When its enabled state or other property
changes, the registered listeners are informed of the change.
addPropertyChangeListener in interface Actionl - a PropertyChangeListener objectpublic void removePropertyChangeListener(java.beans.PropertyChangeListener l)
ActionPropertyChange listener.
removePropertyChangeListener in interface Actionl - a PropertyChangeListener objectAction.addPropertyChangeListener(java.beans.PropertyChangeListener)public void actionPerformed(ActionEvent ae)
ActionListener
actionPerformed in interface ActionListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||