public class RowFixAction extends Action
CheckMenuItem node.
The following code snippet provides a ContextMenu that contains the fix action for each row in the row header:
TableView2<Person> table = new TableView2<Person>();
table.setRowHeaderVisible(true);
table.setRowHeaderContextMenuFactory((i, person) ->
ActionUtils.createContextMenu(Arrays.asList(new RowFixAction(this, i))));
| Constructor and Description |
|---|
RowFixAction(TableView2 tableView,
java.lang.Integer row)
Creates a fix action for a given column.
|
RowFixAction(TableView2 tableView,
java.lang.Integer row,
java.lang.String name)
Creates a fix action for a given column.
|
RowFixAction(TableView2 tableView,
java.lang.Integer row,
java.lang.String name,
javafx.scene.Node image)
Creates a fix action for a given column.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
toString() |
acceleratorProperty, disabledProperty, getAccelerator, getEventHandler, getGraphic, getLongText, getProperties, getStyle, getStyleClass, getText, graphicProperty, handle, isDisabled, isSelected, lock, longTextProperty, selectedProperty, setAccelerator, setDisabled, setEventHandler, setGraphic, setLongText, setSelected, setStyle, setText, styleProperty, textPropertypublic RowFixAction(TableView2 tableView, java.lang.Integer row)
ContextMenu
of the column.tableView - The TableView2 to which the action is applied torow - The number of rowpublic RowFixAction(TableView2 tableView, java.lang.Integer row, java.lang.String name)
ContextMenu
of the column.tableView - The TableView2 to which the action is applied torow - The number of rowname - the string to display in the text property of controls such
as MenuItem.public RowFixAction(TableView2 tableView, java.lang.Integer row, java.lang.String name, javafx.scene.Node image)
ContextMenu
of the column.tableView - The TableView2 to which the action is applied torow - The number of rowname - the string to display in the text property of controls such
as MenuItem.image - the node to display in the graphic property of controls such
as CheckMenuItem.