|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wicketstuff.openlayers.api.control.AbstractControl
public class AbstractControl
| Constructor Summary | |
|---|---|
protected |
AbstractControl(java.lang.String name,
boolean externalizable)
|
| 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)
|
protected java.lang.String |
getJSadd(IOpenLayersMap map,
java.util.Map<java.lang.String,java.lang.String> parameters)
A convenience wrapper to getJSadd(IOpenLayersMap, String)
that builds the parameter string from the parameter map and then invokes the method. |
protected java.lang.String |
getJSadd(IOpenLayersMap map,
java.lang.String parameterString)
Calls map.addControl() for the generated initialization javascript using the parameterString if present. |
protected java.lang.String |
getJSadd(IOpenLayersMap map,
java.lang.String javascriptClassName,
java.util.Map<java.lang.String,java.lang.String> parameters)
|
protected java.lang.String |
getJSadd(IOpenLayersMap map,
java.lang.String javascriptClassName,
java.lang.String parameterString)
|
protected java.lang.String |
getJSinvoke(IOpenLayersMap map,
java.lang.String invocation)
A helper similiar to OpenLayersMap.getJSInvoke except instead of just getting the map context we get this control context from the root. |
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. |
java.util.List<Layer> |
getLayerList()
|
void |
registerJavascriptEvent(IOpenLayersMap map,
java.lang.String event,
org.apache.wicket.model.IModel<java.lang.String> eventHandlingJavascriptModel)
Allows javascript to be wired into events on this control. |
void |
setLayerList(java.util.List<Layer> layerList)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected AbstractControl(java.lang.String name,
boolean externalizable)
| Method Detail |
|---|
protected java.lang.String getJSadd(IOpenLayersMap map,
java.util.Map<java.lang.String,java.lang.String> parameters)
getJSadd(IOpenLayersMap, String)
that builds the parameter string from the parameter map and then invokes the method.
map - parameters -
protected java.lang.String getJSadd(IOpenLayersMap map,
java.lang.String javascriptClassName,
java.util.Map<java.lang.String,java.lang.String> parameters)
protected java.lang.String getJSadd(IOpenLayersMap map,
java.lang.String parameterString)
map - parameterString - contains comma separated list of parameters
protected java.lang.String getJSadd(IOpenLayersMap map,
java.lang.String javascriptClassName,
java.lang.String parameterString)
map - the openlayers map java binding.javascriptClassName - the name of the javascript class being invoked.parameterString - the constructor parameters if any.
public java.lang.String getJSadd(IOpenLayersMap map)
getJSadd in interface IJavascriptComponentpublic java.lang.String getJSremove(IOpenLayersMap map)
getJSremove in interface IJavascriptComponentpublic java.lang.String getId()
IJavascriptComponent
getId in interface IJavascriptComponent
public void registerJavascriptEvent(IOpenLayersMap map,
java.lang.String event,
org.apache.wicket.model.IModel<java.lang.String> eventHandlingJavascriptModel)
control.events.register("featureselected", this, function(evt) { modelValue <-- this is the content from the model. });
Note: This is not the method to use if you want to use ajax and have wicket to the event processing.
map - the map object that the control is bound to (will be bound to).event - the name of the OpenLayersEventmodel - an IModelpublic org.apache.wicket.markup.html.resources.JavascriptResourceReference[] getJSResourceReferences()
IJavascriptComponent
getJSResourceReferences in interface IJavascriptComponent
protected java.lang.String getJSinvoke(IOpenLayersMap map,
java.lang.String invocation)
map - invocation -
public void setLayerList(java.util.List<Layer> layerList)
public java.util.List<Layer> getLayerList()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||