|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TimeBoundsProvider
A component that can provide information about a time range it cares about. Looks for TimeBoundsHandlers and adds them to itself. The TimeBoundsHandler will also look for TimeBoundsProviders and add them to itself, two-way connection, because they both have to initial communication at different times.
Method Summary | |
---|---|
void |
addTimeBoundsHandler(TimeBoundsHandler tbh)
The TimeBoundsProvider keep track of the handlers it needs to notify when the bounds or activeness changes. |
TimeBounds |
getTimeBounds()
A method called on the TimeBoundsProvider to retrieve the provider's time bounds. |
void |
handleTimeBounds(TimeBounds tb)
A method called on the TimeBoundsProvider to inform it of the overall time bounds, in case some external time bounds values are being set by another component and this provider wants to react to those bounds in some way. |
boolean |
isActive()
A query that can be made to the TimeBoundsProvider asking it if it is active, and if it's time bounds should be considered. |
void |
removeTimeBoundsHandler(TimeBoundsHandler tbh)
The TimeBoundsProvider keep track of the handlers it needs to notify when the bounds or activeness changes. |
void |
setActive(boolean active)
An accessor that switches the TimeBoundsProvider on/off. |
Method Detail |
---|
TimeBounds getTimeBounds()
void handleTimeBounds(TimeBounds tb)
boolean isActive()
void setActive(boolean active)
void addTimeBoundsHandler(TimeBoundsHandler tbh)
void removeTimeBoundsHandler(TimeBoundsHandler tbh)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |