Module MaterialFX

Class MFXTreeItem.TreeItemEvent<T>

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>

public static class MFXTreeItem.TreeItemEvent<T> extends Event
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: