javafx.scene.control.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))));
ActionUtils#createContextMenu(java.util.Collection)
| Access | Constructor and Description |
|---|---|
| public | RowFixAction(TableView2<S>
The TableView2 to which the action is applied to tableView, Integer The number of row row)Creates a fix action for a given column. |
| public | RowFixAction(TableView2<S>
The TableView2 to which the action is applied to tableView, Integer The number of row row, String the string to display in the text property of controls such
as name)MenuItem.Creates a fix action for a given column. |
| public | RowFixAction(TableView2<S>
The TableView2 to which the action is applied to tableView, Integer The number of row row, String the string to display in the text property of controls such
as name, Node MenuItem.the node to display in the graphic property of controls such
as image)CheckMenuItem.Creates a fix action for a given column. |
| Modifier and Type | Method and Description |
|---|---|
| public String |
| RowFixAction | back to summary |
|---|---|
| public RowFixAction(TableView2<S> tableView, Integer row) Creates a fix action for a given column. When fired, the action will fix
the column if is allowed and the column wasn't fixed yet, or unfix a fixed
column.
The action can be attached for instance to the
| |
| RowFixAction | back to summary |
|---|---|
| public RowFixAction(TableView2<S> tableView, Integer row, String name) Creates a fix action for a given column. When fired, the action will fix
the column if is allowed and the column wasn't fixed yet, or unfix a fixed
column.
The action can be attached for instance to the
| |
| RowFixAction | back to summary |
|---|---|
| public RowFixAction(TableView2<S> tableView, Integer row, String name, Node image) Creates a fix action for a given column. When fired, the action will fix
the column if is allowed and the column wasn't fixed yet, or unfix a fixed
column.
The action can be attached for instance to the
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |