|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.AbstractAction
net.sf.doolin.gui.action.support.AbstractSwingAction
public abstract class AbstractSwingAction
Ancestor for Swing Actions used in the Doolin GUI
framework.
| Field Summary | |
|---|---|
static String |
VISIBLE_PROPERTY
Property name for the visibility state of the action. |
| Fields inherited from class javax.swing.AbstractAction |
|---|
changeSupport, enabled |
| 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 |
| Constructor Summary | |
|---|---|
AbstractSwingAction()
|
|
| Method Summary | |
|---|---|
boolean |
isVisible()
Checks if the action is visible. |
void |
setIcon(Icon icon)
Sets the icon for this action |
void |
setShortcut(String shortcut)
Sets the shortcut for this action |
void |
setState(DisplayState state)
Sets the state for the action |
void |
setText(String text)
Sets the text of the action, taking case of any declared mnemonic. |
void |
setTip(String tip)
Sets the tip for this action |
void |
setVisible(boolean visible)
Sets the visibility of the action. |
| Methods inherited from class javax.swing.AbstractAction |
|---|
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.awt.event.ActionListener |
|---|
actionPerformed |
| Field Detail |
|---|
public static final String VISIBLE_PROPERTY
| Constructor Detail |
|---|
public AbstractSwingAction()
| Method Detail |
|---|
public boolean isVisible()
true if the action is visiblepublic void setIcon(Icon icon)
icon - Icon to setpublic void setShortcut(String shortcut)
shortcut - Encoded form of the shortcutAWTKeyStroke.getAWTKeyStroke(String)public void setState(DisplayState state)
state - State to setAbstractAction.setEnabled(boolean),
setVisible(boolean)public void setText(String text)
text - Text of the actionMnemonicInfo.configureAction(javax.swing.Action)public void setTip(String tip)
tip - Tippublic void setVisible(boolean visible)
property.
visible - New visibility of the action
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||