Class NodeEventDispatcher
java.lang.Object
dev.prozilla.pine.common.event.EventDispatcher<NodeEventType,Node,NodeEvent>
dev.prozilla.pine.core.component.ui.NodeEventDispatcher
- All Implemented Interfaces:
EventDispatcherContext<NodeEventType,
,Node, NodeEvent> Destructible
-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.prozilla.pine.common.event.EventDispatcherContext
EventDispatcherContext.EphemeralEventListener<EventType extends Enum<EventType>,
E extends Event<EventType, ?>> -
Field Summary
Fields inherited from class dev.prozilla.pine.common.event.EventDispatcher
logger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected NodeEvent
createEvent
(NodeEventType type, Node target) Creates an event of a given type with a given target.Methods inherited from class dev.prozilla.pine.common.event.EventDispatcher
addListener, destroy, getLogger, invoke, invoke, propagate, removeListener, setLogger, shouldInvoke, shouldPropagate
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface dev.prozilla.pine.common.event.EventDispatcherContext
addListener, addTargetedListener, off, on, once
-
Constructor Details
-
NodeEventDispatcher
public NodeEventDispatcher()
-
-
Method Details
-
createEvent
Description copied from class:EventDispatcher
Creates an event of a given type with a given target.- Specified by:
createEvent
in classEventDispatcher<NodeEventType,
Node, NodeEvent> - Parameters:
type
- The type of event to createtarget
- The target of the event- Returns:
- The new event
-