T - The type of the input, which is the same type as the ListView
itself.public static class ListView.EditEvent<T> extends Event
Event subclass 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.| Modifier and Type | Field and Description |
|---|---|
static EventType<?> |
ANY
Common supertype for all edit event types.
|
consumed, eventType, NULL_SOURCE_TARGET, targetsource| Constructor and Description |
|---|
EditEvent(ListView<T> source,
EventType<? extends ListView.EditEvent<T>> eventType,
T newValue,
int editIndex)
Creates a new EditEvent instance to represent an edit event.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getIndex()
Returns the index in which the edit took place.
|
T |
getNewValue()
Returns the value of the new input provided by the end user.
|
ListView<T> |
getSource()
Returns the ListView upon which the edit took place.
|
String |
toString()
Returns a string representation of this
EditEvent object. |
clone, consume, copyFor, fireEvent, getEventType, getTarget, isConsumedpublic static final EventType<?> ANY
public EditEvent(ListView<T> source, EventType<? extends ListView.EditEvent<T>> eventType, T newValue, int editIndex)
ListView.EDIT_START_EVENT,
ListView.EDIT_COMMIT_EVENT and ListView.EDIT_CANCEL_EVENT types.public ListView<T> getSource()
getSource in class EventObjectpublic int getIndex()
public T getNewValue()
public String toString()
EditEvent object.toString in class EventObjectEditEvent object.Copyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved.