|
||||||||||
| 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.DefaultDockableStateAction
public class DefaultDockableStateAction
This is the default action to change the state of the dockable.
| 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 | |
|---|---|
DefaultDockableStateAction(Dockable dockable,
int newDockableState)
Constructs an action to put the dockable in the given state. |
|
DefaultDockableStateAction(Dockable dockable,
int newDockableState,
java.lang.String name)
Constructs an action to put the dockable in the given state. |
|
DefaultDockableStateAction(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 |
| Methods inherited from interface javax.swing.Action |
|---|
addPropertyChangeListener, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled |
| Constructor Detail |
|---|
public DefaultDockableStateAction(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 DefaultDockableStateAction(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 DefaultDockableStateAction(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)
actionPerformed in interface java.awt.event.ActionListenerpublic Dockable getDockable()
DockableStateAction
getDockable in interface DockableStateActionpublic int getNewDockableState()
DockableStateActionDockableState.
getNewDockableState in interface DockableStateActionpublic void setDockable(Dockable dockable)
dockable - The dockable whose state is changed by this action.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 | |||||||||