Class MultiColumnListView.MultiColumnListViewEvent

java.lang.Object
java.util.EventObject
javafx.event.Event
com.dlsc.gemsfx.MultiColumnListView.MultiColumnListViewEvent
All Implemented Interfaces:
Serializable, Cloneable
Enclosing class:
MultiColumnListView<T>

public static class MultiColumnListView.MultiColumnListViewEvent extends javafx.event.Event
Represents an event specific to the MultiColumnListView component. This event is triggered during user interactions such as drag and drop activities or changes in the state of the list view.

The class provides a set of predefined event types to handle common scenarios, such as item movement, drag operations, and drop validation.

Event Types: - ANY: Represents a generic MultiColumnListViewEvent. - ITEM_MOVED: Indicates that an item has been moved to a new location. - DRAG_NOT_POSSIBLE: Signifies a rejected drag operation, see MultiColumnListView.dragPossibleCallbackProperty(). - DROP_NOT_POSSIBLE: Signifies a failed drop operation due to validation failures. - DRAG_OVER: Fired when a drag operation hovers over the target area. - DRAG_STARTED: Specifies the start of a drag operation. - DRAG_ENDED: Fired when a drag operation has completed.

This event also provides access to the dragged item and the associated column where the interaction occurs.

See Also:
  • Field Details

  • Constructor Details

    • MultiColumnListViewEvent

      public MultiColumnListViewEvent(javafx.event.EventType<? extends javafx.event.Event> eventType, Object draggedItem, MultiColumnListView.ListViewColumn column, int index)
      Creates a new multi-column list view event.
      Parameters:
      eventType - the specific event type
      draggedItem - the item associated with the event
      column - the column involved in the event
      index - the item index involved in the event
  • Method Details

    • getDraggedItem

      public Object getDraggedItem()
      Returns the item associated with the event.
      Returns:
      the event item
    • getColumn

      Returns the column involved in the event.
      Returns:
      the column involved in the event
    • getIndex

      public int getIndex()
      Returns the item index involved in the event.
      Returns:
      the item index
    • toString

      public String toString()
      Overrides:
      toString in class EventObject