- Type Parameters:
T- The type of the input, which is the same type as the ListView itself.
public static class ListView.EditEvent<T> extends Event
Eventsubclass used specifically in ListView for representing edit-related events. It provides additional API to easily access the index that the edit event took place on, as well as the input provided by the end user.
- JavaFX 2.0
- See Also:
- Serialized Form
ANYpublic static final EventType<?> ANYCommon supertype for all edit event types.
- JavaFX 8.0
EditEventpublic EditEvent(ListView<T> source, EventType<? extends ListView.EditEvent<T>> eventType, T newValue, int editIndex)Creates a new EditEvent instance to represent an edit event. This event is used for
source- the source
eventType- the event type
newValue- the new value
editIndex- the edit index
getSourceReturns the ListView upon which the edit took place.
getIndexpublic int getIndex()Returns the index in which the edit took place.
- the index in which the edit took place
getNewValuepublic T getNewValue()Returns the value of the new input provided by the end user.
- the value of the new input provided by the end user
toStringpublic String toString()Returns a string representation of this