java.lang.Object
java.util.EventObject
javafx.event.Event
javafx.scene.control.TableColumn.CellEditEvent<S,T> 
- Type Parameters:
- S- The type of the TableView generic type
- T- The type of the content in all cells in this TableColumn
- All Implemented Interfaces:
- Serializable,- Cloneable
- Enclosing class:
- TableColumn<S,- T> 
An event that is fired when a user performs an edit on a table cell.
- Since:
- JavaFX 2.0
- See Also:
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final EventType<?> Common supertype for all cell edit event types.Fields declared in class javafx.event.Eventconsumed, eventType, NULL_SOURCE_TARGET, targetFields declared in class java.util.EventObjectsource
- 
Constructor SummaryConstructorsConstructorDescriptionCellEditEvent(TableView<S> table, TablePosition<S, T> pos, EventType<TableColumn.CellEditEvent<S, T>> eventType, T newValue) Creates a new event that can be subsequently fired to the relevant listeners.
- 
Method SummaryModifier and TypeMethodDescriptionReturns the new value input by the end user.Attempts to return the old value at the position referred to in the TablePosition returned bygetTablePosition().Convenience method that returns the value for the row (that is, from the TableViewitemslist), for the row contained within theTablePositionreturned ingetTablePosition().Returns the TableColumn upon which this event occurred.Returns the position upon which this event occurred.Returns the TableView upon which this event occurred.Methods declared in class javafx.event.Eventclone, consume, copyFor, fireEvent, getEventType, getTarget, isConsumedMethods declared in class java.util.EventObjectgetSource, toString
- 
Field Details- 
ANYCommon supertype for all cell edit event types.- Since:
- JavaFX 8.0
 
 
- 
- 
Constructor Details- 
CellEditEventpublic CellEditEvent(TableView<S> table, TablePosition<S, T> pos, EventType<TableColumn.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 Details- 
getTableViewReturns the TableView upon which this event occurred.- Returns:
- The TableView control upon which this event occurred.
 
- 
getTableColumnReturns the TableColumn upon which this event occurred.- Returns:
- The TableColumn that the edit occurred in.
 
- 
getTablePositionReturns the position upon which this event occurred.- Returns:
- The position upon which this event occurred.
 
- 
getNewValueReturns 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.
 
- 
getOldValueAttempts to return the old value at the position referred to in the TablePosition returned bygetTablePosition(). 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.
 
- 
getRowValueConvenience method that returns the value for the row (that is, from the TableViewitemslist), for the row contained within theTablePositionreturned ingetTablePosition().- Returns:
- the value for the row
 
 
-