- java.lang.Object
- 
- java.util.EventObject
- 
- javafx.event.Event
- 
- javafx.scene.control.ListView.EditEvent<T>
 
 
 
- 
- Type Parameters:
- T- The type of the input, which is the same type as the ListView itself.
 - All Implemented Interfaces:
- Serializable,- Cloneable
 
 public static class ListView.EditEvent<T> extends Event AnEventsubclass 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.- Since:
- JavaFX 2.0
- See Also:
- Serialized Form
 
- 
- 
Method SummaryModifier and Type Method Description intgetIndex()Returns the index in which the edit took place.TgetNewValue()Returns the value of the new input provided by the end user.ListView<T>getSource()Returns the ListView upon which the edit took place.StringtoString()Returns a string representation of thisEditEventobject.- 
Methods inherited from class javafx.event.Eventclone, consume, copyFor, fireEvent, getEventType, getTarget, isConsumed
 
- 
 
- 
- 
- 
Field Detail- 
ANYpublic static final EventType<?> ANY Common supertype for all edit event types.- Since:
- JavaFX 8.0
 
 
- 
 - 
Constructor Detail- 
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 forListView.editStartEvent(),ListView.editCommitEvent()andListView.editCancelEvent()types.- Parameters:
- source- the source
- eventType- the event type
- newValue- the new value
- editIndex- the edit index
 
 
- 
 - 
Method Detail- 
getSourcepublic ListView<T> getSource() Returns the ListView upon which the edit took place.- Overrides:
- getSourcein class- EventObject
 
 - 
getIndexpublic int getIndex() Returns the index in which the edit took place.- Returns:
- the index in which the edit took place
 
 - 
getNewValuepublic T getNewValue() Returns the value of the new input provided by the end user.- Returns:
- the value of the new input provided by the end user
 
 - 
toStringpublic String toString() Returns a string representation of thisEditEventobject.- Overrides:
- toStringin class- EventObject
- Returns:
- a string representation of this EditEventobject.
 
 
- 
 
-