Enum TableView2.SpanType

  • All Implemented Interfaces:
    Serializable, Comparable<TableView2.SpanType>
    Enclosing class:
    TableView2<S>

    public static enum TableView2.SpanType
    extends Enum<TableView2.SpanType>
    The SpanType describes in which state each cell can be. When a spanning is occurring, one cell is becoming larger and the others are becoming invisible. Thus, that particular cell is masking the others.

    But the SpanType cannot be known in advance because it's evolving for each cell during the lifetime of the TableView2. Suppose you have a cell spanning in row, the first one is in a ROW_VISIBLE state, and all the other below are in a ROW_SPAN_INVISIBLE state. But if the user is scrolling down, the first will go out of sight. At that moment, the second cell is switching from ROW_SPAN_INVISIBLE state to ROW_VISIBLE state.

    Screenshot of TableView2.SpanType
    Refer to TableView2 for more information.
    • Enum Constant Detail

      • NORMAL_CELL

        public static final TableView2.SpanType NORMAL_CELL
        Visible cell, can be a unique cell (no span) or the first one inside a column spanning cell.
      • COLUMN_SPAN_INVISIBLE

        public static final TableView2.SpanType COLUMN_SPAN_INVISIBLE
        Invisible cell because a cell in a NORMAL_CELL state on the left is covering it.
      • ROW_SPAN_INVISIBLE

        public static final TableView2.SpanType ROW_SPAN_INVISIBLE
        Invisible cell because a cell in a ROW_VISIBLE state on the top is covering it.
      • ROW_VISIBLE

        public static final TableView2.SpanType ROW_VISIBLE
        Visible Cell but has some cells below in a ROW_SPAN_INVISIBLE state.
      • BOTH_INVISIBLE

        public static final TableView2.SpanType BOTH_INVISIBLE
        Invisible cell situated in diagonal of a cell in a ROW_VISIBLE state.
    • Method Detail

      • values

        public static TableView2.SpanType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (TableView2.SpanType c : TableView2.SpanType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static TableView2.SpanType valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
        NullPointerException - if the argument is null