public interface EventFactory
A factory used for creating an ActionEvent from an action context. When view triggers
an action, it will look up the action’s view factory via ActionNode#getEventFactory() . If the view descriptor
includes a EventFactoryNode, then it will use the factory specified in that node. Otherwise
it will use the default event factory that it obtains from UI.getDefaultEventFactory(), which, by default
is an instance of DefaultEventFactory.
You can change the default event factory using UI.setDefaultEventFactory(com.codename1.rad.events.EventFactory)
ActionNode#getEventFactory(),
UI.getDefaultEventFactory(),
UI.setDefaultEventFactory(com.codename1.rad.events.EventFactory)| Modifier and Type | Method and Description |
|---|---|
ActionEvent |
createEvent(EventContext context) |
ActionEvent createEvent(EventContext context)
Copyright © 2022. All Rights Reserved.