public class DefaultAutoRefreshSupport extends Object implements AutoRefreshSupport
| Constructor and Description |
|---|
DefaultAutoRefreshSupport() |
| Modifier and Type | Method and Description |
|---|---|
long |
getInterval() |
boolean |
isEnabled() |
void |
setEnabled(boolean value) |
void |
setInterval(long secondsToWait)
Sets the interval in seconds you have to wait until the next refresh is invoked.
|
boolean |
toggle()
Toggles isEnabled and returns the new value.
|
public boolean isEnabled()
isEnabled in interface AutoRefreshSupportpublic void setEnabled(boolean value)
setEnabled in interface AutoRefreshSupportpublic boolean toggle()
AutoRefreshSupporttoggle in interface AutoRefreshSupportAutoRefreshSupport.isEnabled().public void setInterval(long secondsToWait)
AutoRefreshSupportsetInterval in interface AutoRefreshSupportsecondsToWait - the delay until the next refresh is performed (in seconds).public long getInterval()
getInterval in interface AutoRefreshSupportCopyright © 2022. All rights reserved.