Class MultiColumnListView.MultiColumnListViewEvent
- All Implemented Interfaces:
Serializable, Cloneable
- Enclosing class:
MultiColumnListView<T>
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final javafx.event.EventType<MultiColumnListView.MultiColumnListViewEvent> The common super type for all multi-column list view events.static final javafx.event.EventType<MultiColumnListView.MultiColumnListViewEvent> Event type representing the end of a drag operation.static final javafx.event.EventType<MultiColumnListView.MultiColumnListViewEvent> Event type fired when the drag validation callback rejects a drag.static final javafx.event.EventType<MultiColumnListView.MultiColumnListViewEvent> Event type fired while a valid dragged item is over a drop target.static final javafx.event.EventType<MultiColumnListView.MultiColumnListViewEvent> Event type fired when a drag operation starts.static final javafx.event.EventType<MultiColumnListView.MultiColumnListViewEvent> Event type fired when the drop validation callback rejects a drop target.static final javafx.event.EventType<MultiColumnListView.MultiColumnListViewEvent> Event type fired after an item was moved to a new column or index.Fields inherited from class javafx.event.Event
consumed, eventType, NULL_SOURCE_TARGET, targetFields inherited from class EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionMultiColumnListViewEvent(javafx.event.EventType<? extends javafx.event.Event> eventType, Object draggedItem, MultiColumnListView.ListViewColumn column, int index) Creates a new multi-column list view event. -
Method Summary
Methods inherited from class javafx.event.Event
clone, consume, copyFor, fireEvent, getEventType, getTarget, isConsumedMethods inherited from class EventObject
getSource
-
Field Details
-
ANY
The common super type for all multi-column list view events. -
ITEM_MOVED
Event type fired after an item was moved to a new column or index. -
DRAG_NOT_POSSIBLE
public static final javafx.event.EventType<MultiColumnListView.MultiColumnListViewEvent> DRAG_NOT_POSSIBLEEvent type fired when the drag validation callback rejects a drag. -
DROP_NOT_POSSIBLE
public static final javafx.event.EventType<MultiColumnListView.MultiColumnListViewEvent> DROP_NOT_POSSIBLEEvent type fired when the drop validation callback rejects a drop target. -
DRAG_OVER
Event type fired while a valid dragged item is over a drop target. -
DRAG_STARTED
public static final javafx.event.EventType<MultiColumnListView.MultiColumnListViewEvent> DRAG_STARTEDEvent type fired when a drag operation starts. -
DRAG_ENDED
Event type representing the end of a drag operation.
-
-
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 typedraggedItem- the item associated with the eventcolumn- the column involved in the eventindex- the item index involved in the event
-
-
Method Details
-
getDraggedItem
-
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
- Overrides:
toStringin classEventObject
-