T
- The type of the item contained within the Cell.public class TableRow<T> extends IndexedCell<T>
TableRow is an IndexedCell
, but
rarely needs to be used by developers creating TableView instances. The only
time TableRow is likely to be encountered at all by a developer is if they
wish to create a custom rowFactory
that replaces an entire row of a TableView.
More often than not, it is actually easier for a developer to customize
individual cells in a row, rather than the whole row itself. To do this,
you can specify a custom cellFactory
on each TableColumn instance.
TableView
,
TableColumn
,
TableCell
,
IndexedCell
,
Cell
Type | Property and Description |
---|---|
<any> |
tableView
The TableView associated with this Cell.
|
indexProperty
editableProperty, editingProperty, emptyProperty, itemProperty, selectedProperty
alignmentProperty, contentDisplayProperty, ellipsisStringProperty, fontProperty, graphicProperty, graphicTextGapProperty, labelPaddingProperty, lineSpacingProperty, mnemonicParsingProperty, textAlignmentProperty, textFillProperty, textOverrunProperty, textProperty, underlineProperty, wrapTextProperty
contextMenuProperty, skinClassNameProperty, skinProperty, tooltipProperty
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
DEFAULT_STYLE_CLASS
*
Stylesheet Handling *
*
|
private InvalidationListener |
editingListener |
private InvalidationListener |
focusedListener |
private boolean |
isFirstRun |
private <any> |
selectedListener
*
Callbacks and Events *
*
|
private <any> |
tableView
*
Properties *
*
|
private WeakInvalidationListener |
weakEditingListener |
private WeakInvalidationListener |
weakFocusedListener |
private <any> |
weakSelectedListener |
Constructor and Description |
---|
TableRow()
Constructs a default TableRow instance with a style class of 'table-row-cell'
|
Modifier and Type | Method and Description |
---|---|
protected Skin<?> |
createDefaultSkin()
Create a new instance of the default skin for this control.
|
TableView<T> |
getTableView()
Gets the value of the property tableView.
|
(package private) 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.
|
java.lang.Object |
queryAccessibleAttribute(AccessibleAttribute attribute,
java.lang.Object... parameters) |
private void |
setTableView(TableView<T> value) |
<any> |
tableViewProperty()
The TableView associated with this Cell.
|
private <any> |
tableViewPropertyImpl() |
private void |
updateEditing() |
private void |
updateFocus() |
private void |
updateItem(int oldIndex) |
private void |
updateSelection() |
void |
updateTableView(TableView<T> tv)
Updates the TableView associated with this TableCell.
|
getIndex, indexProperty, updateIndex
cancelEdit, commitEdit, editableProperty, editingProperty, emptyProperty, getInitialFocusTraversable, getItem, isEditable, isEditing, isEmpty, isItemChanged, isSelected, itemProperty, layoutChildren, selectedProperty, setEditable, setItem, setSelected, startEdit, updateItem, updateSelected
alignmentProperty, contentDisplayProperty, ellipsisStringProperty, fontProperty, getAlignment, getClassCssMetaData, getContentBias, getContentDisplay, getControlCssMetaData, getEllipsisString, getFont, getGraphic, getGraphicTextGap, getInitialAlignment, getLabelPadding, getLineSpacing, getText, getTextAlignment, getTextFill, getTextOverrun, graphicProperty, graphicTextGapProperty, isMnemonicParsing, isUnderline, isWrapText, labelPaddingProperty, lineSpacingProperty, mnemonicParsingProperty, setAlignment, setContentDisplay, setEllipsisString, setFont, setGraphic, setGraphicTextGap, setLineSpacing, setMnemonicParsing, setText, setTextAlignment, setTextFill, setTextOverrun, setUnderline, setWrapText, textAlignmentProperty, textFillProperty, textOverrunProperty, textProperty, toString, underlineProperty, wrapTextProperty
computeMaxHeight, computeMaxWidth, computeMinHeight, computeMinWidth, computePrefHeight, computePrefWidth, contextMenuProperty, executeAccessibleAction, getBaselineOffset, getContextMenu, getControlChildren, getCssMetaData, getSkin, getTooltip, isResizable, loadSkinClass, setContextMenu, setSkin, setTooltip, skinClassNameProperty, skinProperty, tooltipProperty
public final <any> tableViewProperty
private <any> selectedListener
private final InvalidationListener focusedListener
private final InvalidationListener editingListener
private final <any> weakSelectedListener
private final WeakInvalidationListener weakFocusedListener
private final WeakInvalidationListener weakEditingListener
private <any> tableView
private boolean isFirstRun
private static final java.lang.String DEFAULT_STYLE_CLASS
public TableRow()
public final <any> tableViewProperty()
private <any> tableViewPropertyImpl()
protected Skin<?> createDefaultSkin()
-fx-skin
or set explicitly in a sub-class with setSkin(...)
.createDefaultSkin
in class Control
void indexChanged(int oldIndex, int newIndex)
indexChanged
in class IndexedCell<T>
private void updateItem(int oldIndex)
private void updateSelection()
private void updateFocus()
private void updateEditing()
public final void updateTableView(TableView<T> tv)
tv
- the TableViewpublic java.lang.Object queryAccessibleAttribute(AccessibleAttribute attribute, java.lang.Object... parameters)
queryAccessibleAttribute
in class Control