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

Method pressed

CodenameOne/src/com/codename1/ui/Button.java:711–719  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

709
710 /// Invoked to change the state of the button to the pressed state
711 public void pressed() {
712 if (!Display.impl.isScrollWheeling()) {
713 if (state != STATE_PRESSED) {
714 state = STATE_PRESSED;
715 fireStateChange();
716 }
717 repaint();
718 }
719 }
720
721 /// Invoked to change the state of the button to the released state
722 public void released() {

Callers 15

keyPressedMethod · 0.95
fireClickedMethod · 0.95
pointerPressedMethod · 0.95
clickButtonByLabelMethod · 0.95
clickButtonByNameMethod · 0.95
clickButtonByPathMethod · 0.95
clickPopupButtonMethod · 0.95
testBorderLayoutMethod · 0.95
testToastBarSampleMethod · 0.95

Calls 3

fireStateChangeMethod · 0.95
repaintMethod · 0.65
isScrollWheelingMethod · 0.45

Tested by 15

clickButtonByLabelMethod · 0.76
clickButtonByNameMethod · 0.76
clickButtonByPathMethod · 0.76
clickPopupButtonMethod · 0.76
testBorderLayoutMethod · 0.76
testToastBarSampleMethod · 0.76