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

Method actionPerformed

CodenameOne/src/com/codename1/ui/Sheet.java:141–157  ·  view source on GitHub ↗
(ActionEvent evt)

Source from the content-addressed store, hash-verified

139 private final Container contentPane = new Container(BoxLayout.y());
140 private final ActionListener formPointerListener = new ActionListener() {
141 @Override
142 public void actionPerformed(ActionEvent evt) {
143 Form f = getComponentForm();
144 if (f == null) {
145 return;
146 }
147 if (Display.impl.isScrollWheeling()) {
148 return;
149 }
150 Component cmp = f.getComponentAt(evt.getX(), evt.getY());
151 if (Sheet.this.contains(cmp) || Sheet.this == cmp || cmp.isOwnedBy(Sheet.this)) { //NOPMD CompareObjectsWithEquals
152 // do nothing.
153 } else {
154 evt.consume();
155 hide(DEFAULT_TRANSITION_DURATION);
156 }
157 }
158
159 };
160 private boolean swipeToDismissEnabled = true;

Callers

nothing calls this directly

Calls 15

isOwnedByMethod · 0.95
hideMethod · 0.95
currentTimeMillisMethod · 0.95
getPositionIntMethod · 0.95
setYMethod · 0.95
setXMethod · 0.95
maxMethod · 0.95
getInstanceMethod · 0.95
animateLayoutMethod · 0.95
backMethod · 0.95
getXMethod · 0.65

Tested by

no test coverage detected