Class WorkpageDefaultStarter

java.lang.Object
org.eclnt.workplace.WorkpageDefaultStarter
All Implemented Interfaces:
Serializable, IWorkpageStarter

public class WorkpageDefaultStarter extends Object implements IWorkpageStarter, Serializable
Default implementation for IWorkpageStarter. You may sub-class this implementation for adding own, specific start functions.
See Also:
  • Constructor Details

    • WorkpageDefaultStarter

      public WorkpageDefaultStarter()
  • Method Details

    • startWorkpage

      public IWorkpage startWorkpage(IWorkpageDispatcher workpageDispatcher, IWorkpageContainer workpageContainer, WorkpageStartInfo startInfo)
      Start workpage that is defined by the parameter startInfo.
      Specified by:
      startWorkpage in interface IWorkpageStarter
      Parameters:
      workpageDispatcher - The dispatcher of the caller. By default: getOwningDispatcher().
      startInfo - Definition of the workpage to be started.
    • startWorkpage

      public IWorkpage startWorkpage(IWorkpageDispatcher workpageDispatcher, IWorkpageContainer workpageContainer, WorkpageStartInfo startInfo, ICreatePageBeanInstance beanCreator)
      Start workpage that is defined by the parameter startInfo together with a call back to generate the main page bean that is used in the workpage.
      Specified by:
      startWorkpage in interface IWorkpageStarter
      Parameters:
      workpageDispatcher - The dispatcher of the caller. By default: getOwningDispatcher().
      startInfo - Definition of the workpage to be started.
    • createWorkpage

      public Workpage createWorkpage(IWorkpageDispatcher workpageDispatcher, WorkpageStartInfo startInfo, String title)
    • createWorkpageWithPageBean

      public Workpage createWorkpageWithPageBean(IWorkpageDispatcher workpageDispatcher, String title, WorkpageStartInfo startInfo, ICreatePageBeanInstance beanCreator)
    • createWorkpageWithPageBean

      protected Workpage createWorkpageWithPageBean(IWorkpageDispatcher workpageDispatcher, String title, WorkpageStartInfo startInfo)
    • switchToAlreadyOpenedWorkpage

      protected void switchToAlreadyOpenedWorkpage(IWorkpageDispatcher workpageDispatcher, IWorkpageContainer workpageContainer, IWorkpage workpage)
      This method is called when the page is already opened in the workplace. By default the method tirggers the "page switch" within the workplace, so that the user sees the page.
    • startFunction

      protected IWorkpage startFunction(WorkpageStartInfo wpsi, IWorkpageDispatcher dispatcher)
      Called if workpage start info contains a reference to a method/class.
    • reactOnProblemDuringWorkpageStart

      protected void reactOnProblemDuringWorkpageStart(Throwable t)
      Called if an error occurs when starting a page bean. The page bean may e.g. throw an Exception/Error within the constructor.

      Default behavior, implemented in this class: the message of the error is output as OKPopup, so that the user gest notified. - You may override this method in order to output the error information in some different way.