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, target
source
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, isConsumed
public 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 EventObject
public int getIndex()
public T getNewValue()
public String toString()
EditEvent
object.toString
in class EventObject
EditEvent
object.Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 2008, 2017, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.