public abstract class DockingWindowAction extends java.lang.Object implements java.io.Serializable, IconProvider
DockingWindow
. It has a name and an optional icon.Constructor and Description |
---|
DockingWindowAction() |
Modifier and Type | Method and Description |
---|---|
SimpleAction |
getAction(DockingWindow window)
Creates a simple action that performs this action on a window.
|
javax.swing.Icon |
getIcon()
Returns the optional icon of this action.
|
abstract java.lang.String |
getName()
Returns the name of this action.
|
abstract boolean |
isPerformable(DockingWindow window)
Returns true if this action is performable on a window.
|
abstract void |
perform(DockingWindow window)
Performs this action on a window.
|
java.lang.String |
toString() |
public abstract java.lang.String getName()
public abstract void perform(DockingWindow window)
window
- the window on which to perform the actionpublic abstract boolean isPerformable(DockingWindow window)
window
- the window on which the action will be performedpublic SimpleAction getAction(DockingWindow window)
window
- the window on which to perform the actionpublic javax.swing.Icon getIcon()
getIcon
in interface IconProvider
public java.lang.String toString()
toString
in class java.lang.Object