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 AutoRefreshSupport
public void setEnabled(boolean value)
setEnabled
in interface AutoRefreshSupport
public boolean toggle()
AutoRefreshSupport
toggle
in interface AutoRefreshSupport
AutoRefreshSupport.isEnabled()
.public void setInterval(long secondsToWait)
AutoRefreshSupport
setInterval
in interface AutoRefreshSupport
secondsToWait
- the delay until the next refresh is performed (in seconds).public long getInterval()
getInterval
in interface AutoRefreshSupport
Copyright © 2021. All rights reserved.