Class ProcessIndicator


public class ProcessIndicator extends Component<ProcessIndicator>
Since:
4.0
Author:
JBStrap
  • Constructor Details

    • ProcessIndicator

      public ProcessIndicator()
  • Method Details

    • init

      public void init() throws JavaScriptLoadError
      Description copied from class: Component
      The component initialization method.

      Empty method, only needs to be overwritten when making a custom component, that needs to call an initializing JavaScript on the client side. The method is called by the framework after the component is drawn, but before the afterDraw() method. The use of this method during application development is not allowed. This method is meant for inner use only.

      Overrides:
      init in class Component<ProcessIndicator>
      Throws:
      JavaScriptLoadError - If there was a JavaScript error during the initialization.
    • addComponent

      public ProcessIndicator addComponent(Component component)
      Description copied from class: Component
      Adds the specified component as a subcomponent, and redraws the component immediately
      Overrides:
      addComponent in class Component<ProcessIndicator>
      Parameters:
      component - The component to be added
      Returns:
      The component
      Throws:
      UnsupportedOperationException - In every case
    • setVisible

      public ProcessIndicator setVisible(boolean visible)
      Description copied from class: Component
      Sets the visibility of the component. If not visible, the component won't appear on the interface, but it will be drawn in the HTML DOM. The visibility can be set anytime through code. By default, the component is visible
      Overrides:
      setVisible in class Component<ProcessIndicator>
      Parameters:
      visible - If true, the component is visible, if false, it is hidden
      Returns:
      The component
    • writeHTML

      public boolean writeHTML(StringWriter writer)
      Description copied from class: Component
      Creates the component's HTML equivalent

      This method doesn't need to be used during application development. This method is used when developing a custom component. When creating a custom component, this method needs to be implemented. In the parameter (StringWriter class) the component's HTML equivalent must be specified, and the method has to return with a Boolean value. This boolean value determines if the component was drawn. If the user doesn't have access right to the component, or if the component couldn't be drawn, it should return with false. Otherwise, it must return with true.

      Specified by:
      writeHTML in class Component<ProcessIndicator>
      Returns:
      If the componentwas drawn, true, otherwise false