Class UI.RootLayout

All Implemented Interfaces:
Animatable<Container>, CanDrop<Container>, Clickable<Container>, Draggable<Container>, HandleMouseEvents<Container>, Scrollable<Container>, Touchable<Container>
Enclosing class:
UI

public class UI.RootLayout extends Container
Since:
4.0
Author:
JBStrap
  • Constructor Details

    • RootLayout

      public RootLayout(com.jbstrap.ui.Access access)
      Parameters:
      access - The object containing the access
  • Method Details

    • addComponent

      public Container 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<Container>
      Parameters:
      component - The component to be added
      Returns:
      The root layout
    • removeComponent

      public Container removeComponent(Component<?> component)
      Description copied from class: Component
      Removes the specified subcomponent.
      Overrides:
      removeComponent in class Component<Container>
      Parameters:
      component - The component instance
      Returns:
      The root layout
    • clear

      public Container clear()
      Returns:
      The root layout
    • _showProcessIndicator

      protected Container _showProcessIndicator(boolean show)
      Parameters:
      show - If true, the indicator is shown, if false, it is hidden
      Returns:
      The root layout
    • afterDraw

      public void afterDraw()
      Description copied from class: Component
      The operations to be executed after the drawing of the component

      By default, this is an empty method. It has to be overwritten on a component or page if additional operations have to be executed after the drawing process. One such operation is data retrieval, which shouldn't run in constructors so that the user could see results of an operation or navigation process.

      Overrides:
      afterDraw in class Component<Container>
    • onShow

      public void onShow()
      Description copied from class: Component
      The operations to be executed after the component is displayed on the client

      By default, this is an empty method. It has to be overwritten on a component or page, if additional operations have to be executed after the component is displayed. This method is nearly identical to the afterDraw() method, they differ in when they are executed. This method runs after the component is displayed on the client. Meaning that it is executed even if the component isn't redrawn, but only set to be visible after being hidden.

      Overrides:
      onShow in class Component<Container>