Enum Class ColumnVisibleType

java.lang.Object
java.lang.Enum<ColumnVisibleType>
com.jbstrap.core.meta.enums.ColumnVisibleType
All Implemented Interfaces:
Serializable, Comparable<ColumnVisibleType>, Constable

public enum ColumnVisibleType extends Enum<ColumnVisibleType>
Column visibility types
Since:
1,0
Author:
JBStrap
  • Enum Constant Details

    • HIDDEN

      public static final ColumnVisibleType HIDDEN

      Hidden column

      Columns marked as hidden won't appear on the list or on the editable interface. The user won't be able to place hidden columns to the list interface.

    • ONLY_LIST

      public static final ColumnVisibleType ONLY_LIST

      Columns that only display on lists.

      Columns marked like this will only be displayed on lists by default, but not on the editors. The user will be able to remove them from the list, and later display it again.

    • LIST

      public static final ColumnVisibleType LIST

      Columns that display on lists.

      Columns marked like this will only be displayed on lists by default, but not on the editors. The user will be able to remove them from the list, and later display it again.

    • HIDE_LIST

      public static final ColumnVisibleType HIDE_LIST

      Column that is hidden on the list

      Columns marked like this, by default won't appear on lists, but they will appear on the editor. The user can place these columns on lists if need be.

    • ONLY_EDITOR

      public static final ColumnVisibleType ONLY_EDITOR

      Column that is only displayed on the editor

      Columns marked like this, won't be displayed on the lists, but will appear on the editor. The user can't display these columns on lists.

    • VISIBLE

      public static final ColumnVisibleType VISIBLE

      Visible column

      Columns marked as visible will be visible on both the lists and editors. The user can hide these, and display them later again if need be.

  • Method Details

    • values

      public static ColumnVisibleType[] 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 ColumnVisibleType 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
    • getName

      public String getName()
      Gets the name of the visibility type
      Returns:
      The name of the visibility type
    • fromName

      public static ColumnVisibleType fromName(String name)
      Determines the visibility type, by the specified name.
      Parameters:
      name - The name of the visibility type
      Returns:
      The visibility type or null, if not found