Package org.wicketstuff.openlayers.api
Class Overlay
- java.lang.Object
-
- org.wicketstuff.openlayers.api.Overlay
-
- All Implemented Interfaces:
Serializable,IClusterable,IJavascriptComponent
- Direct Known Subclasses:
Marker
public abstract class Overlay extends Object implements IJavascriptComponent
Represents an Openlayers API's // legacy to be removed- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Overlay()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description OverlayaddBehavior(OverlayListenerBehavior behavior)OverlayclearBehaviors()List<OverlayListenerBehavior>getBehaviors()StringgetId()Note: currently the naming of a component is related to the concrete class i.e. a WMS layer would be 'wms' + getId() like: 'wms123456'.StringgetJSadd(IOpenLayersMap map)protected abstract StringgetJSconstructor()StringgetJSremove(IOpenLayersMap map)JavaScriptResourceReference[]getJSResourceReferences()In some cases a javascript component will provide its own javascript resource.StringgetOverlayJSVar()OverlayremoveBehavior(OverlayListenerBehavior behavior)
-
-
-
Method Detail
-
addBehavior
public Overlay addBehavior(OverlayListenerBehavior behavior)
-
removeBehavior
public Overlay removeBehavior(OverlayListenerBehavior behavior)
-
clearBehaviors
public Overlay clearBehaviors()
-
getBehaviors
public List<OverlayListenerBehavior> getBehaviors()
-
getOverlayJSVar
public String getOverlayJSVar()
-
getJSadd
public String getJSadd(IOpenLayersMap map)
- Specified by:
getJSaddin interfaceIJavascriptComponent- Returns:
- the rendered javascript to add this component to the map
-
getJSremove
public String getJSremove(IOpenLayersMap map)
- Specified by:
getJSremovein interfaceIJavascriptComponent- Returns:
- the rendered javascript to remove this component from the map.
-
getJSResourceReferences
public JavaScriptResourceReference[] getJSResourceReferences()
Description copied from interface:IJavascriptComponentIn some cases a javascript component will provide its own javascript resource. This is used by the map to add in the references.- Specified by:
getJSResourceReferencesin interfaceIJavascriptComponent- Returns:
-
getId
public String getId()
Description copied from interface:IJavascriptComponentNote: currently the naming of a component is related to the concrete class i.e. a WMS layer would be 'wms' + getId() like: 'wms123456'. The id returned here is the number part not the layer identifier part.- Specified by:
getIdin interfaceIJavascriptComponent- Returns:
- the unique id for this component. Used for naming purposes.
-
getJSconstructor
protected abstract String getJSconstructor()
-
-