Class GridTableColumn<S,T>
java.lang.Object
javafx.scene.layout.ConstraintsBase
javafx.scene.layout.ColumnConstraints
com.dlsc.gemsfx.gridtable.GridTableColumn<S,T>
- Type Parameters:
S- table item typeT- table cell value type
public class GridTableColumn<S,T>
extends javafx.scene.layout.ColumnConstraints
A column in a
GridTableView.-
Property Summary
PropertiesTypePropertyDescriptionfinal javafx.beans.property.ObjectProperty<javafx.util.Callback<GridTableView<S>, GridTableCell<S, T>>> Stores the factory used to create cells for this column.Stores the factory used to extract cell values from row items.final javafx.beans.property.ObjectProperty<javafx.scene.control.ContentDisplay> Stores how the text and graphic should be arranged in the header.final javafx.beans.property.ObjectProperty<javafx.util.StringConverter<T>> Stores the converter used to turn cell values into text.final javafx.beans.property.ObjectProperty<javafx.scene.Node> Stores the graphic shown in the header.final javafx.beans.property.ReadOnlyObjectProperty<javafx.scene.Node> A read-only property containing the header node.final javafx.beans.property.StringPropertyStores the text shown in the header.Properties inherited from class javafx.scene.layout.ColumnConstraints
fillWidth, halignment, hgrow, maxWidth, minWidth, percentWidth, prefWidth -
Field Summary
FieldsModifier and TypeFieldDescriptionFields inherited from class javafx.scene.layout.ConstraintsBase
CONSTRAIN_TO_PREF -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new grid table column with an empty header.GridTableColumn(String text) Constructs a new grid table column that only shows text.GridTableColumn(String text, javafx.scene.Node graphic) Constructs a new grid table column.GridTableColumn(javafx.scene.Node graphic) Constructs a new grid table column that only shows a graphic. -
Method Summary
Modifier and TypeMethodDescriptionfinal javafx.beans.property.ObjectProperty<javafx.util.Callback<GridTableView<S>, GridTableCell<S, T>>> Stores the factory used to create cells for this column.Stores the factory used to extract cell values from row items.final javafx.beans.property.ObjectProperty<javafx.scene.control.ContentDisplay> Stores how the text and graphic should be arranged in the header.final javafx.beans.property.ObjectProperty<javafx.util.StringConverter<T>> Stores the converter used to turn cell values into text.final GridTableCell<S, T> createCell(GridTableView<S> tableView, int index) Creates a new cell for the given table view and row index.final javafx.util.Callback<GridTableView<S>, GridTableCell<S, T>> Gets the value of thecellFactoryproperty.Gets the value of thecellValueFactoryproperty.final javafx.scene.control.ContentDisplayGets the value of thecontentDisplayproperty.final javafx.util.StringConverter<T> Gets the value of theconverterproperty.final javafx.scene.NodeGets the value of thegraphicproperty.final javafx.scene.NodeGets the value of theheaderproperty.javafx.collections.ObservableList<String> Returns the style classes applied to cells created by this column.final StringgetText()Gets the value of thetextproperty.final javafx.beans.property.ObjectProperty<javafx.scene.Node> Stores the graphic shown in the header.final javafx.beans.property.ReadOnlyObjectProperty<javafx.scene.Node> A read-only property containing the header node.final voidsetCellFactory(javafx.util.Callback<GridTableView<S>, GridTableCell<S, T>> cellFactory) Sets the value of thecellFactoryproperty.final voidsetCellValueFactory(javafx.util.Callback<S, T> cellValueFactory) Sets the value of thecellValueFactoryproperty.final voidsetContentDisplay(javafx.scene.control.ContentDisplay contentDisplay) Sets the value of thecontentDisplayproperty.final voidsetConverter(javafx.util.StringConverter<T> converter) Sets the value of theconverterproperty.final voidsetGraphic(javafx.scene.Node graphic) Sets the value of thegraphicproperty.final voidSets the value of thetextproperty.final javafx.beans.property.StringPropertyStores the text shown in the header.Methods inherited from class javafx.scene.layout.ColumnConstraints
fillWidthProperty, getHalignment, getHgrow, getMaxWidth, getMinWidth, getPercentWidth, getPrefWidth, halignmentProperty, hgrowProperty, isFillWidth, maxWidthProperty, minWidthProperty, percentWidthProperty, prefWidthProperty, setFillWidth, setHalignment, setHgrow, setMaxWidth, setMinWidth, setPercentWidth, setPrefWidth, toStringMethods inherited from class javafx.scene.layout.ConstraintsBase
requestLayout
-
Property Details
-
contentDisplay
public final javafx.beans.property.ObjectProperty<javafx.scene.control.ContentDisplay> contentDisplayPropertyStores how the text and graphic should be arranged in the header.- See Also:
-
graphic
public final javafx.beans.property.ObjectProperty<javafx.scene.Node> graphicPropertyStores the graphic shown in the header.- See Also:
-
text
public final javafx.beans.property.StringProperty textPropertyStores the text shown in the header.- See Also:
-
converter
Stores the converter used to turn cell values into text.- See Also:
-
cellFactory
public final javafx.beans.property.ObjectProperty<javafx.util.Callback<GridTableView<S>, GridTableCell<S,T>>> cellFactoryPropertyStores the factory used to create cells for this column.- See Also:
-
cellValueFactory
-
header
public final javafx.beans.property.ReadOnlyObjectProperty<javafx.scene.Node> headerPropertyA read-only property containing the header node.- See Also:
-
-
Field Details
-
cellValueFactory
-
-
Constructor Details
-
GridTableColumn
Constructs a new grid table column.- Parameters:
text- the column textgraphic- the column graphic
-
GridTableColumn
public GridTableColumn(javafx.scene.Node graphic) Constructs a new grid table column that only shows a graphic.- Parameters:
graphic- the column graphic
-
GridTableColumn
Constructs a new grid table column that only shows text.- Parameters:
text- the column text
-
GridTableColumn
public GridTableColumn()Constructs a new grid table column with an empty header.
-
-
Method Details
-
getStyleClass
Returns the style classes applied to cells created by this column.- Returns:
- the style classes
-
getContentDisplay
public final javafx.scene.control.ContentDisplay getContentDisplay()Gets the value of thecontentDisplayproperty.- Property description:
- Stores how the text and graphic should be arranged in the header.
- Returns:
- the value of the
contentDisplayproperty - See Also:
-
contentDisplayProperty
public final javafx.beans.property.ObjectProperty<javafx.scene.control.ContentDisplay> contentDisplayProperty()Stores how the text and graphic should be arranged in the header.- Returns:
- the content display property
- See Also:
-
setContentDisplay
public final void setContentDisplay(javafx.scene.control.ContentDisplay contentDisplay) Sets the value of thecontentDisplayproperty.- Property description:
- Stores how the text and graphic should be arranged in the header.
- Parameters:
contentDisplay- the value for thecontentDisplayproperty- See Also:
-
getGraphic
public final javafx.scene.Node getGraphic()Gets the value of thegraphicproperty.- Property description:
- Stores the graphic shown in the header.
- Returns:
- the value of the
graphicproperty - See Also:
-
graphicProperty
public final javafx.beans.property.ObjectProperty<javafx.scene.Node> graphicProperty()Stores the graphic shown in the header.- Returns:
- the graphic property
- See Also:
-
setGraphic
public final void setGraphic(javafx.scene.Node graphic) Sets the value of thegraphicproperty.- Property description:
- Stores the graphic shown in the header.
- Parameters:
graphic- the value for thegraphicproperty- See Also:
-
getText
Gets the value of thetextproperty.- Property description:
- Stores the text shown in the header.
- Returns:
- the value of the
textproperty - See Also:
-
textProperty
public final javafx.beans.property.StringProperty textProperty()Stores the text shown in the header.- Returns:
- the text property
- See Also:
-
setText
Sets the value of thetextproperty.- Property description:
- Stores the text shown in the header.
- Parameters:
text- the value for thetextproperty- See Also:
-
getConverter
Gets the value of theconverterproperty.- Property description:
- Stores the converter used to turn cell values into text.
- Returns:
- the value of the
converterproperty - See Also:
-
converterProperty
public final javafx.beans.property.ObjectProperty<javafx.util.StringConverter<T>> converterProperty()Stores the converter used to turn cell values into text.- Returns:
- the converter property
- See Also:
-
setConverter
Sets the value of theconverterproperty.- Property description:
- Stores the converter used to turn cell values into text.
- Parameters:
converter- the value for theconverterproperty- See Also:
-
getCellFactory
Gets the value of thecellFactoryproperty.- Property description:
- Stores the factory used to create cells for this column.
- Returns:
- the value of the
cellFactoryproperty - See Also:
-
cellFactoryProperty
public final javafx.beans.property.ObjectProperty<javafx.util.Callback<GridTableView<S>, GridTableCell<S,T>>> cellFactoryProperty()Stores the factory used to create cells for this column.- Returns:
- the cell factory property
- See Also:
-
setCellFactory
public final void setCellFactory(javafx.util.Callback<GridTableView<S>, GridTableCell<S, T>> cellFactory) Sets the value of thecellFactoryproperty.- Property description:
- Stores the factory used to create cells for this column.
- Parameters:
cellFactory- the value for thecellFactoryproperty- See Also:
-
getCellValueFactory
-
cellValueFactoryProperty
-
setCellValueFactory
Sets the value of thecellValueFactoryproperty.- Property description:
- Stores the factory used to extract cell values from row items.
- Parameters:
cellValueFactory- the value for thecellValueFactoryproperty- See Also:
-
getHeader
public final javafx.scene.Node getHeader()Gets the value of theheaderproperty.- Property description:
- A read-only property containing the header node.
- Returns:
- the value of the
headerproperty - See Also:
-
headerProperty
public final javafx.beans.property.ReadOnlyObjectProperty<javafx.scene.Node> headerProperty()A read-only property containing the header node.- Returns:
- the header property
- See Also:
-
createCell
Creates a new cell for the given table view and row index.- Parameters:
tableView- the owning table viewindex- the row index- Returns:
- the created cell
-