- Type Parameters:
- S- The type of the UI control (e.g. the type of the 'row').
- T- The type of the content in all cells in this table column.
- All Implemented Interfaces:
- Styleable,- EventTarget
- Direct Known Subclasses:
- TableColumn,- TreeTableColumn
TableView and TreeTableView) are
 made up of zero or more instances of a concrete TableColumnBase subclass
 (TableColumn and TreeTableColumn, respectively). Each
 table column in a table is responsible for displaying (and editing) the contents
 of that column. As well as being responsible for displaying and editing data
 for a single column, a table column also contains the necessary properties to:
 - Be resized (using minWidth/prefWidth/maxWidthandwidthproperties)
- Have its visibilitytoggled
- Display header text
- Display any nested columnsit may contain
- Have a context menuwhen the user right-clicks the column header area
- Have the contents of the table be sorted (using
      comparator,sortableand sortType).
text
 (what to show in the column header area), and the column
 cell value factory (which is used to populate individual cells in the
 column). Refer to the class documentation for TableColumn and
 TreeTableColumn for more information.- Since:
- JavaFX 8.0
- See Also:
- 
Property SummaryPropertiesTypePropertyDescriptionfinal ObjectProperty<Comparator<T>> Comparator function used when sorting this table column.final ObjectProperty<ContextMenu> This menu will be shown whenever the user right clicks within the header area of this TableColumnBase.final BooleanPropertySpecifies whether this table column allows editing.final ObjectProperty<Node> The graphic to show in the table column to allow the user to indicate graphically what is in the column.final StringPropertyThe id of this TableColumnBase.final DoublePropertyThe maximum width the table column is permitted to be resized to.final DoublePropertyThe minimum width the table column is permitted to be resized to.final ReadOnlyObjectProperty<TableColumnBase<S, ?>> This read-only property will always refer to the parent of this column, in the situation where nested columns are being used.final DoublePropertyThe preferred width of the TableColumn.final BooleanPropertyA boolean property to toggle on and off the 'reorderability' of this column (with drag and drop - reordering by modifying the appropriatecolumnslist is always allowed).final BooleanPropertyUsed to indicate whether the width of this column can change.final BooleanPropertyA boolean property to toggle on and off the 'sortability' of this column.final ObjectProperty<Node> The node to use as the "sort arrow", shown to the user in situations where the table column is part of the sort order.final StringPropertyA string representation of the CSS style associated with this TableColumnBase instance.final StringPropertyThis is the text to show in the header for this column.final BooleanPropertyToggling this will immediately toggle the visibility of this column, and all children columns.final ReadOnlyDoublePropertyThe width of this column.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final ComparatorBy default all columns will use this comparator to perform sorting.
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedCreates a default TableColumn with default cell factory, comparator, and onEditCommit implementation.protectedTableColumnBase(String text) Creates a TableColumn with the text set to the provided string, with default cell factory, comparator, and onEditCommit implementation.
- 
Method SummaryModifier and TypeMethodDescriptionConstruct an event dispatch chain for this target.final ObjectProperty<Comparator<T>> Comparator function used when sorting this table column.final ObjectProperty<ContextMenu> This menu will be shown whenever the user right clicks within the header area of this TableColumnBase.final BooleanPropertySpecifies whether this table column allows editing.final TgetCellData(int index) Returns the actual value for a cell at a given row index (and which belongs to this table column).final TgetCellData(S item) Returns the actual value for a cell from the given item.abstract ObservableValue<T> getCellObservableValue(int index) Attempts to return an ObservableValue<T> for the item in the given index (which is of type S).abstract ObservableValue<T> getCellObservableValue(S item) Attempts to return an ObservableValue<T> for the given item (which is of type S).abstract ObservableList<? extends TableColumnBase<S, ?>> This enables support for nested columns, which can be useful to group together related data.final Comparator<T> Gets the value of thecomparatorproperty.final ContextMenuGets the value of thecontextMenuproperty.final NodeGets the value of thegraphicproperty.final StringgetId()Gets the value of theidproperty.final doubleGets the value of themaxWidthproperty.final doubleGets the value of theminWidthproperty.final TableColumnBase<S, ?> Gets the value of theparentColumnproperty.final doubleGets the value of theprefWidthproperty.final ObservableMap<Object, Object> Returns an observable map of properties on this table column for use primarily by application developers.final ObservableSet<PseudoClass> Return the pseudo-class state of this Styleable.final NodeGets the value of thesortNodeproperty.final StringgetStyle()Gets the value of thestyleproperty.A list of String identifiers which can be used to logically group Nodes, specifically for an external style engine.final StringgetText()Gets the value of thetextproperty.Returns a previously set Object property, or null if no such property has been set using thesetUserData(java.lang.Object)method.final doublegetWidth()Gets the value of thewidthproperty.final ObjectProperty<Node> The graphic to show in the table column to allow the user to indicate graphically what is in the column.booleanTests if this table column has properties.final StringPropertyThe id of this TableColumnBase.final booleanGets the value of theeditableproperty.final booleanGets the value of thereorderableproperty.final booleanGets the value of theresizableproperty.final booleanGets the value of thesortableproperty.final booleanGets the value of thevisibleproperty.final DoublePropertyThe maximum width the table column is permitted to be resized to.final DoublePropertyThe minimum width the table column is permitted to be resized to.final ReadOnlyObjectProperty<TableColumnBase<S, ?>> This read-only property will always refer to the parent of this column, in the situation where nested columns are being used.final DoublePropertyThe preferred width of the TableColumn.final BooleanPropertyA boolean property to toggle on and off the 'reorderability' of this column (with drag and drop - reordering by modifying the appropriatecolumnslist is always allowed).final BooleanPropertyUsed to indicate whether the width of this column can change.final voidsetComparator(Comparator<T> value) Sets the value of thecomparatorproperty.final voidsetContextMenu(ContextMenu value) Sets the value of thecontextMenuproperty.final voidsetEditable(boolean value) Sets the value of theeditableproperty.final voidsetGraphic(Node value) Sets the value of thegraphicproperty.final voidSets the value of theidproperty.final voidsetMaxWidth(double value) Sets the value of themaxWidthproperty.final voidsetMinWidth(double value) Sets the value of theminWidthproperty.final voidsetPrefWidth(double value) Sets the value of theprefWidthproperty.final voidsetReorderable(boolean value) Sets the value of thereorderableproperty.final voidsetResizable(boolean value) Sets the value of theresizableproperty.final voidsetSortable(boolean value) Sets the value of thesortableproperty.final voidsetSortNode(Node value) Sets the value of thesortNodeproperty.final voidSets the value of thestyleproperty.final voidSets the value of thetextproperty.voidsetUserData(Object value) Convenience method for setting a single Object property that can be retrieved at a later date.final voidsetVisible(boolean value) Sets the value of thevisibleproperty.final BooleanPropertyA boolean property to toggle on and off the 'sortability' of this column.final ObjectProperty<Node> The node to use as the "sort arrow", shown to the user in situations where the table column is part of the sort order.final StringPropertyA string representation of the CSS style associated with this TableColumnBase instance.final StringPropertyThis is the text to show in the header for this column.final BooleanPropertyToggling this will immediately toggle the visibility of this column, and all children columns.final ReadOnlyDoublePropertyThe width of this column.Methods declared in class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods declared in interface javafx.event.EventTargetaddEventFilter, addEventHandler, removeEventFilter, removeEventHandlerMethods declared in interface javafx.css.StyleablegetCssMetaData, getStyleableNode, getStyleableParent, getTypeSelector
- 
Property Details- 
textThis is the text to show in the header for this column.- See Also:
 
