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

Method setPressedCmp

CodenameOne/src/com/codename1/ui/Form.java:3355–3364  ·  view source on GitHub ↗
(Component cmp)

Source from the content-addressed store, hash-verified

3353 }
3354
3355 private void setPressedCmp(Component cmp) {
3356 cmp = LeadUtil.leadParentImpl(cmp);
3357 pressedCmp = cmp;
3358 if (cmp == null) {
3359 pressedCmpAbsBounds.setBounds(0, 0, 0, 0);
3360 } else {
3361 pressedCmpAbsBounds.setBounds(cmp.getAbsoluteX(), cmp.getAbsoluteY(), cmp.getWidth(), cmp.getHeight());
3362 }
3363
3364 }
3365
3366 /// Gets the handle for the current pointer press event. A new object
3367 /// is generated for each pointer press.

Callers 2

pointerPressedMethod · 0.95
pointerReleasedMethod · 0.95

Calls 6

leadParentImplMethod · 0.95
setBoundsMethod · 0.65
getWidthMethod · 0.65
getHeightMethod · 0.65
getAbsoluteXMethod · 0.45
getAbsoluteYMethod · 0.45

Tested by

no test coverage detected