public class ControllerEvent extends ActionEvent
A base event for all controller events. This is the fundamental building block for how information propagates up the controller hierarchy from views or child-controllers.
ActionEvent.Type
Constructor and Description |
---|
ControllerEvent()
Creates a new controller event.
|
ControllerEvent(Object source)
Creates a new controller event with a specified source.
|
Modifier and Type | Method and Description |
---|---|
<T extends ControllerEvent> |
as(Class<T> type)
Returns this event as the given type - or null if it is not that type.
|
consume, getActualComponent, getCommand, getComponent, getDraggedComponent, getDropTarget, getEventType, getKeyEvent, getProgress, getSource, getX, getY, isConsumed, isLongEvent
public ControllerEvent()
Creates a new controller event.
public ControllerEvent(Object source)
Creates a new controller event with a specified source.
source
- public <T extends ControllerEvent> T as(Class<T> type)
Returns this event as the given type - or null if it is not that type.
T
- type
- The type of event to convert it to.Copyright © 2021. All Rights Reserved.