public static class TreeTableColumn.CellEditEvent<S,T>
extends Event
Modifier and Type | Field and Description |
---|---|
static <any> |
ANY
Common supertype for all cell edit event types.
|
private T |
newValue |
private TreeTablePosition<S,T> |
pos |
private static long |
serialVersionUID |
Constructor and Description |
---|
CellEditEvent(TreeTableView<S> table,
TreeTablePosition<S,T> pos,
<any> eventType,
T newValue)
Creates a new event that can be subsequently fired to the relevant listeners.
|
Modifier and Type | Method and Description |
---|---|
T |
getNewValue()
Returns the new value input by the end user.
|
T |
getOldValue()
Attempts to return the old value at the position referred to in the
TablePosition returned by
getTreeTablePosition() . |
TreeItem<S> |
getRowValue()
Convenience method that returns the value for the row (that is, from
the TableView
items list), for the
row contained within the TablePosition returned in
getTreeTablePosition() . |
TreeTableColumn<S,T> |
getTableColumn()
Returns the TreeTableColumn upon which this event occurred.
|
TreeTablePosition<S,T> |
getTreeTablePosition()
Returns the position upon which this event occurred.
|
TreeTableView<S> |
getTreeTableView()
Returns the TableView upon which this event occurred.
|
private static final long serialVersionUID
public static final <any> ANY
private final T newValue
private final transient TreeTablePosition<S,T> pos
public CellEditEvent(TreeTableView<S> table, TreeTablePosition<S,T> pos, <any> eventType, T newValue)
table
- The TableView on which this event occurred.pos
- The position upon which this event occurred.eventType
- The type of event that occurred.newValue
- The value input by the end user.public TreeTableView<S> getTreeTableView()
public TreeTableColumn<S,T> getTableColumn()
public TreeTablePosition<S,T> getTreeTablePosition()
public T getNewValue()
public T getOldValue()
getTreeTablePosition()
. This may return
null for a number of reasons.public TreeItem<S> getRowValue()
items
list), for the
row contained within the TablePosition
returned in
getTreeTablePosition()
.