public class DefaultEventFactory extends Object implements EventFactory
The default 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)
Constructor and Description |
---|
DefaultEventFactory() |
Modifier and Type | Method and Description |
---|---|
ActionEvent |
createEvent(EventContext context) |
public ActionEvent createEvent(EventContext context)
createEvent
in interface EventFactory
Copyright © 2021. All Rights Reserved.