util
Interface ConditionalRefreshing
- All Superinterfaces:
- Refreshing
- All Known Implementing Classes:
- ImageCache, JAntarcticaNight, JBaycamMosaic, JEarthNight, JFrameParameter, JNight, JTargetTable.JRefreshScrollPane
public interface ConditionalRefreshing
- extends Refreshing
This interface allows implementing methods to decide whether an update of
their state is currently needed. Additionally to Refreshing they
provide a method isRefreshNeeded() that is called without any
arguments and should return a boolean that is true, if the refresh
should commence.
|
Method Summary |
boolean |
isRefreshNeeded()
Returns a method that is called on each scheduled refresh. |
isRefreshNeeded
boolean isRefreshNeeded()
- Returns a method that is called on each scheduled refresh. It must be
a method without any argument that returns a primitivie boolean.
If the answer is false, the current refresh task is abort, i.e. the
timer task's run method returns immediately. This is intended for
Refreshing objects with high loads on update that might
skip a single refresh, if their current state is of no importance.
Examples could be components that want to redraw themselfes only
when visible.