Class ProcessResourceController

All Implemented Interfaces:
IController, IResourceController, Serializable

public class ProcessResourceController extends BaseResourceController implements IResourceController
Process resource controller for Process IHM manipulation
Author:
vlygeros
See Also:
  • Field Details

  • Constructor Details

    • ProcessResourceController

      protected ProcessResourceController(IModule module, IResource resource)
      Constructor
      Parameters:
      module - the module
      resource - the resource
  • Method Details

    • getTopButton

      public com.axemble.vdp.ui.framework.widgets.CtlButton getTopButton(String buttonName)
      Description copied from interface: IResourceController
      Gets a button from the top container.
      Specified by:
      getTopButton in interface IResourceController
      Specified by:
      getTopButton in class BaseResourceController
      Parameters:
      buttonName - the system name of the button.
      Returns:
      a CtlButton object.
    • getBottomButton

      public com.axemble.vdp.ui.framework.widgets.CtlButton getBottomButton(String buttonName)
      Description copied from interface: IResourceController
      Gets a button from the bottom container.
      Specified by:
      getBottomButton in interface IResourceController
      Specified by:
      getBottomButton in class BaseResourceController
      Parameters:
      buttonName - the system name of the button.
      Returns:
      a CtlButton object.
    • showHeaderBlock

      public void showHeaderBlock(String marker, boolean show)
      Description copied from interface: IResourceController
      Allows to hide or display a specified element by its marker within the header.
      Specified by:
      showHeaderBlock in interface IResourceController
      Parameters:
      marker - the system name of the marker.
      show - true or false.
    • showBodyBlock

      public void showBodyBlock(String marker, boolean show)
      Description copied from interface: IResourceController
      Allows to hide or display a specified element by its marker within the body.
      Specified by:
      showBodyBlock in interface IResourceController
      Parameters:
      marker - the system name of the marker.
      show - true or false.
    • getButtonContainer

      public com.axemble.vdp.ui.framework.runtime.NamedContainer getButtonContainer(int container)
      Description copied from interface: IResourceController
      Gets a button container by selecting either the top or bottom container.
      Specified by:
      getButtonContainer in interface IResourceController
      Parameters:
      container - either one of the following values :
      • IResourceController.TOP_CONTAINER (value 1)
      • IResourceController.BOTTOM_CONTAINER (value 2)
      Returns:
      a NamedContainer object.
    • showHeaderSection

      public void showHeaderSection(boolean show)
      Description copied from interface: IResourceController
      Allows to hide or display the header section.
      Specified by:
      showHeaderSection in interface IResourceController
      Parameters:
      show - true or false.
    • showHistorySection

      public void showHistorySection(boolean show)
      Description copied from interface: IResourceController
      Allows to hide or display the history section.
      Specified by:
      showHistorySection in interface IResourceController
      Parameters:
      show - true or false.
    • collapseSection

      public void collapseSection(String identifier, boolean collapse)
      Description copied from interface: IResourceController
      Show or collapse the content of a section in a form
      Specified by:
      collapseSection in interface IResourceController
      Parameters:
      identifier - the session's identifier (visible in the studio)
      collapse - true to collapse
    • setDocumentTitle

      public void setDocumentTitle(String newTitle)
      Description copied from interface: IResourceController
      Sets the process document title.
      Specified by:
      setDocumentTitle in interface IResourceController
      Parameters:
      newTitle - The new title to set.
    • setDocumentInformation

      public void setDocumentInformation(String newInformation)
      Description copied from interface: IResourceController
      Sets the process document information message.
      Specified by:
      setDocumentInformation in interface IResourceController
      Parameters:
      newInformation - The new information message to set.
    • getDefaultWidget

      public com.axemble.vdp.ui.framework.foundation.Widget getDefaultWidget(String propertyName)
      Description copied from interface: IResourceController
      Gets the first writable field.
      Specified by:
      getDefaultWidget in interface IResourceController
      Specified by:
      getDefaultWidget in class BaseResourceController
      Parameters:
      propertyName - the system name of the field.
      Returns:
      a Widget object.
    • getWidgets

      public Collection<com.axemble.vdp.ui.framework.foundation.Widget> getWidgets(String propertyName)
      Specified by:
      getWidgets in class BaseResourceController
    • getWidgets

      public Collection<com.axemble.vdp.ui.framework.foundation.Widget> getWidgets(String marker, String propertyName)
      Specified by:
      getWidgets in class BaseResourceController
    • showHelpButton

      public void showHelpButton(boolean show)
      Description copied from interface: IResourceController
      Allows to hide or display the main help section.
      Specified by:
      showHelpButton in interface IResourceController
      Parameters:
      show - true or false.
    • showPrintButton

      public void showPrintButton(boolean show)
      Description copied from interface: IResourceController
      Allows to hide or display the print button.
      Specified by:
      showPrintButton in interface IResourceController
      Parameters:
      show - true or false.
    • showBackToParentButton

      public void showBackToParentButton(boolean show)
      Description copied from interface: IResourceController
      Allows to hide or display the back to parent button.
      Specified by:
      showBackToParentButton in interface IResourceController
      Parameters:
      show - true or false.
    • setHtml

      public void setHtml(String id, String content)
      Description copied from interface: IResourceController
      Allows to fill an tag with HTML content.
      Specified by:
      setHtml in interface IResourceController
      Parameters:
      id - Identifier of the tag.
      content - HTML description.
    • setMandatory

      public final void setMandatory(String propertyName, boolean mandatory)
      Description copied from interface: IResourceController
      Set to mandatory a specified field.
      Specified by:
      setMandatory in interface IResourceController
      Parameters:
      propertyName - the system name of the field.
      mandatory - true or false.
    • setMandatory

      public final void setMandatory(String fragmentName, String propertyName, boolean mandatory)
      Description copied from interface: IResourceController
      Set to mandatory a specified field in a fragment.
      Specified by:
      setMandatory in interface IResourceController
      Parameters:
      fragmentName - the system name of the fragment
      propertyName - the system name of the field.
      mandatory - true or false.