List of usage examples for com.vaadin.client ApplicationConnection addHandler
public <H extends EventHandler> HandlerRegistration addHandler(GwtEvent.Type<H> type, H handler)
From source file:com.wcs.vaadin.userinactivity.client.UserInactivityConnector.java
License:Apache License
@Override protected void extend(ServerConnector target) { ApplicationConnection connection = target.getConnection(); connection.addHandler(RequestStartingEvent.TYPE, this); connection.addHandler(ApplicationStoppedEvent.TYPE, this); Event.addNativePreviewHandler(this); registerRpc(UserInactivityClientRpc.class, new UserInactivityClientRpc() { @Override// w ww .j a va 2 s . com public void scheduleTimeout(int timeoutSeconds) { schedule(timeoutSeconds); } }); }