public abstract class GOverlay extends Object implements Serializable
Constructor and Description |
---|
GOverlay()
Construct.
|
GOverlay(String id)
Used in stateless environment as session id's are changing continuously without state.
|
Modifier and Type | Method and Description |
---|---|
GOverlay |
addFunctionListener(GEvent event,
String jsFunction)
Add a none Ajax Event.
|
GOverlay |
addListener(GEvent event,
GEventHandler handler) |
GOverlay |
clearListeners(GEvent event)
Clear listeners.
|
Map<GEvent,String> |
getFunctionListeners()
Return all registered Listeners.
|
String |
getId() |
String |
getJS() |
abstract String |
getJSconstructor()
Implement the needed JavaScript constructor for the corresponding JavaScript object.
|
String |
getJSremove() |
Map<GEvent,GEventHandler> |
getListeners()
Return all registered Listeners.
|
protected org.apache.wicket.Page |
getPage() |
GMap |
getParent() |
void |
onEvent(org.apache.wicket.ajax.AjaxRequestTarget target,
GEvent overlayEvent)
Called when an Ajax call occurs.
|
void |
setParent(GMap parent) |
protected abstract void |
updateOnAjaxCall(org.apache.wicket.ajax.AjaxRequestTarget target,
GEvent overlayEvent)
Implement to handle Ajax calls to your needs.
|
public GOverlay()
public GOverlay(String id)
public String getJS()
public String getJSremove()
public String getId()
public abstract String getJSconstructor()
public GMap getParent()
protected org.apache.wicket.Page getPage()
public void setParent(GMap parent)
public GOverlay addListener(GEvent event, GEventHandler handler)
public GOverlay addFunctionListener(GEvent event, String jsFunction)
public Map<GEvent,GEventHandler> getListeners()
public Map<GEvent,String> getFunctionListeners()
public GOverlay clearListeners(GEvent event)
event
- event to be cleared.public void onEvent(org.apache.wicket.ajax.AjaxRequestTarget target, GEvent overlayEvent)
target
- overlayEvent
- protected abstract void updateOnAjaxCall(org.apache.wicket.ajax.AjaxRequestTarget target, GEvent overlayEvent)
target
- overlayEvent
- Copyright © 2015. All rights reserved.