()
| 1017 | |
| 1018 | /// {@inheritDoc} |
| 1019 | @Override |
| 1020 | public boolean animate() { |
| 1021 | boolean a = super.animate(); |
| 1022 | if (!isEnabled() && disabledIcon != null) { |
| 1023 | a |= disabledIcon.isAnimation() && disabledIcon.animate(); |
| 1024 | } else { |
| 1025 | switch (state) { |
| 1026 | case STATE_ROLLOVER: |
| 1027 | a |= rolloverIcon != null && rolloverIcon.isAnimation() && rolloverIcon.animate(); |
| 1028 | break; |
| 1029 | case STATE_PRESSED: |
| 1030 | a |= pressedIcon != null && pressedIcon.isAnimation() && pressedIcon.animate(); |
| 1031 | break; |
| 1032 | default: |
| 1033 | break; |
| 1034 | } |
| 1035 | } |
| 1036 | return a; |
| 1037 | } |
| 1038 | |
| 1039 | /// Places the check box or radio button on the opposite side at the far end |
| 1040 | /// |
nothing calls this directly
no test coverage detected