Cell which contains an index property which maps
into the data model underlying the visualization. Despite this,
IndexedCell should not be instantiated directly in a cell factory
(refer to Cell for more details on what a cell factory is).
Instead of creating IndexedCell directly, you should
instead make use of the control-specific cell implementations (for example,
ListCell, TreeCell) TableRow and TableCell).
For more information about using and customizing cells, refer to the
Cell API documentation.
Because each sequential index represents a single sequential element in the
control, this allows for easy alternative row highlighting. By default the
controls which use Cells provide their own alternative row
highlighting colors, but this can be overridden using two pseudo class states
provided by IndexedCell: "even" and "odd".
| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private ReadOnlyIntegerWrapper | |
| private int | |
| private static final PseudoClass | |
| private static final PseudoClass |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final int | Returns: the index that this cell represents in the underlying control data modelReturns the index that this cell represents in the underlying control data model. |
| pack-priv void | indexChanged(int
the old index oldIndex, int the new index newIndex)This method is called whenever the index is changed, regardless of whether the new index is the same as the old index. |
| public final ReadOnlyIntegerProperty | Returns: the location of this cell in the virtualized controlThe location of this cell in the virtualized control (e.g:
|
| public void | updateIndex(int
the index associated with this indexed cell newIndex)Updates the index associated with this IndexedCell. |
| DEFAULT_STYLE_CLASS | back to summary |
|---|---|
| private static final String DEFAULT_STYLE_CLASS | |
| index | back to summary |
|---|---|
| private ReadOnlyIntegerWrapper index | |
| oldIndex | back to summary |
|---|---|
| private int oldIndex | |
| PSEUDO_CLASS_EVEN | back to summary |
|---|---|
| private static final PseudoClass PSEUDO_CLASS_EVEN | |
| PSEUDO_CLASS_ODD | back to summary |
|---|---|
| private static final PseudoClass PSEUDO_CLASS_ODD | |
| IndexedCell | back to summary |
|---|---|
| public IndexedCell() Creates a default IndexedCell with the default style class of 'indexed-cell'. | |
| getIndex | back to summary |
|---|---|
| public final int getIndex() Returns the index that this cell represents in the underlying control data model.
| |
| indexChanged | back to summary |
|---|---|
| pack-priv void indexChanged(int oldIndex, int newIndex) This method is called whenever the index is changed, regardless of whether the new index is the same as the old index.
| |
| indexProperty | back to summary |
|---|---|
| public final ReadOnlyIntegerProperty indexProperty() The location of this cell in the virtualized control (e.g:
| |
| updateIndex | back to summary |
|---|---|
| public void updateIndex(int newIndex) Updates the index associated with this IndexedCell. Note This function is intended to be used by experts, primarily by those implementing new Skins. It is not common for developers or designers to access this function directly.
| |