- 
visibleToggling this will immediately toggle the visibility of this column, and all children columns.- See Also:
 
- 
parentColumnThis read-only property will always refer to the parent of this column, in the situation where nested columns are being used.In the currently existing subclasses, to create a nested column is simply a matter of placing the relevant TableColumnBase instances inside the columns ObservableList (for example, see TableColumn.getColumns()andTreeTableColumn.getColumns().- See Also:
 
- 
contextMenuThis menu will be shown whenever the user right clicks within the header area of this TableColumnBase.- See Also:
 
- 
idThe id of this TableColumnBase. This simple string identifier is useful for finding a specific TableColumnBase within a UI control that uses TableColumnBase instances. The default value isnull.- Default value:
- null
- See Also:
 
- 
styleA string representation of the CSS style associated with this TableColumnBase instance. This is analogous to the "style" attribute of an HTML element. Note that, like the HTML style attribute, this variable contains style properties and values and not the selector portion of a style rule.Parsing this style might not be supported on some limited platforms. It is recommended to use a standalone CSS file instead. - Default value:
- empty string
- See Also:
 
- 
graphicThe graphic to show in the table column to allow the user to indicate graphically what is in the column. - See Also:
 
- 
sortNodeThe node to use as the "sort arrow", shown to the user in situations where the table column is part of the sort order. It may be the only item in the sort order, or it may be a secondary, tertiary, or latter sort item, and the node should reflect this visually. This is only used in the case of the table column being in the sort order (refer to, for example, TableView.getSortOrder()andTreeTableView.getSortOrder()). If not specified, the table column skin implementation is responsible for providing a default sort node.The sort node is commonly seen represented as a triangle that rotates on screen to indicate whether the table column is part of the sort order, and if so, whether the sort is ascending or descending, and what position in the sort order it is in. - See Also:
 
- 
widthThe width of this column. Modifying this will result in the column width adjusting visually. It is recommended to not bind this property to an external property, as that will result in the column width not being adjustable by the user through dragging the left and right borders of column headers.- See Also:
 
- 
minWidthThe minimum width the table column is permitted to be resized to.- See Also:
 
- 
prefWidthThe preferred width of the TableColumn.- See Also:
 
- 
maxWidthThe maximum width the table column is permitted to be resized to.- See Also:
 
- 
resizableUsed to indicate whether the width of this column can change. It is up to the resizing policy to enforce this however.- See Also:
 
- 
sortableA boolean property to toggle on and off the 'sortability' of this column. When this property is true, this column can be included in sort operations. If this property is false, it will not be included in sort operations, even if it is contained within the sort order list of the underlying UI control (e.g. TableView.getSortOrder()orTreeTableView.getSortOrder()).For example, iIf a TableColumn instance is contained within the TableView sortOrder ObservableList, and its sortable property toggles state, it will force the TableView to perform a sort, as it is likely the view will need updating. - See Also:
 
- 
reorderableA boolean property to toggle on and off the 'reorderability' of this column (with drag and drop - reordering by modifying the appropriatecolumnslist is always allowed). When this property is true, this column can be reordered by users simply by dragging and dropping the columns into their desired positions. When this property is false, this ability to drag and drop columns is not available.- Since:
- 9
- See Also:
 
- 
comparatorComparator function used when sorting this table column. The two Objects given as arguments are the cell data for two individual cells in this column.- See Also:
 
- 
editableSpecifies whether this table column allows editing. This, unlikeTableView.editableProperty()andTreeTableView.editableProperty(), is true by default.- See Also:
 
 
- 
- 
Field Details- 
DEFAULT_COMPARATORBy default all columns will use this comparator to perform sorting. This comparator simply performs null checks, and checks if the object isComparable. If it is, theComparable.compareTo(java.lang.Object)method is called, otherwise this method will defer toCollator.compare(java.lang.String, java.lang.String).
 
- 
- 
Constructor Details- 
TableColumnBaseprotected TableColumnBase()Creates a default TableColumn with default cell factory, comparator, and onEditCommit implementation.
- 
TableColumnBaseCreates a TableColumn with the text set to the provided string, with default cell factory, comparator, and onEditCommit implementation.- Parameters:
- text- The string to show when the TableColumn is placed within the TableView.
 
 
- 
- 
Method Details- 
textPropertyThis is the text to show in the header for this column.- Returns:
- the textproperty
- See Also:
 
- 
setTextSets the value of thetextproperty.- Property description:
- This is the text to show in the header for this column.
- Parameters:
- value- the value for the- textproperty
- See Also:
 
- 
getTextGets the value of thetextproperty.- Property description:
- This is the text to show in the header for this column.
- Returns:
- the value of the textproperty
- See Also:
 
- 
setVisiblepublic final void setVisible(boolean value) Sets the value of thevisibleproperty.- Property description:
- Toggling this will immediately toggle the visibility of this column, and all children columns.
- Parameters:
- value- the value for the- visibleproperty
- See Also:
 
- 
isVisiblepublic final boolean isVisible()Gets the value of thevisibleproperty.- Property description:
- Toggling this will immediately toggle the visibility of this column, and all children columns.
- Returns:
- the value of the visibleproperty
- See Also:
 
- 
visiblePropertyToggling this will immediately toggle the visibility of this column, and all children columns.- Returns:
- the visibleproperty
- See Also:
 
- 
getParentColumnGets the value of theparentColumnproperty.- Property description:
- This read-only property will always refer to the parent of this column,
 in the situation where nested columns are being used.
 In the currently existing subclasses, to create a nested column is simply a matter of placing the relevant TableColumnBase instances inside the columns ObservableList (for example, see TableColumn.getColumns()andTreeTableColumn.getColumns().
- Returns:
- the value of the parentColumnproperty
- See Also:
 
- 
parentColumnPropertyThis read-only property will always refer to the parent of this column, in the situation where nested columns are being used.In the currently existing subclasses, to create a nested column is simply a matter of placing the relevant TableColumnBase instances inside the columns ObservableList (for example, see TableColumn.getColumns()andTreeTableColumn.getColumns().- Returns:
- the parentColumnproperty
- See Also:
 
- 
setContextMenuSets the value of thecontextMenuproperty.- Property description:
- This menu will be shown whenever the user right clicks within the header area of this TableColumnBase.
- Parameters:
- value- the value for the- contextMenuproperty
- See Also:
 
- 
getContextMenuGets the value of thecontextMenuproperty.- Property description:
- This menu will be shown whenever the user right clicks within the header area of this TableColumnBase.
- Returns:
- the value of the contextMenuproperty
- See Also:
 
- 
contextMenuPropertyThis menu will be shown whenever the user right clicks within the header area of this TableColumnBase.- Returns:
- the contextMenuproperty
- See Also:
 
- 
setIdSets the value of theidproperty.- Property description:
- The id of this TableColumnBase. This simple string identifier is useful
 for finding a specific TableColumnBase within a UI control that uses
 TableColumnBase instances. The default value is null.
- Default value:
- null
- Parameters:
- value- the value for the- idproperty
- See Also:
 
- 
getIdGets the value of theidproperty.- Specified by:
- getIdin interface- Styleable
- Property description:
- The id of this TableColumnBase. This simple string identifier is useful
 for finding a specific TableColumnBase within a UI control that uses
 TableColumnBase instances. The default value is null.
- Default value:
- null
- Returns:
- the value of the idproperty
- See Also:
 
- 
idPropertyThe id of this TableColumnBase. This simple string identifier is useful for finding a specific TableColumnBase within a UI control that uses TableColumnBase instances. The default value isnull.- Default value:
- null
- Returns:
- the idproperty
- See Also:
 
- 
setStyleSets the value of thestyleproperty.- Property description:
- A string representation of the CSS style associated with this
 TableColumnBase instance. This is analogous to the "style" attribute of an
 HTML element. Note that, like the HTML style attribute, this
 variable contains style properties and values and not the
 selector portion of a style rule.
 Parsing this style might not be supported on some limited platforms. It is recommended to use a standalone CSS file instead. 
- Default value:
- empty string
- Parameters:
- value- the value for the- styleproperty
- See Also:
 
- 
getStyleGets the value of thestyleproperty.- Specified by:
- getStylein interface- Styleable
- Property description:
- A string representation of the CSS style associated with this
 TableColumnBase instance. This is analogous to the "style" attribute of an
 HTML element. Note that, like the HTML style attribute, this
 variable contains style properties and values and not the
 selector portion of a style rule.
 Parsing this style might not be supported on some limited platforms. It is recommended to use a standalone CSS file instead. 
- Default value:
- empty string
- Returns:
- the value of the styleproperty
- See Also:
 
- 
stylePropertyA string representation of the CSS style associated with this TableColumnBase instance. This is analogous to the "style" attribute of an HTML element. Note that, like the HTML style attribute, this variable contains style properties and values and not the selector portion of a style rule.Parsing this style might not be supported on some limited platforms. It is recommended to use a standalone CSS file instead. - Default value:
- empty string
- Returns:
- the styleproperty
- See Also:
 
- 
getStyleClassA list of String identifiers which can be used to logically group Nodes, specifically for an external style engine. This variable is analogous to the "class" attribute on an HTML element and, as such, each element of the list is a style class to which this Node belongs.- Specified by:
- getStyleClassin interface- Styleable
- Returns:
- a list of String identifiers which can be used to logically group Nodes, specifically for an external style engine
- See Also:
 
- 
setGraphicSets the value of thegraphicproperty.- Property description:
- The graphic to show in the table column to allow the user to indicate graphically what is in the column. 
- Parameters:
- value- the value for the- graphicproperty
- See Also:
 
- 
getGraphicGets the value of thegraphicproperty.- Property description:
- The graphic to show in the table column to allow the user to indicate graphically what is in the column. 
- Returns:
- the value of the graphicproperty
- See Also:
 
- 
graphicPropertyThe graphic to show in the table column to allow the user to indicate graphically what is in the column. - Returns:
- the graphicproperty
- See Also:
 
- 
setSortNodeSets the value of thesortNodeproperty.- Property description:
- The node to use as the "sort arrow", shown to the user in situations where the table column is part of the sort order. It may be the only item in the sort order, or it may be a secondary, tertiary, or latter sort item, and the node should reflect this visually. This is only used in the case of the table column being in the sort order (refer to, for example, - TableView.getSortOrder()and- TreeTableView.getSortOrder()). If not specified, the table column skin implementation is responsible for providing a default sort node.- The sort node is commonly seen represented as a triangle that rotates on screen to indicate whether the table column is part of the sort order, and if so, whether the sort is ascending or descending, and what position in the sort order it is in. 
- Parameters:
- value- the value for the- sortNodeproperty
- See Also:
 
- 
getSortNodeGets the value of thesortNodeproperty.- Property description:
- The node to use as the "sort arrow", shown to the user in situations where the table column is part of the sort order. It may be the only item in the sort order, or it may be a secondary, tertiary, or latter sort item, and the node should reflect this visually. This is only used in the case of the table column being in the sort order (refer to, for example, - TableView.getSortOrder()and- TreeTableView.getSortOrder()). If not specified, the table column skin implementation is responsible for providing a default sort node.- The sort node is commonly seen represented as a triangle that rotates on screen to indicate whether the table column is part of the sort order, and if so, whether the sort is ascending or descending, and what position in the sort order it is in. 
- Returns:
- the value of the sortNodeproperty
- See Also:
 
- 
sortNodePropertyThe node to use as the "sort arrow", shown to the user in situations where the table column is part of the sort order. It may be the only item in the sort order, or it may be a secondary, tertiary, or latter sort item, and the node should reflect this visually. This is only used in the case of the table column being in the sort order (refer to, for example, TableView.getSortOrder()andTreeTableView.getSortOrder()). If not specified, the table column skin implementation is responsible for providing a default sort node.The sort node is commonly seen represented as a triangle that rotates on screen to indicate whether the table column is part of the sort order, and if so, whether the sort is ascending or descending, and what position in the sort order it is in. - Returns:
- the sortNodeproperty
- See Also:
 
- 
widthPropertyThe width of this column. Modifying this will result in the column width adjusting visually. It is recommended to not bind this property to an external property, as that will result in the column width not being adjustable by the user through dragging the left and right borders of column headers.- Returns:
- the width property
- See Also:
 
- 
getWidthpublic final double getWidth()Gets the value of thewidthproperty.- Property description:
- The width of this column. Modifying this will result in the column width adjusting visually. It is recommended to not bind this property to an external property, as that will result in the column width not being adjustable by the user through dragging the left and right borders of column headers.
- Returns:
- the value of the widthproperty
- See Also:
 
- 
setMinWidthpublic final void setMinWidth(double value) Sets the value of theminWidthproperty.- Property description:
- The minimum width the table column is permitted to be resized to.
- Parameters:
- value- the value for the- minWidthproperty
- See Also:
 
- 
getMinWidthpublic final double getMinWidth()Gets the value of theminWidthproperty.- Property description:
- The minimum width the table column is permitted to be resized to.
- Returns:
- the value of the minWidthproperty
- See Also:
 
- 
minWidthPropertyThe minimum width the table column is permitted to be resized to.- Returns:
- the minWidthproperty
- See Also:
 
- 
prefWidthPropertyThe preferred width of the TableColumn.- Returns:
- preferred width property
- See Also:
 
- 
setPrefWidthpublic final void setPrefWidth(double value) Sets the value of theprefWidthproperty.- Property description:
- The preferred width of the TableColumn.
- Parameters:
- value- the value for the- prefWidthproperty
- See Also:
 
- 
getPrefWidthpublic final double getPrefWidth()Gets the value of theprefWidthproperty.- Property description:
- The preferred width of the TableColumn.
- Returns:
- the value of the prefWidthproperty
- See Also:
 
- 
maxWidthPropertyThe maximum width the table column is permitted to be resized to.- Returns:
- maximum width property
- See Also:
 
- 
setMaxWidthpublic final void setMaxWidth(double value) Sets the value of themaxWidthproperty.- Property description:
- The maximum width the table column is permitted to be resized to.
- Parameters:
- value- the value for the- maxWidthproperty
- See Also:
 
- 
getMaxWidthpublic final double getMaxWidth()Gets the value of themaxWidthproperty.- Property description:
- The maximum width the table column is permitted to be resized to.
- Returns:
- the value of the maxWidthproperty
- See Also:
 
- 
resizablePropertyUsed to indicate whether the width of this column can change. It is up to the resizing policy to enforce this however.- Returns:
- the resizableproperty
- See Also:
 
- 
setResizablepublic final void setResizable(boolean value) Sets the value of theresizableproperty.- Property description:
- Used to indicate whether the width of this column can change. It is up to the resizing policy to enforce this however.
- Parameters:
- value- the value for the- resizableproperty
- See Also:
 
- 
isResizablepublic final boolean isResizable()Gets the value of theresizableproperty.- Property description:
- Used to indicate whether the width of this column can change. It is up to the resizing policy to enforce this however.
- Returns:
- the value of the resizableproperty
- See Also:
 
- 
sortablePropertyA boolean property to toggle on and off the 'sortability' of this column. When this property is true, this column can be included in sort operations. If this property is false, it will not be included in sort operations, even if it is contained within the sort order list of the underlying UI control (e.g. TableView.getSortOrder()orTreeTableView.getSortOrder()).For example, iIf a TableColumn instance is contained within the TableView sortOrder ObservableList, and its sortable property toggles state, it will force the TableView to perform a sort, as it is likely the view will need updating. - Returns:
- the sortableproperty
- See Also:
 
- 
setSortablepublic final void setSortable(boolean value) Sets the value of thesortableproperty.- Property description:
- A boolean property to toggle on and off the 'sortability' of this column. When this property is true, this column can be included in sort operations. If this property is false, it will not be included in sort operations, even if it is contained within the sort order list of the underlying UI control (e.g. - TableView.getSortOrder()or- TreeTableView.getSortOrder()).- For example, iIf a TableColumn instance is contained within the TableView sortOrder ObservableList, and its sortable property toggles state, it will force the TableView to perform a sort, as it is likely the view will need updating. 
- Parameters:
- value- the value for the- sortableproperty
- See Also:
 
- 
isSortablepublic final boolean isSortable()Gets the value of thesortableproperty.- Property description:
- A boolean property to toggle on and off the 'sortability' of this column. When this property is true, this column can be included in sort operations. If this property is false, it will not be included in sort operations, even if it is contained within the sort order list of the underlying UI control (e.g. - TableView.getSortOrder()or- TreeTableView.getSortOrder()).- For example, iIf a TableColumn instance is contained within the TableView sortOrder ObservableList, and its sortable property toggles state, it will force the TableView to perform a sort, as it is likely the view will need updating. 
- Returns:
- the value of the sortableproperty
- See Also:
 
- 
reorderablePropertyA boolean property to toggle on and off the 'reorderability' of this column (with drag and drop - reordering by modifying the appropriatecolumnslist is always allowed). When this property is true, this column can be reordered by users simply by dragging and dropping the columns into their desired positions. When this property is false, this ability to drag and drop columns is not available.- Returns:
- the reorderableproperty
- Since:
- 9
- See Also:
 
- 
setReorderablepublic final void setReorderable(boolean value) Sets the value of thereorderableproperty.- Property description:
- A boolean property to toggle on and off the 'reorderability' of this column
 (with drag and drop - reordering by modifying the appropriate columnslist is always allowed). When this property is true, this column can be reordered by users simply by dragging and dropping the columns into their desired positions. When this property is false, this ability to drag and drop columns is not available.
- Parameters:
- value- the value for the- reorderableproperty
- Since:
- 9
- See Also:
 
- 
isReorderablepublic final boolean isReorderable()Gets the value of thereorderableproperty.- Property description:
- A boolean property to toggle on and off the 'reorderability' of this column
 (with drag and drop - reordering by modifying the appropriate columnslist is always allowed). When this property is true, this column can be reordered by users simply by dragging and dropping the columns into their desired positions. When this property is false, this ability to drag and drop columns is not available.
- Returns:
- the value of the reorderableproperty
- Since:
- 9
- See Also:
 
- 
comparatorPropertyComparator function used when sorting this table column. The two Objects given as arguments are the cell data for two individual cells in this column.- Returns:
- the comparatorproperty
- See Also:
 
- 
setComparatorSets the value of thecomparatorproperty.- Property description:
- Comparator function used when sorting this table column. The two Objects given as arguments are the cell data for two individual cells in this column.
- Parameters:
- value- the value for the- comparatorproperty
- See Also:
 
- 
getComparatorGets the value of thecomparatorproperty.- Property description:
- Comparator function used when sorting this table column. The two Objects given as arguments are the cell data for two individual cells in this column.
- Returns:
- the value of the comparatorproperty
- See Also:
 
- 
setEditablepublic final void setEditable(boolean value) Sets the value of theeditableproperty.- Property description:
- Specifies whether this table column allows editing. This, unlike
 TableView.editableProperty()andTreeTableView.editableProperty(), is true by default.
- Parameters:
- value- the value for the- editableproperty
- See Also:
 
- 
isEditablepublic final boolean isEditable()Gets the value of theeditableproperty.- Property description:
- Specifies whether this table column allows editing. This, unlike
 TableView.editableProperty()andTreeTableView.editableProperty(), is true by default.
- Returns:
- the value of the editableproperty
- See Also:
 
- 
editablePropertySpecifies whether this table column allows editing. This, unlikeTableView.editableProperty()andTreeTableView.editableProperty(), is true by default.- Returns:
- the editableproperty
- See Also:
 
- 
getPropertiesReturns an observable map of properties on this table column for use primarily by application developers.- Returns:
- an observable map of properties on this table column for use primarily by application developers
 
- 
hasPropertiespublic boolean hasProperties()Tests if this table column has properties.- Returns:
- true if node has properties.
 
- 
setUserDataConvenience method for setting a single Object property that can be retrieved at a later date. This is functionally equivalent to calling the getProperties().put(Object key, Object value) method. This can later be retrieved by callinggetUserData().- Parameters:
- value- The value to be stored - this can later be retrieved by calling- getUserData().
 
- 
getUserDataReturns a previously set Object property, or null if no such property has been set using thesetUserData(java.lang.Object)method.- Returns:
- The Object that was previously set, or null if no property has been set or if null was set.
 
- 
getColumnsThis enables support for nested columns, which can be useful to group together related data. For example, we may have a 'Name' column with two nested columns for 'First' and 'Last' names.This has no impact on the table as such - all column indices point to the leaf columns only, and it isn't possible to sort using the parent column, just the leaf columns. In other words, this is purely a visual feature. - Returns:
- An ObservableList containing TableColumnBase instances (or subclasses) that are the children of this TableColumnBase. If these children TableColumnBase instances are set as visible, they will appear beneath this table column.
 
- 
getCellDataReturns the actual value for a cell at a given row index (and which belongs to this table column).- Parameters:
- index- The row index for which the data is required.
- Returns:
- The data that belongs to the cell at the intersection of the given row index and the table column that this method is called on.
 
- 
getCellDataReturns the actual value for a cell from the given item.- Parameters:
- item- The item from which a value of type T should be extracted.
- Returns:
- The data that should be used in a specific cell in this column, based on the item passed in as an argument.
 
- 
getCellObservableValueAttempts to return an ObservableValue<T> for the item in the given index (which is of type S). In other words, this method expects to receive an integer value that is greater than or equal to zero, and less than the size of the underlying data model. If the index is valid, this method will return an ObservableValue<T> for this specific column.This is achieved by calling the cell value factory, and returning whatever it returns when passed aCellDataFeatures(see, for example, the CellDataFeatures classes belonging toTableColumnandTreeTableColumnfor more information).- Parameters:
- index- The index of the item (of type S) for which an ObservableValue<T> is sought.
- Returns:
- An ObservableValue<T> for this specific table column.
 
- 
getCellObservableValueAttempts to return an ObservableValue<T> for the given item (which is of type S). In other words, this method expects to receive an object from the underlying data model for the entire 'row' in the table, and it must return an ObservableValue<T> for the value in this specific column.This is achieved by calling the cell value factory, and returning whatever it returns when passed aCellDataFeatures(see, for example, the CellDataFeatures classes belonging toTableColumnandTreeTableColumnfor more information).- Parameters:
- item- The item (of type S) for which an ObservableValue<T> is sought.
- Returns:
- An ObservableValue<T> for this specific table column.
 
- 
buildEventDispatchChainDescription copied from interface:EventTargetConstruct an event dispatch chain for this target. The event dispatch chain contains event dispatchers which might be interested in processing of events targeted at thisEventTarget. This event target is not automatically added to the chain, so if it wants to process events, it needs to add anEventDispatcherfor itself to the chain.In the case the event target is part of some hierarchy, the chain for it is usually built from event dispatchers collected from the root of the hierarchy to the event target. The event dispatch chain is constructed by modifications to the provided initial event dispatch chain. The returned chain should have the initial chain at its end so the dispatchers should be prepended to the initial chain. The caller shouldn't assume that the initial chain remains unchanged nor that the returned value will reference a different chain. - Specified by:
- buildEventDispatchChainin interface- EventTarget
- Parameters:
- tail- the initial chain to build from
- Returns:
- the resulting event dispatch chain for this target
 
- 
getPseudoClassStatesReturn the pseudo-class state of this Styleable. CSS assumes this set is read-only.- Specified by:
- getPseudoClassStatesin interface- Styleable
- Returns:
- the pseudo-class state
 
 
-