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

Method checkAnimation

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

Source from the content-addressed store, hash-verified

523 }
524
525 @Override
526 void checkAnimation() {
527 super.checkAnimation();
528 if ((pressedIcon != null && pressedIcon.isAnimation()) ||
529 (rolloverIcon != null && rolloverIcon.isAnimation()) ||
530 (disabledIcon != null && disabledIcon.isAnimation())) {
531 Form parent = getComponentForm();
532 if (parent != null) {
533 // animations are always running so the internal animation isn't
534 // good enough. We never want to stop this sort of animation
535 parent.registerAnimated(this);
536 }
537 }
538 }
539
540 /// Adds a listener to be notified when the button state changes.
541 ///

Callers 3

setPressedIconMethod · 0.95
setDisabledIconMethod · 0.95
setRolloverIconMethod · 0.95

Calls 3

registerAnimatedMethod · 0.95
isAnimationMethod · 0.45
getComponentFormMethod · 0.45

Tested by

no test coverage detected