public abstract class ClickHandler extends AbstractDefaultAjaxBehavior
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_PROJECTION
Default projection.
|
INDICATOR| Constructor and Description |
|---|
ClickHandler()
Creates a new instance.
|
ClickHandler(String projection)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
handleClick(AjaxRequestTarget target,
LongLat longLat)
Dispatches the clicked coordinates.
|
void |
renderHead(Component component,
IHeaderResponse response) |
protected void |
respond(AjaxRequestTarget target) |
findIndicatorId, getAttributes, getCallbackFunction, getCallbackFunctionBody, getCallbackScript, getCallbackScript, onBind, onRequest, postprocessConfiguration, renderAjaxAttributes, renderAjaxAttributes, updateAjaxAttributesafterRender, bind, getCallbackUrl, getComponent, onComponentRendered, onComponentTag, onComponentTag, onUnbind, unbindbeforeRender, canCallListener, detach, getStatelessHint, isEnabled, isTemporary, onAttribute, onConfigure, onEvent, onException, onRemove, onTagclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitrendersPagepublic static final String DEFAULT_PROJECTION
public ClickHandler()
public ClickHandler(String projection)
projection - The clicked coordinate will be transformed into this projectionpublic abstract void handleClick(AjaxRequestTarget target, LongLat longLat)
target - Ajax request targetlongLat - Longitude and latitude of the clickprotected void respond(AjaxRequestTarget target)
respond in class AbstractDefaultAjaxBehaviorpublic void renderHead(Component component, IHeaderResponse response)
renderHead in interface IComponentAwareHeaderContributorrenderHead in class AbstractDefaultAjaxBehaviorCopyright © 2014–2018. All rights reserved.