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, DefaultDispatcher.ReadObjectReturnedNullExceptionNested 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
FieldsModifier and TypeFieldDescriptionprotected booleanprotected Statusbarprotected IWorkpageprotected IWorkpageContainer -
Constructor Summary
ConstructorsConstructorDescriptionThis 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 TypeMethodDescriptionbooleanDeprecated.Deprecated.protected ObjectcreateObjectInstance(Class resultClass) After resolving the class for a given name, an object needs to be created for the class.createSubDispatcherInstance(Class subDispatcherClass) Creates a sub dispatcher instance of the class that is passed as argument.protected IWorkpageContainerCreation of Workpage Container instance.voiddestroy()Destroys the dispatcher and its contained objects.static WorkpageDispatcherReturns the top dispatcher of a session.static IWorkpageContainerReturns workpage container of a session.static IWorkpageDispatcherReturns the root dispatcher instance within the current dialog session.static IWorkpageDispatchergetDialogSessionInstance(ISessionAbstraction dialogSession) Returns the root dispatcher instance within the dialog session that is passed as parameter.booleangetOwner()Passes back the dispatcher above.protected ClassPreferred constructor argument for creation of managed beans.This is the statusbar that is accosicated with this dispatchter instance.booleanbooleanPasses 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.booleanTells if the current content of the workpage is isolated into a modeless popup by the workpage container.booleanvoidonMaximize(ActionEvent event) voidprotected voidAfter the creation of the object (default:DefaultDispatcher.readObject(String)this method is called.protected voidvoidsetOwner(IDispatcher owner) voidsetWorkpage(IWorkpage workpage) Internally used.Methods inherited from class org.eclnt.jsfserver.managedbean.DefaultDispatcher
addDispatcherExtension, checkIfDispatchedBeanIsLoaded, checkIfDispatchedBeanIsLoaded, 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, updateExpressionMethods 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, valuesMethods inherited from class java.util.AbstractMap
equals, hashCodeMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclnt.jsfserver.managedbean.IDispatcher
checkIfDispatchedBeanIsLoaded, checkIfDispatchedBeanIsLoaded, createSubDispatcherIndex, createSubDispatcherInstance, getChildDispatchers, getContentReplace, getDispatchedBean, getDispatchedBean, getExpressionBase, getMyExpression, getMyExpression, removeDispatchedBean, removeDispatchedBean, unregisterSubDispatcherInstance, updateExpressionMethods 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:DefaultDispatcherCreates 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:
createSubDispatcherInstancein 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:
getWorkpageContainerin interfaceIWorkpageDispatcher
-
getWorkpage
This is the workpage that is associated with this dispatcher instance.- Specified by:
getWorkpagein interfaceIWorkpageDispatcher
-
setWorkpage
Description copied from interface:IWorkpageDispatcherInternally used.- Specified by:
setWorkpagein interfaceIWorkpageDispatcher
-
getStatusbar
This is the statusbar that is accosicated with this dispatchter instance.- Specified by:
getStatusbarin interfaceIWorkpageDispatcher
-
setOwner
- Specified by:
setOwnerin interfaceIDispatcher- Overrides:
setOwnerin classDefaultDispatcher
-
isOpenedAsPopup
public boolean isOpenedAsPopup()Description copied from interface:IWorkpageDispatcherTells if the current content of the workpage is isolated into a modeless popup by the workpage container.- Specified by:
isOpenedAsPopupin 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:
checkIfToDrillDownToGlobalStatusbarin interfaceStatusbar.IStatusBarDrillDownInfoProvider
-
getToNormalSizeRendered
public boolean getToNormalSizeRendered() -
getToMaximizedSizeRendered
public boolean getToMaximizedSizeRendered() -
getIsMaximized
public boolean getIsMaximized() -
onMoveWorkpageIntoContentArea
-
onMaximize
-
destroy
public void destroy()Description copied from interface:IDispatcherDestroys the dispatcher and its contained objects.- Specified by:
destroyin interfaceIDispatcher- Overrides:
destroyin classDefaultDispatcher
-
createModalPopup
Deprecated.Description copied from class:DefaultDispatcherCreate 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.
Deprecation: this method is outdated please use the normal page bean based popup managementPageBean.openModalPopup(IPageBean, String, int, int, org.eclnt.jsfserver.defaultscreens.ModalPopup.IModalPopupListener).- Specified by:
createModalPopupin interfaceIDispatcher- Overrides:
createModalPopupin classDefaultDispatcher
-
createModelessPopup
Deprecated.Description copied from class:DefaultDispatcherCreate 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.
Deprecation: this method is outdated please use the normal page bean based popup managementPageBean.openModelessPopup(IPageBean, String, int, int, org.eclnt.jsfserver.defaultscreens.ModelessPopup.IModelessPopupListener).- Specified by:
createModelessPopupin interfaceIDispatcher- Overrides:
createModelessPopupin classDefaultDispatcher
-
getTopOwner
Description copied from interface:IDispatcherPasses 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:
getTopOwnerin interfaceIDispatcher- Overrides:
getTopOwnerin classDefaultDispatcher
-
getOwner
Description copied from interface:IDispatcherPasses back the dispatcher above. Null is returned if the current instance is the top dispatcher- Specified by:
getOwnerin interfaceIDispatcher- Overrides:
getOwnerin classDefaultDispatcher
-
createObjectInstance
Description copied from class:DefaultDispatcherAfter resolving the class for a given name, an object needs to be created for the class. This is done by this method.
In this implementation first a constructor with a preferred argument (typically theIDispatcheror theIWorkpageDispatcherinstance) is checked. If this does not exsit, then a constructor without parameters is called.- Overrides:
createObjectInstancein classDefaultDispatcher- Throws:
Exception
-
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:DefaultDispatcherPreferred constructor argument for creation of managed beans. To be overridden by subclasses.- Overrides:
getPreferredConstructorArguentClassin classDefaultDispatcher
-
prepareObject
Description copied from class:DefaultDispatcherAfter the creation of the object (default:DefaultDispatcher.readObject(String)this method is called. Here you can add own preparation logic.- Overrides:
prepareObjectin classDefaultDispatcher
-
registerWorkplaceInMultiWorkplaceScenario
protected void registerWorkplaceInMultiWorkplaceScenario()
-