Package net.infonode.docking.action
Class RestoreParentWithAbortWindowAction
- java.lang.Object
-
- net.infonode.docking.action.DockingWindowAction
-
- net.infonode.docking.action.RestoreParentWithAbortWindowAction
-
- All Implemented Interfaces:
java.io.Serializable
,IconProvider
public final class RestoreParentWithAbortWindowAction extends DockingWindowAction
Restores a window using theDockingWindow.restore()
method. If the parent window is aTabWindow
which is maximized, it is restored. The action callsDockingWindow.restoreWithAbort()
.- Since:
- IDW 1.4.0
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static RestoreParentWithAbortWindowAction
INSTANCE
The only instance of this class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.swing.Icon
getIcon()
Returns the optional icon of this action.java.lang.String
getName()
Returns the name of this action.boolean
isPerformable(DockingWindow window)
Returns true if this action is performable on a window.void
perform(DockingWindow window)
Performs this action on a window.protected java.lang.Object
readResolve()
-
Methods inherited from class net.infonode.docking.action.DockingWindowAction
getAction, toString
-
-
-
-
Field Detail
-
INSTANCE
public static final RestoreParentWithAbortWindowAction INSTANCE
The only instance of this class.
-
-
Method Detail
-
getName
public java.lang.String getName()
Description copied from class:DockingWindowAction
Returns the name of this action.- Specified by:
getName
in classDockingWindowAction
- Returns:
- the name of this action
-
isPerformable
public boolean isPerformable(DockingWindow window)
Description copied from class:DockingWindowAction
Returns true if this action is performable on a window.- Specified by:
isPerformable
in classDockingWindowAction
- Parameters:
window
- the window on which the action will be performed- Returns:
- true if this action is performable on the window
-
perform
public void perform(DockingWindow window)
Description copied from class:DockingWindowAction
Performs this action on a window.- Specified by:
perform
in classDockingWindowAction
- Parameters:
window
- the window on which to perform the action
-
getIcon
public javax.swing.Icon getIcon()
Description copied from class:DockingWindowAction
Returns the optional icon of this action.- Specified by:
getIcon
in interfaceIconProvider
- Overrides:
getIcon
in classDockingWindowAction
- Returns:
- the optional icon of this action, null if there is no icon
-
readResolve
protected java.lang.Object readResolve() throws java.io.ObjectStreamException
- Throws:
java.io.ObjectStreamException
-
-