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

Method setPressedIcon

CodenameOne/src/com/codename1/ui/Button.java:437–443  ·  view source on GitHub ↗
(Image pressedIcon)

Source from the content-addressed store, hash-verified

435 ///
436 /// - #STATE_PRESSED
437 @Override
438 public void setPressedIcon(Image pressedIcon) {
439 this.pressedIcon = pressedIcon;
440 setShouldCalcPreferredSize(true);
441 checkAnimation();
442 repaint();
443 }
444
445 /// Indicates the icon that is displayed on the button when the button is in
446 /// pressed state and is selected. This is ONLY applicable to toggle buttons

Callers 3

createOpenButtonMethod · 0.95
updateCommandMethod · 0.95
setIconMethod · 0.95

Calls 3

checkAnimationMethod · 0.95
repaintMethod · 0.65

Tested by

no test coverage detected