Spec-Zone .ru
спецификации, руководства, описания, API
|
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.Constructor and Description |
---|
ListView.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.
|
java.lang.String |
toString()
Returns a string representation of this
EditEvent object. |
clone, consume, copyFor, fireEvent, getEventType, getTarget, isConsumed
public ListView.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 java.util.EventObject
public int getIndex()
public T getNewValue()
public java.lang.String toString()
EditEvent
object.toString
in class java.util.EventObject
EditEvent
object.Copyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved. Use is subject to