MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / dispatchCommand

Method dispatchCommand

CodenameOne/src/com/codename1/ui/Form.java:2459–2464  ·  view source on GitHub ↗
(Command cmd, ActionEvent ev)

Source from the content-addressed store, hash-verified

2457 ///
2458 /// - `ev`: the event to dispatch
2459 public void dispatchCommand(Command cmd, ActionEvent ev) {
2460 cmd.actionPerformed(ev);
2461 if (!ev.isConsumed()) {
2462 actionCommandImpl(cmd, ev);
2463 }
2464 }
2465
2466 /// Invoked to allow subclasses of form to handle a command from one point
2467 /// rather than implementing many command instances

Callers 9

goBackMethod · 0.95
clickMenuItemMethod · 0.95
keyReleasedMethod · 0.45
runMethod · 0.45
actionPerformedMethod · 0.45
runMethod · 0.45
runMethod · 0.45
runMethod · 0.45

Calls 3

actionCommandImplMethod · 0.95
isConsumedMethod · 0.80
actionPerformedMethod · 0.65

Tested by 3

goBackMethod · 0.76
clickMenuItemMethod · 0.76