| java.lang.Object org.zkoss.zkex.ui.impl.PollingServerPush
PollingServerPush | public class PollingServerPush implements ServerPush(Code) | | A server-push implementation that is based on client-polling.
author: tomyeh since: 3.0.0 |
deactivate | public void deactivate()(Code) | | |
getStartScript | protected String getStartScript()(Code) | | Returns the JavaScript codes to enable (aka., start) the server push.
|
getStopScript | protected String getStopScript()(Code) | | Returns the JavaScript codes to disable (aka., stop) the server push.
|
onPiggyback | public void onPiggyback()(Code) | | |
setDelay | public void setDelay(int min, int max, int factor)(Code) | | Sets the delay between each polling request.
Default: use the preference called
PollingServerPush.delay.min
PollingServerPush.delay.max ,
and PollingServerPush.delay.factor .
If not defined, min is 1100, max is 10000, and factor is 5.
|
|
|