Class 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:
  • Field Details

    • m_workpageContainer

      protected IWorkpageContainer m_workpageContainer
    • m_workpage

      protected IWorkpage m_workpage
    • m_statusbar

      protected Statusbar m_statusbar
    • m_isMaximized

      protected boolean m_isMaximized
  • Constructor Details

    • WorkpageDispatcher

      public WorkpageDispatcher()
      This constructor is the constructor for the "root dispatcher".
    • WorkpageDispatcher

      public WorkpageDispatcher(IWorkpageContainer workpageContainer)
      This constructor is the constructor for the workpage level sub dispatchers.
  • Method Details

    • getDialogSessionInstance

      public static IWorkpageDispatcher 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

      public static IWorkpageDispatcher getDialogSessionInstance(ISessionAbstraction dialogSession)
      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

      public static WorkpageDispatcher findSessionTopWorkpageDispatcher()
      Returns the top dispatcher of a session.
    • findSessionWorkpageContainer

      public static IWorkpageContainer findSessionWorkpageContainer()
      Returns workpage container of a session.
    • createSubDispatcherInstance

      public IDispatcher createSubDispatcherInstance(Class subDispatcherClass)
      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 class DefaultDispatcher
    • getWorkpageContainer

      public IWorkpageContainer 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 interface IWorkpageDispatcher
    • getWorkpage

      public IWorkpage getWorkpage()
      This is the workpage that is associated with this dispatcher instance.
      Specified by:
      getWorkpage in interface IWorkpageDispatcher
    • setWorkpage

      public void setWorkpage(IWorkpage workpage)
      Description copied from interface: IWorkpageDispatcher
      Internally used.
      Specified by:
      setWorkpage in interface IWorkpageDispatcher
    • getStatusbar

      public Statusbar getStatusbar()
      This is the statusbar that is accosicated with this dispatchter instance.
      Specified by:
      getStatusbar in interface IWorkpageDispatcher
    • setOwner

      public void setOwner(IDispatcher owner)
      Specified by:
      setOwner in interface IDispatcher
      Overrides:
      setOwner in class DefaultDispatcher
    • 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 interface IWorkpageDispatcher
      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 interface Statusbar.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 interface IDispatcher
      Overrides:
      destroy in class DefaultDispatcher
    • createModalPopup

      public ModalPopup 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 interface IDispatcher
      Overrides:
      createModalPopup in class DefaultDispatcher
    • createModelessPopup

      public ModelessPopup 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 interface IDispatcher
      Overrides:
      createModelessPopup in class DefaultDispatcher
    • getTopOwner

      public IWorkpageDispatcher 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 interface IDispatcher
      Overrides:
      getTopOwner in class DefaultDispatcher
    • getOwner

      public IWorkpageDispatcher 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 interface IDispatcher
      Overrides:
      getOwner in class DefaultDispatcher
    • createWorkpageContainer

      protected IWorkpageContainer createWorkpageContainer()
      Creation of Workpage Container instance. You may override in order to setup a different type of workpage container than the default.
    • getPreferredConstructorArguentClass

      protected Class getPreferredConstructorArguentClass()
      Description copied from class: DefaultDispatcher
      Preferred constructor argument for creation of managed beans. To be overridden by subclasses.
      Overrides:
      getPreferredConstructorArguentClass in class DefaultDispatcher
    • prepareObject

      protected void prepareObject(Object o)
      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 class DefaultDispatcher
    • registerWorkplaceInMultiWorkplaceScenario

      protected void registerWorkplaceInMultiWorkplaceScenario()