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.
|
<T extends ControllerEvent> |
as(Class<T> type,
SuccessCallback<T> callback) |
ApplicationController |
getApplicationController() |
AppSectionController |
getAppSectionController() |
AsyncResource |
getAsyncResource() |
<T extends AsyncResource> |
getAsyncResource(Class<T> type) |
FormController |
getFormController() |
ViewController |
getViewController() |
void |
setAsyncResource(AsyncResource task) |
consume, getActualComponent, getCommand, getComponent, getDraggedComponent, getDropTarget, getEventType, getKeyEvent, getProgress, getSource, getX, getY, isConsumed, isLongEvent, isPointerPressedDuringDrag, setPointerPressedDuringDrag
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.public <T extends ControllerEvent> boolean as(Class<T> type, SuccessCallback<T> callback)
public <T extends AsyncResource> T getAsyncResource(Class<T> type)
public void setAsyncResource(AsyncResource task)
public AsyncResource getAsyncResource()
public ViewController getViewController()
public FormController getFormController()
public AppSectionController getAppSectionController()
public ApplicationController getApplicationController()
Copyright © 2022. All Rights Reserved.