Package net.infonode.docking.action
Class DockingWindowAction
java.lang.Object
net.infonode.docking.action.DockingWindowAction
- All Implemented Interfaces:
Serializable
,IconProvider
- Direct Known Subclasses:
CloseOthersWindowAction
,CloseWindowAction
,CloseWithAbortWindowAction
,DockWindowAction
,DockWithAbortWindowAction
,MaximizeWindowAction
,MaximizeWithAbortWindowAction
,MinimizeWithAbortWindowAction
,NullWindowAction
,RestoreFocusWindowAction
,RestoreParentWindowAction
,RestoreParentWithAbortWindowAction
,RestoreViewWithAbortTitleBarAction
,RestoreWithAbortWindowAction
,StateDependentWindowAction
,UndockWindowAction
,UndockWithAbortWindowAction
An action that can be performed on a
DockingWindow
. It has a name and an optional icon.- Since:
- IDW 1.3.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAction
(DockingWindow window) Creates a simple action that performs this action on a window.getIcon()
Returns the optional icon of this action.abstract 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.toString()
-
Constructor Details
-
DockingWindowAction
public DockingWindowAction()
-
-
Method Details
-
getName
Returns the name of this action.- Returns:
- the name of this action
-
perform
Performs this action on a window.- Parameters:
window
- the window on which to perform the action
-
isPerformable
Returns true if this action is performable on a window.- Parameters:
window
- the window on which the action will be performed- Returns:
- true if this action is performable on the window
-
getAction
Creates a simple action that performs this action on a window.- Parameters:
window
- the window on which to perform the action- Returns:
- the action that performs this action on a window.
-
getIcon
Returns the optional icon of this action.- Specified by:
getIcon
in interfaceIconProvider
- Returns:
- the optional icon of this action, null if there is no icon
-
toString
-