Package org.eclnt.workplace
Class WorkpageDefaultLifecycleListener
java.lang.Object
org.eclnt.workplace.WorkpageDefaultLifecycleListener
- All Implemented Interfaces:
Serializable
,IWorkpageLifecycleListener
public class WorkpageDefaultLifecycleListener
extends Object
implements IWorkpageLifecycleListener, Serializable
Default implementation of IWorkpageLifeCylcleListener. Use this class
to derive you lifecycle listeners from - this class will be updated
if the interface
IWorkpageLifecycleListener
gets enhanced.- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
close()
When overriding: please check the continue-operation that is available viagetCloseContinueOperation()
in case of interrupting the close process.void
This method forces the workplage to close - there is no chance to escape...The workpage container may close pages either individually or within a bigger context (e.g. when closing all pages).boolean
Called before the page is hidden in the content are (e.g.void
This method is called when the workpage is closed and resources are freed.void
The page is hidden in the content area of the workplace.void
The page already was shown in content area, but the user re-selected the page (e.g. by pressing a second time onto the workpage-selector.void
The page is (re)shown in the content area of the workplace.void
The page is (re)shown in a modeless popup.void
void
setCloseContinueOperation
(Runnable closeContinueOperation) Internal use only!
-
Constructor Details
-
WorkpageDefaultLifecycleListener
public WorkpageDefaultLifecycleListener()
-
-
Method Details
-
getCloseContinueOperation
The workpage container may close pages either individually or within a bigger context (e.g. when closing all pages). In case of closing pages in a "bigger context" then there is a continue-operation which needs to be called by these listeners that interrupt the close processing (i.e. these ones that return "false" as result of reacting onclose()
.- Specified by:
getCloseContinueOperation
in interfaceIWorkpageLifecycleListener
-
setCloseContinueOperation
Internal use only! Do not call from application logic!- Specified by:
setCloseContinueOperation
in interfaceIWorkpageLifecycleListener
-
close
public boolean close()When overriding: please check the continue-operation that is available viagetCloseContinueOperation()
in case of interrupting the close process.- Specified by:
close
in interfaceIWorkpageLifecycleListener
- Returns:
- true => workplace will close page; false => workplace will not close the page.
-
closeForced
public void closeForced()Description copied from interface:IWorkpageLifecycleListener
This method forces the workplage to close - there is no chance to escape...- Specified by:
closeForced
in interfaceIWorkpageLifecycleListener
-
reactOnShownInContentArea
public void reactOnShownInContentArea()Description copied from interface:IWorkpageLifecycleListener
The page is (re)shown in the content area of the workplace.- Specified by:
reactOnShownInContentArea
in interfaceIWorkpageLifecycleListener
-
reactOnReselectedInContentArea
public void reactOnReselectedInContentArea()Description copied from interface:IWorkpageLifecycleListener
The page already was shown in content area, but the user re-selected the page (e.g. by pressing a second time onto the workpage-selector.- Specified by:
reactOnReselectedInContentArea
in interfaceIWorkpageLifecycleListener
-
reactOnHiddenInContentArea
public void reactOnHiddenInContentArea()Description copied from interface:IWorkpageLifecycleListener
The page is hidden in the content area of the workplace.- Specified by:
reactOnHiddenInContentArea
in interfaceIWorkpageLifecycleListener
-
reactOnBeforeHiddenInContentArea
public boolean reactOnBeforeHiddenInContentArea()Description copied from interface:IWorkpageLifecycleListener
Called before the page is hidden in the content are (e.g. due to selector operations performed by the user).- Specified by:
reactOnBeforeHiddenInContentArea
in interfaceIWorkpageLifecycleListener
- Returns:
- true => yes, perform hiding
false => block hiding
-
reactOnShownInPopup
public void reactOnShownInPopup()Description copied from interface:IWorkpageLifecycleListener
The page is (re)shown in a modeless popup.- Specified by:
reactOnShownInPopup
in interfaceIWorkpageLifecycleListener
-
reactOnDestroyed
public void reactOnDestroyed()Description copied from interface:IWorkpageLifecycleListener
This method is called when the workpage is closed and resources are freed.- Specified by:
reactOnDestroyed
in interfaceIWorkpageLifecycleListener
-
reactOnSwitchToPage
public void reactOnSwitchToPage()- Specified by:
reactOnSwitchToPage
in interfaceIWorkpageLifecycleListener
-