- java.lang.Object
- 
- java.util.EventObject
- 
- javafx.event.Event
- 
- javafx.scene.control.TreeTableColumn.CellEditEvent<S,T>
 
 
 
- 
- All Implemented Interfaces:
- Serializable,- Cloneable
 - Enclosing class:
- TreeTableColumn<S,T>
 
 public static class TreeTableColumn.CellEditEvent<S,T> extends Event An event that is fired when a user performs an edit on a table cell.- Since:
- JavaFX 8.0
- See Also:
- Serialized Form
 
- 
- 
Field SummaryFields Modifier and Type Field Description static EventType<?>ANYCommon supertype for all cell edit event types.- 
Fields inherited from class javafx.event.Eventconsumed, eventType, NULL_SOURCE_TARGET, target
 - 
Fields inherited from class java.util.EventObjectsource
 
- 
 - 
Constructor SummaryConstructors Constructor Description CellEditEvent(TreeTableView<S> table, TreeTablePosition<S,T> pos, EventType<TreeTableColumn.CellEditEvent<S,T>> eventType, T newValue)Creates a new event that can be subsequently fired to the relevant listeners.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description TgetNewValue()Returns the new value input by the end user.TgetOldValue()Attempts to return the old value at the position referred to in the TablePosition returned bygetTreeTablePosition().TreeItem<S>getRowValue()Convenience method that returns the value for the row (that is, from the TableViewitemslist), for the row contained within theTablePositionreturned ingetTreeTablePosition().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.- 
Methods inherited from class javafx.event.Eventclone, consume, copyFor, fireEvent, getEventType, getTarget, isConsumed
 - 
Methods inherited from class java.util.EventObjectgetSource, toString
 
- 
 
- 
- 
- 
Field Detail- 
ANYpublic static final EventType<?> ANY Common supertype for all cell edit event types.
 
- 
 - 
Constructor Detail- 
CellEditEventpublic CellEditEvent(TreeTableView<S> table, TreeTablePosition<S,T> pos, EventType<TreeTableColumn.CellEditEvent<S,T>> eventType, T newValue) Creates a new event that can be subsequently fired to the relevant listeners.- Parameters:
- 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.
 
 
- 
 - 
Method Detail- 
getTreeTableViewpublic TreeTableView<S> getTreeTableView() Returns the TableView upon which this event occurred.- Returns:
- The TableView control upon which this event occurred.
 
 - 
getTableColumnpublic TreeTableColumn<S,T> getTableColumn() Returns the TreeTableColumn upon which this event occurred.- Returns:
- The TreeTableColumn that the edit occurred in.
 
 - 
getTreeTablePositionpublic TreeTablePosition<S,T> getTreeTablePosition() Returns the position upon which this event occurred.- Returns:
- The position upon which this event occurred.
 
 - 
getNewValuepublic T getNewValue() Returns the new value input by the end user. This is not the value to go back into the TableView.items list - this new value represents just the input for a single cell, so it is likely that it needs to go back into a property within an item in the TableView.items list.- Returns:
- An Object representing the new value input by the user.
 
 - 
getOldValuepublic T getOldValue() Attempts to return the old value at the position referred to in the TablePosition returned bygetTreeTablePosition(). This may return null for a number of reasons.- Returns:
- Returns the value stored in the position being edited, or null if it can not be retrieved.
 
 - 
getRowValuepublic TreeItem<S> getRowValue() Convenience method that returns the value for the row (that is, from the TableViewitemslist), for the row contained within theTablePositionreturned ingetTreeTablePosition().- Returns:
- the row value
 
 
- 
 
-