Interface Screen

    • Method Detail

      • doBuild

        String doBuild​(PipelineData pipelineData)
                throws Exception
        A subclass must implement this method to build itself. Subclasses override this method to store the screen in RunData or to write the screen to the output stream referenced in RunData.
        Parameters:
        pipelineData - Turbine information.
        Returns:
        the content of the screen
        Throws:
        Exception - a generic exception.
      • build

        default String build​(PipelineData pipelineData)
                      throws Exception
        Subclasses can override this method to add additional functionality.
        Parameters:
        pipelineData - Turbine information.
        Returns:
        the content of the screen
        Throws:
        Exception - a generic exception.
      • getLayout

        default String getLayout​(PipelineData pipelineData)
        If the Layout has not been defined by the Screen then set the layout to be "DefaultLayout". The Screen object can also override this method to provide intelligent determination of the Layout to execute. You can also define that logic here as well if you want it to apply on a global scale. For example, if you wanted to allow someone to define Layout "preferences" where they could dynamically change the Layout for the entire site. The information for the request is passed in with the PipelineData object.
        Parameters:
        pipelineData - Turbine information.
        Returns:
        A String with the Layout.
      • setLayout

        default void setLayout​(PipelineData pipelineData,
                               String layout)
        Set the layout for a Screen.
        Parameters:
        pipelineData - Turbine information.
        layout - The layout name.