Package org.wicketstuff.openlayers.api
Interface IJavascriptComponent
-
- All Superinterfaces:
IClusterable,Serializable
- All Known Implementing Classes:
AbstractControl,Control,GetFeature,Marker,Overlay,SelectFeatureControl,WMSGetFeatureInfo
public interface IJavascriptComponent extends IClusterable
- Author:
- mocleiri Created as part of the Control conversion from an enumerated type to a class hierarchy. Only works for Control's right now but it might be possible to extend to other components
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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)StringgetJSremove(IOpenLayersMap map)JavaScriptResourceReference[]getJSResourceReferences()In some cases a javascript component will provide its own javascript resource.
-
-
-
Method Detail
-
getJSremove
String getJSremove(IOpenLayersMap map)
- Parameters:
map-- Returns:
- the rendered javascript to remove this component from the map.
-
getJSadd
String getJSadd(IOpenLayersMap map)
- Parameters:
map-- Returns:
- the rendered javascript to add this component to the map
-
getId
String getId()
Note: 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.- Returns:
- the unique id for this component. Used for naming purposes.
-
getJSResourceReferences
JavaScriptResourceReference[] getJSResourceReferences()
In some cases a javascript component will provide its own javascript resource. This is used by the map to add in the references.- Returns:
-
-