Package org.eclnt.workplace
Class WorkpageDispatcher
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<String,Object>
org.eclnt.jsfserver.managedbean.DefaultDispatcher
org.eclnt.workplace.WorkpageDispatcher
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<String,
,Object> Statusbar.IStatusBarDrillDownInfoProvider
,IDispatcher
,IWorkpageDispatcher
- Direct Known Subclasses:
CCTDDispatcher
public abstract class WorkpageDispatcher
extends DefaultDispatcher
implements IWorkpageDispatcher, Statusbar.IStatusBarDrillDownInfoProvider, Serializable
Dispatcher extension that is taylored for workplace scenarios. The dispatcher
is connected to an instance of
IWorkpageContainer
- on top dispatcher
level ("#{d}") this instance is created through the createWorkpageContainer()
method. On sub dispatcher level ("#{d.d_1}") this instance is passed into the dispatchers
automatically, so that sub.dispatchers know their workpage container.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclnt.jsfserver.managedbean.DefaultDispatcher
DefaultDispatcher.DispatchedBeanInfo, DefaultDispatcher.DispatcherInfo
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,
V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
protected Statusbar
protected IWorkpage
protected IWorkpageContainer
-
Constructor Summary
ConstructorDescriptionThis constructor is the constructor for the "root dispatcher".WorkpageDispatcher
(IWorkpageContainer workpageContainer) This constructor is the constructor for the workpage level sub dispatchers. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Create a modal popup instance within the context of this dispatcher.Create a modeless popup instance within the context of this dispatcher.createSubDispatcherInstance
(Class subDispatcherClass) Creates a sub dispatcher instance of the class that is passed as argument.protected IWorkpageContainer
Creation of Workpage Container instance.void
destroy()
Destroys the dispatcher and its contained objects.static WorkpageDispatcher
Returns the top dispatcher of a session.static IWorkpageContainer
Returns workpage container of a session.static IWorkpageDispatcher
Returns the root dispatcher instance within the current dialog session.static IWorkpageDispatcher
getDialogSessionInstance
(ISessionAbstraction dialogSession) Returns the root dispatcher instance within the dialog session that is passed as parameter.boolean
getOwner()
Passes back the dispatcher above.protected Class
Preferred constructor argument for creation of managed beans.This is the statusbar that is accosicated with this dispatchter instance.boolean
boolean
Passes back the top owner of the dispatcher hierarchy.This is the workpage that is associated with this dispatcher instance.The workpage container that is associated with the dispatcher.boolean
Tells if the current content of the workpage is isolated into a modeless popup by the workpage container.boolean
void
onMaximize
(javax.faces.event.ActionEvent event) void
onMoveWorkpageIntoContentArea
(javax.faces.event.ActionEvent event) protected void
After the creation of the object (default:DefaultDispatcher.readObject(String)
this method is called.protected void
void
setOwner
(IDispatcher owner) void
setWorkpage
(IWorkpage workpage) Internally used.Methods inherited from class org.eclnt.jsfserver.managedbean.DefaultDispatcher
addDispatcherExtension, checkIfDispatchedBeanIsLoaded, checkIfDispatchedBeanIsLoaded, createObjectInstance, createProcessPreview, createSubDispatcherIndex, createSubDispatcherInstance, get, getChildDispatchers, getContentReplace, getDispatchedBean, getDispatchedBean, getExpressionBase, getMyExpression, getMyExpression, getRootExpression, getStaticDispatcherInfo, initDispatcher, initRegisteredBeanInfos, initRegisteredPackages, isDestroyed, outputLogInfoWhenNoClassWasResolved, readObject, registerSubDispatcherInstance, removeDispatchedBean, removeDispatchedBean, removeDispatcherExtension, resolveClass, toString, unregisterSubDispatcherInstance, updateExpression
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
Methods inherited from class java.util.AbstractMap
equals, hashCode
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclnt.jsfserver.managedbean.IDispatcher
checkIfDispatchedBeanIsLoaded, checkIfDispatchedBeanIsLoaded, createSubDispatcherIndex, createSubDispatcherInstance, getChildDispatchers, getContentReplace, getDispatchedBean, getDispatchedBean, getExpressionBase, getMyExpression, getMyExpression, removeDispatchedBean, removeDispatchedBean, unregisterSubDispatcherInstance, updateExpression
Methods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Field Details
-
m_workpageContainer
-
m_workpage
-
m_statusbar
-
m_isMaximized
protected boolean m_isMaximized
-
-
Constructor Details
-
WorkpageDispatcher
public WorkpageDispatcher()This constructor is the constructor for the "root dispatcher". -
WorkpageDispatcher
This constructor is the constructor for the workpage level sub dispatchers.
-
-
Method Details
-
getDialogSessionInstance
Returns the root dispatcher instance within the current dialog session. There is one dispatcher within each dialog session.
This method must only be called within some http session context! -
getDialogSessionInstance
Returns the root dispatcher instance within the dialog session that is passed as parameter. There is one dispatcher within each dialog session.
This method must only be called within some http session context! -
findSessionTopWorkpageDispatcher
Returns the top dispatcher of a session. -
findSessionWorkpageContainer
Returns workpage container of a session. -
createSubDispatcherInstance
Description copied from class:DefaultDispatcher
Creates a sub dispatcher instance of the class that is passed as argument. The class must provide a constructor without parameters.
If overriding this class: after creating the instance you need to call the method resgisterSubDispatcherInstance() with passing the newly created dispatcher instance as parameter.- Overrides:
createSubDispatcherInstance
in classDefaultDispatcher
-
getWorkpageContainer
The workpage container that is associated with the dispatcher. In a dispatcher hierarchy (top dispatcher, sub dispatchers...) this is always one instance that is used by all the dispatchers.- Specified by:
getWorkpageContainer
in interfaceIWorkpageDispatcher
-
getWorkpage
This is the workpage that is associated with this dispatcher instance.- Specified by:
getWorkpage
in interfaceIWorkpageDispatcher
-
setWorkpage
Description copied from interface:IWorkpageDispatcher
Internally used.- Specified by:
setWorkpage
in interfaceIWorkpageDispatcher
-
getStatusbar
This is the statusbar that is accosicated with this dispatchter instance.- Specified by:
getStatusbar
in interfaceIWorkpageDispatcher
-
setOwner
- Specified by:
setOwner
in interfaceIDispatcher
- Overrides:
setOwner
in classDefaultDispatcher
-
isOpenedAsPopup
public boolean isOpenedAsPopup()Description copied from interface:IWorkpageDispatcher
Tells if the current content of the workpage is isolated into a modeless popup by the workpage container.- Specified by:
isOpenedAsPopup
in interfaceIWorkpageDispatcher
- Returns:
- "true", if the associated page is opened in a popup, "false" is it is running inside the workplace content component.
-
isPopupHeaderRendered
public boolean isPopupHeaderRendered() -
checkIfToDrillDownToGlobalStatusbar
public boolean checkIfToDrillDownToGlobalStatusbar()- Specified by:
checkIfToDrillDownToGlobalStatusbar
in interfaceStatusbar.IStatusBarDrillDownInfoProvider
-
getToNormalSizeRendered
public boolean getToNormalSizeRendered() -
getToMaximizedSizeRendered
public boolean getToMaximizedSizeRendered() -
getIsMaximized
public boolean getIsMaximized() -
onMoveWorkpageIntoContentArea
public void onMoveWorkpageIntoContentArea(javax.faces.event.ActionEvent event) -
onMaximize
public void onMaximize(javax.faces.event.ActionEvent event) -
destroy
public void destroy()Description copied from interface:IDispatcher
Destroys the dispatcher and its contained objects.- Specified by:
destroy
in interfaceIDispatcher
- Overrides:
destroy
in classDefaultDispatcher
-
createModalPopup
Description copied from class:DefaultDispatcher
Create a modal popup instance within the context of this dispatcher. The contentdrilldown that you normally have to do when creating a popup is done automatically.- Specified by:
createModalPopup
in interfaceIDispatcher
- Overrides:
createModalPopup
in classDefaultDispatcher
-
createModelessPopup
Description copied from class:DefaultDispatcher
Create a modeless popup instance within the context of this dispatcher. The contentdrilldown that you normally have to do when creating a popup is done automatically.- Specified by:
createModelessPopup
in interfaceIDispatcher
- Overrides:
createModelessPopup
in classDefaultDispatcher
-
getTopOwner
Description copied from interface:IDispatcher
Passes back the top owner of the dispatcher hierarchy. If the current dispatcher is the top owner itself, then the current dispatcher is returned.- Specified by:
getTopOwner
in interfaceIDispatcher
- Overrides:
getTopOwner
in classDefaultDispatcher
-
getOwner
Description copied from interface:IDispatcher
Passes back the dispatcher above. Null is returned if the current instance is the top dispatcher- Specified by:
getOwner
in interfaceIDispatcher
- Overrides:
getOwner
in classDefaultDispatcher
-
createWorkpageContainer
Creation of Workpage Container instance. You may override in order to setup a different type of workpage container than the default. -
getPreferredConstructorArguentClass
Description copied from class:DefaultDispatcher
Preferred constructor argument for creation of managed beans. To be overridden by subclasses.- Overrides:
getPreferredConstructorArguentClass
in classDefaultDispatcher
-
prepareObject
Description copied from class:DefaultDispatcher
After the creation of the object (default:DefaultDispatcher.readObject(String)
this method is called. Here you can add own preparation logic.- Overrides:
prepareObject
in classDefaultDispatcher
-
registerWorkplaceInMultiWorkplaceScenario
protected void registerWorkplaceInMultiWorkplaceScenario()
-