Class TablePane.Column

  • Enclosing class:
    TablePane

    public static class TablePane.Column
    extends java.lang.Object
    Represents a table pane column.
    • Constructor Summary

      Constructors 
      Constructor Description
      Column()  
      Column​(int width)  
      Column​(int width, boolean relative)  
      Column​(int width, boolean relative, boolean highlighted)  
      Column​(TablePane tablePane)  
      Column​(TablePane tablePane, int width)  
      Column​(TablePane tablePane, int width, boolean relative)  
      Column​(TablePane tablePane, int width, boolean relative, boolean highlighted)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      TablePane getTablePane()
      Returns the table pane with which this column is associated.
      int getWidth()
      Returns the column width.
      boolean isHighlighted()
      Returns the highlighted flag.
      boolean isRelative()
      Returns the relative flag.
      void setHighlighted​(boolean highlighted)
      Sets the highlighted flag.
      void setWidth​(int width)
      Set the column width.
      void setWidth​(int width, boolean relative)
      Sets the column width.
      void setWidth​(java.lang.String width)
      Set the column width.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Column

        public Column()
      • Column

        public Column​(int width)
      • Column

        public Column​(int width,
                      boolean relative)
      • Column

        public Column​(int width,
                      boolean relative,
                      boolean highlighted)
      • Column

        public Column​(TablePane tablePane)
      • Column

        public Column​(TablePane tablePane,
                      int width)
      • Column

        public Column​(TablePane tablePane,
                      int width,
                      boolean relative)
      • Column

        public Column​(TablePane tablePane,
                      int width,
                      boolean relative,
                      boolean highlighted)
    • Method Detail

      • getTablePane

        public TablePane getTablePane()
        Returns the table pane with which this column is associated.
        Returns:
        The column's table pane, or null if the column does not currently belong to a table.
      • getWidth

        public int getWidth()
        Returns the column width.
        Returns:
        The width of the column.
      • isRelative

        public boolean isRelative()
        Returns the relative flag.
        Returns:
        true if the column width is relative, false if it is fixed.
      • setWidth

        public void setWidth​(int width)
        Set the column width.
        Parameters:
        width - The absolute width of the column.
      • setWidth

        public void setWidth​(java.lang.String width)
        Set the column width.
        Parameters:
        width - The encoded width of the row. If the string ends with the '*' character, it is treated as a relative value. Otherwise, it is considered an absolute value.
      • setWidth

        public void setWidth​(int width,
                             boolean relative)
        Sets the column width.
        Parameters:
        width - The width of the column.
        relative - true if the column width is relative, false if it is fixed.
      • isHighlighted

        public boolean isHighlighted()
        Returns the highlighted flag.
        Returns:
        true if the column is highlighted, false if it is not
      • setHighlighted

        public void setHighlighted​(boolean highlighted)
        Sets the highlighted flag.
        Parameters:
        highlighted - true to set the column as highlighted, false to set it as not highlighted