java.lang.Object
java.util.EventObject
javafx.event.Event
io.github.palexdev.materialfx.controls.MFXTreeItem.TreeItemEvent<T>
- All Implemented Interfaces:
Serializable,Cloneable
- Enclosing class:
- MFXTreeItem<T>
Events class for the items.
Defines three new EventTypes:
- ADD_REMOVE_ITEM_EVENT: when an item is added/removed the item and all the parents up to the root should adjust their height.
- EXPAND_EVENT: communicates to the item and all the parents up to the root to expand and therefore to adjust their height. - COLLAPSE_EVENT: communicates to the item and all the parents up to the root to collapse and therefore to adjust their height.Note on constructor: when we fire an event we pass the item reference to consume the event at the proper time.
Of course these events are for internal use only so they should not be used by users.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final EventType<MFXTreeItem.TreeItemEvent<?>>static final EventType<MFXTreeItem.TreeItemEvent<?>>static final EventType<MFXTreeItem.TreeItemEvent<?>>Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionTreeItemEvent(EventType<? extends Event> eventType, AbstractMFXTreeItem<T> item, double value) -
Method Summary
Methods inherited from class javafx.event.Event
clone, consume, copyFor, fireEvent, getEventType, getTarget, isConsumedMethods inherited from class java.util.EventObject
getSource, toString
-
Field Details
-
ADD_REMOVE_ITEM_EVENT
-
EXPAND_EVENT
-
COLLAPSE_EVENT
-
-
Constructor Details
-
TreeItemEvent
public TreeItemEvent(EventType<? extends Event> eventType, AbstractMFXTreeItem<T> item, double value)
-
-
Method Details
-
getItem
-
getValue
public double getValue()
-