279280281282283284285
* @param y * @param type * @param button */ public void mouseClickEvent(final int x, final int y, final int type, final int button) { addEvent(new MouseClickEvent(x, y, type, button)); }
278279280281282283284
/** * @param type * @param button */ public void mouseClickEvent(final int type, final int button) { addEvent(new MouseClickEvent(this.lastKnownMousePosition.x, this.lastKnownMousePosition.y, type, button)); }
299300301302303304305
* */ public void mouseMovement(final int x, final int y) { this.lastKnownMousePosition.x = x; this.lastKnownMousePosition.y = y; addEvent(new MouseMotionEvent(x, y)); }
317318319320321322323324
* @param value * @return .S * @see java.util.Map#put(java.lang.Object, java.lang.Object) */ public String putProperty(final String key, final String value) { addEvent(new PropertyEvent(key, value)); return this.sessionProperties.put(key, value); }
326327328329330331332
/** * @param type * @param listener */ public void registerListener(final String type, final String listener) { addEvent(new RegisterListenerEvent(type, listener)); }
333334335336337338339340
/** * @param listener */ public void removeListener(final String listener) { addEvent(new RemoveListenerEvent(listener)); }
178179180181182183184185186187188
// Put initial events nextDate(date); addEvent(new InitEvent(VERSION)); nextDate(date); addEvent(new ScreenSizeEvent(screenSize)); nextDate(date); // Generate our unique session id generateUniqueSessionID();
342343344345346347348
/** * @param key * @param value */ public void setPreference(final String key, final String value) { addEvent(new SetPreferenceEvent(key, value)); }
367368369370371372373
* @param id * @param flag * @param value */ public void updateElementFlag(final String id, final String flag, final boolean value) { addEvent(new UpdateElementFlagEvent(id, flag, value)); }
358359360361362363364
/** * * @param p */ public void updateDocumentViewport(final Point p) { addEvent(new ViewportEvent(p)); }