Enum Class ComplexBuilderHierarchy

java.lang.Object
java.lang.Enum<ComplexBuilderHierarchy>
com.jbstrap.ui.components.form.builders.ComplexBuilderHierarchy
All Implemented Interfaces:
Serializable, Comparable<ComplexBuilderHierarchy>, Constable

public enum ComplexBuilderHierarchy extends Enum<ComplexBuilderHierarchy>
Enum containing the usable hierarchies for the complex form builder
Since:
4.0
Author:
JBStrap
  • Enum Constant Details

    • TAB_BLOCK_COLUMN

      public static final ComplexBuilderHierarchy TAB_BLOCK_COLUMN
      In this hierarchy, the order is tab, blocks and columns. This means that the tabs will be on top of the form, then in each tab, there will be the blocks, and the form items in the block will be organized in columns.
    • TAB_COLUMN_BLOCK

      public static final ComplexBuilderHierarchy TAB_COLUMN_BLOCK
      In this hierarchy, the order is tab, columns and blocks. This means that the tabs will be on top of the form, then in each tab, there will be columns, and within the columns there will be the blocks, that will have the form items inside them. In this case, the blocks will only have the width of the column, and the form items within the blocks will be placed under each other
    • BLOCK_TAB_COLUMN

      public static final ComplexBuilderHierarchy BLOCK_TAB_COLUMN
      In this hierarchy, the order is blocks, tabs and columns. This means that the form will be divided into blocks for its entire width. Within the blocks, there will be tabs, and within those tabs, the form items will be organized in columns.
    • BLOCK_COLUMN_TAB

      public static final ComplexBuilderHierarchy BLOCK_COLUMN_TAB
      In this hierarchy, the order is blocks, columns and tabs. This means that the form will be divided into blocks along its entire width. Within the blocks, there will be columns, and inside the columns there will be tabs, that will have the form items ordered under each other.
    • COLUMN_TAB_BLOCK

      public static final ComplexBuilderHierarchy COLUMN_TAB_BLOCK
      In this hierarchy, the order is columns, tabs and blocks. This means that columns will be first, then within the columns there will be the tabs, then within those, there will be the blocks. The blocks will have the form items. The blocks will have the width of the tab, and the items will be placed under each other.
    • COLUMN_BLOCK_TAB

      public static final ComplexBuilderHierarchy COLUMN_BLOCK_TAB
      In this hierarchy, the order is columns, blocks and tabs. This means that columns will be first, then within the columns there will be the k blocks, and the tabs will be within the blocks. The form items in the tab will be placed under each other.
  • Method Details

    • values

      public static ComplexBuilderHierarchy[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ComplexBuilderHierarchy valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getElement

      public ComplexBuilderHierarchy.Element getElement(int level)
      Parameters:
      level - The level. The top-level is 0
      Returns:
      The element corresponding to the specified level, or null if not found