public class NiceRefreshHandler extends ImmediateRefreshHandler
Constructor and Description |
---|
NiceRefreshHandler(int maxDelay)
Creates a new refresh handler that will immediately refresh if the refresh delay is no
longer than maxDelay.
|
Modifier and Type | Method and Description |
---|---|
void |
handleRefresh(Page page,
URL url,
int requestedWait)
Refreshes the specified page using the specified URL immediately if the requestedWait
not larget that the maxDelay.
|
public NiceRefreshHandler(int maxDelay)
maxDelay
- the maximum refreshValue (in seconds) that should cause a refreshpublic void handleRefresh(Page page, URL url, int requestedWait) throws IOException
handleRefresh
in interface RefreshHandler
handleRefresh
in class ImmediateRefreshHandler
page
- the page that is going to be refreshedurl
- the URL where the new page will be loadedrequestedWait
- the number of seconds to wait before reloading the pageIOException
- if the refresh failsCopyright © 2002–2016 Gargoyle Software Inc.. All rights reserved.