|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.gwtopenmaps.openlayers.client.util.JSObjectWrapper org.gwtopenmaps.openlayers.client.OpenLayersObjectWrapper org.gwtopenmaps.openlayers.client.OpenLayersEObjectWrapper org.gwtopenmaps.openlayers.client.control.Control org.gwtopenmaps.openlayers.client.control.SelectFeature
public class SelectFeature
When activated, selects features on click by default. Use SelectFeatureOptions argument to select on hover.
Nested Class Summary | |
---|---|
static interface |
SelectFeature.ClickFeatureListener
|
static interface |
SelectFeature.SelectFeatureListener
|
static interface |
SelectFeature.UnselectFeatureListener
|
Field Summary |
---|
Fields inherited from class org.gwtopenmaps.openlayers.client.OpenLayersEObjectWrapper |
---|
eventListeners |
Constructor Summary | |
---|---|
protected |
SelectFeature(JSObject element)
|
|
SelectFeature(Vector layer)
|
|
SelectFeature(Vector layer,
SelectFeatureOptions options)
|
Method Summary | |
---|---|
void |
addBeforeFeatureHighlightedListener(BeforeFeatureHighlightedListener beforeFeatureHighlightedListener)
Adds a listener to be called when the event "beforeFeatureHighlighted" occurs on a Vector Feature. |
void |
addFeatureHighlightedListener(FeatureHighlightedListener featureHighlightedListener)
Adds a listener to be called when the event "beforeFeatureHighlighted" occurs on a Vector Feature |
void |
addFeatureUnhighlightedListener(FeatureUnhighlightedListener featureUnhighlightedListener)
Adds a listener to be called when the event "beforeFeatureHighlighted" occurs on a Vector Feature |
void |
setClickOut(boolean clickout)
Unselect a feature by clicking outside it. |
void |
setHover(boolean hover)
Select a feature when hovering over it with the mouse (mouse in) and deselect it on mouse out. |
void |
setMultiple(boolean multiple)
Hold down shift or ctrl and click to select multiple features. |
void |
setMultipleKey(String keyName)
|
void |
setToggle(boolean toggle)
Select and deselect a feature by clicking on it with the mouse. |
void |
setToggleKey(String keyName)
|
Methods inherited from class org.gwtopenmaps.openlayers.client.control.Control |
---|
activate, addControlActivateListener, addControlDeactivateListener, deactivate, disable, enable, getControlId, getLayer, getMap, getZIndex, isActive, narrowToControl, setAutoActivate |
Methods inherited from class org.gwtopenmaps.openlayers.client.OpenLayersEObjectWrapper |
---|
getListeners, narrowToOpenLayersEObjectWrapper, removeListener |
Methods inherited from class org.gwtopenmaps.openlayers.client.OpenLayersObjectWrapper |
---|
getClassName, getEvents, narrowToOpenLayersObjectWrapper |
Methods inherited from class org.gwtopenmaps.openlayers.client.util.JSObjectWrapper |
---|
getJSObject, setJSObject |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected SelectFeature(JSObject element)
public SelectFeature(Vector layer)
layer
- public SelectFeature(Vector layer, SelectFeatureOptions options)
layer
- Method Detail |
---|
public void setHover(boolean hover)
hover
- - true to select on hoverpublic void setToggle(boolean toggle)
toggle
- - true to enabling toggling feature selectionpublic void setMultiple(boolean multiple)
multiple
- - true to enable selecting multiple featurespublic void setMultipleKey(String keyName)
public void setToggleKey(String keyName)
public void setClickOut(boolean clickout)
clickout
- - true to enable unselect on click outside feature.public void addBeforeFeatureHighlightedListener(BeforeFeatureHighlightedListener beforeFeatureHighlightedListener)
Note: This event is only generated if the hover property of the SelectFeatureOptions of this SelectFeature is set to true
listener
- The listener to addpublic void addFeatureUnhighlightedListener(FeatureUnhighlightedListener featureUnhighlightedListener)
listener
- The listener to addpublic void addFeatureHighlightedListener(FeatureHighlightedListener featureHighlightedListener)
listener
- The listener to add
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |