Class 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
    Enclosing class:
    ListView<T>

    public static class ListView.EditEvent<T>
    extends Event
    An 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.
    Since:
    JavaFX 2.0
    See Also:
    Serialized Form
    • Field Detail

      • ANY

        public static final EventType<?> ANY
        Common supertype for all edit event types.
        Since:
        JavaFX 8.0
    • Method Detail

      • getSource

        public ListView<T> getSource()
        Returns the ListView upon which the edit took place.
        Overrides:
        getSource in class EventObject
        Returns:
        the object on which the Event initially occurred
      • getIndex

        public int getIndex()
        Returns the index in which the edit took place.
        Returns:
        the index in which the edit took place
      • getNewValue

        public 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
      • toString

        public String toString()
        Returns a string representation of this EditEvent object.
        Overrides:
        toString in class EventObject
        Returns:
        a string representation of this EditEvent object.