()
| 149 | |
| 150 | /// {@inheritDoc} |
| 151 | @Override |
| 152 | public boolean animate() { |
| 153 | Form parent = getComponentForm(); |
| 154 | if (parent == null || !parent.isVisible()) { |
| 155 | return false; |
| 156 | } |
| 157 | long t = System.currentTimeMillis(); |
| 158 | if (t - elapsed > getUpdateDuration() * 1000L) { |
| 159 | // we need to update the ad |
| 160 | elapsed = t; |
| 161 | requestAd(); |
| 162 | } |
| 163 | return super.animate(); |
| 164 | } |
| 165 | |
| 166 | /// {@inheritDoc} |
| 167 | @Override |
nothing calls this directly
no test coverage detected