org.wicketstuff.openlayers.api
Interface IJavascriptComponent
- All Superinterfaces:
- org.apache.wicket.IClusterable, java.io.Serializable
- All Known Implementing Classes:
- AbstractControl, Control, GetFeature, Marker, Overlay, SelectFeatureControl, WMSGetFeatureInfo
public interface IJavascriptComponent
- extends org.apache.wicket.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
|
Method Summary |
java.lang.String |
getId()
Note: currently the naming of a component is related to the concrete class i.e. |
java.lang.String |
getJSadd(IOpenLayersMap map)
|
java.lang.String |
getJSremove(IOpenLayersMap map)
|
org.apache.wicket.markup.html.resources.JavascriptResourceReference[] |
getJSResourceReferences()
In some cases a javascript component will provide its own javascript resource. |
getJSremove
java.lang.String getJSremove(IOpenLayersMap map)
- Parameters:
map -
- Returns:
- the rendered javascript to remove this component from the map.
getJSadd
java.lang.String getJSadd(IOpenLayersMap map)
- Parameters:
map -
- Returns:
- the rendered javascript to add this component to the map
getId
java.lang.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
org.apache.wicket.markup.html.resources.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:
Copyright © 2008-2010. All Rights Reserved.