|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.AbstractAction
com.javadocking.dockable.action.DockableStateAction
public class DockableStateAction
This is an action to change the state the dockable.
The new state for the dockable is defined by an integer.
This is an integer constant defined by DockableState
.
Field Summary |
---|
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 | |
---|---|
DockableStateAction(Dockable dockable,
int newDockableState)
Constructs an action to put the dockable in the given state. |
|
DockableStateAction(Dockable dockable,
int newDockableState,
java.lang.String name)
Constructs an action to put the dockable in the given state. |
|
DockableStateAction(Dockable dockable,
int newDockableState,
java.lang.String name,
javax.swing.Icon icon)
|
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent actionEvent)
|
Dockable |
getDockable()
Gets the dockable whose state is changed by this action. |
int |
getNewDockableState()
Gets the state in which the dockable should be after performing the action. |
void |
setDockable(Dockable dockable)
Sets the dockable whose state is changed by this action. |
void |
setNewDockableState(int newWindowState)
Sets the state in which the dockable should be after performing 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 |
Constructor Detail |
---|
public DockableStateAction(Dockable dockable, int newDockableState)
dockable
- The state of this dockable will be changed by this action.newDockableState
- The new state for the dockable. This is a constant defined by DockableState
.public DockableStateAction(Dockable dockable, int newDockableState, java.lang.String name)
dockable
- The state of this dockable will be changed by this action.newDockableState
- The new state for the dockable. This is a constant defined by DockableState
.name
- The name and short description of the action.public DockableStateAction(Dockable dockable, int newDockableState, java.lang.String name, javax.swing.Icon icon)
dockable
- The state of this dockable will be changed by this action.newDockableState
- The new state for the dockable. This is a constant defined by DockableState
.name
- The name and short description of the action.icon
- The icon of the action.Method Detail |
---|
public void actionPerformed(java.awt.event.ActionEvent actionEvent)
public Dockable getDockable()
public void setDockable(Dockable dockable)
dockable
- The dockable whose state is changed by this action.public int getNewDockableState()
DockableState
.
public void setNewDockableState(int newWindowState)
DockableState
.
newWindowState
- The state in which the dockable should be after performing the action.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |