(Animation cmp)
| 2173 | /// |
| 2174 | /// - `cmp`: component that would be animated |
| 2175 | public final void registerAnimated(Animation cmp) { |
| 2176 | if (animatableComponents == null) { |
| 2177 | animatableComponents = new ArrayList<Animation>(); |
| 2178 | } |
| 2179 | if (!animatableComponents.contains(cmp)) { |
| 2180 | animatableComponents.add(cmp); |
| 2181 | } |
| 2182 | onRegisterAnimated(cmp); |
| 2183 | Display.getInstance().notifyDisplay(); |
| 2184 | } |
| 2185 | |
| 2186 | /// Callback that's invoked by registerAnimated to let subclasses keep |
| 2187 | /// track of animation registration. |
no test coverage detected