Class Row

All Implemented Interfaces:
Animatable<Row>, CanDrop<Row>, Clickable<Row>, Draggable<Row>, HandleMouseEvents<Row>, Scrollable<Row>, Touchable<Row>

Row component

You can specify Column components to the component that contain data organized into columns.

The component receives only Column components, the use of all other components result in an exception.

Since:
4.0
Author:
JBStrap
  • Constructor Details

    • Row

      public Row()
      Creates an empty row.
    • Row

      public Row(Column... content)
      Creates a row with the specified columns.
      Parameters:
      content -
  • Method Details

    • addComponent

      public Row 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<Row>
      Parameters:
      component - The component to be added
      Returns:
      The component
    • setAlignItems

      public Row setAlignItems(StyleAlign... aligns)
      Sets the row content aligament.
      Parameters:
      aligns - The aligaments. For the applicable content aliaments see the VerticalAlign and the HorizontalAlign enums.
      Returns:
      The row 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<Row>
      Returns:
      If the componentwas drawn, true, otherwise false