/** * Add an additional name/value pair to be included in the GET paramter * list. The added name will be the LowLevelEventId of the LowLevelEventListener. * * @param value the value of the parameter * @return a reference to <code>this</code> to simplify 'call chaining' */ public RequestURL addParameter(LowLevelEventListener comp, String value) { addParameter(comp.getLowLevelEventId(), value); return this; }
@Override public PortletRequestURL addParameter(LowLevelEventListener comp, String value) { addParameter(comp.getLowLevelEventId(), value); return this; }
public void unregister(LowLevelEventListener gl) { if (gl != null) { final String id = gl.getLowLevelEventId(); log.debug("unregister id '" + id + "' (type: " + gl.getClass() + ')'); removeLowLevelEventListener(gl, id); } }
/** * Registers a low level event listeners (for HTTP request processing). * <p/> * The NamePrefix of the listeners id is used as HTTP requestr parameter name. . * * @param gl listeners */ public void register(LowLevelEventListener gl) { if (gl != null) { final String id = gl.getLowLevelEventId(); log.debug("register id '" + id + "' (type: " + gl.getClass() + ')'); addLowLevelEventListener(gl, id); } }
/** * Returns the according event ID for the given component. */ public static String event(SComponent component) { if (component instanceof SClickable) return ((SClickable)component).getEventTarget().getLowLevelEventId(); else return component.getLowLevelEventId(); }
if (log.isDebugEnabled()) { log.debug("processing event '" + name + "' by " + gl.getClass() + '(' + gl.getLowLevelEventId() + ')');