Package org.kquiet.browser.action
Class CloseWindow
java.lang.Object
org.kquiet.browser.action.MultiPhaseAction
org.kquiet.browser.action.SinglePhaseAction
org.kquiet.browser.action.CloseWindow
- All Implemented Interfaces:
Composable
,MultiPhased
CloseWindow
is a subclass of SinglePhaseAction
which closes window(s).- Author:
- Kimberly
-
Constructor Summary
ConstructorsConstructorDescriptionCloseWindow
(boolean closeAllRegistered) Create a new action representing closing window. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Perform single-phased browser action.toString()
Methods inherited from class org.kquiet.browser.action.SinglePhaseAction
performMultiPhase
Methods inherited from class org.kquiet.browser.action.MultiPhaseAction
getActionState, getComposer, getCostTime, getErrors, hasNextPhase, isDone, isFail, noNextPhase, perform, setActionState, setComposer, switchToTopForFirefox
-
Constructor Details
-
CloseWindow
public CloseWindow(boolean closeAllRegistered) Create a new action representing closing window.- Parameters:
closeAllRegistered
-true
: close all registered windows;false
: close only the focus window
-
-
Method Details
-
performSinglePhase
protected void performSinglePhase()Description copied from class:SinglePhaseAction
Perform single-phased browser action.- Specified by:
performSinglePhase
in classSinglePhaseAction
-
toString
- Overrides:
toString
in classMultiPhaseAction
-