org.gwtopenmaps.openlayers.client.strategy
Class SaveStrategy
java.lang.Object
org.gwtopenmaps.openlayers.client.util.JSObjectWrapper
org.gwtopenmaps.openlayers.client.OpenLayersObjectWrapper
org.gwtopenmaps.openlayers.client.strategy.Strategy
org.gwtopenmaps.openlayers.client.strategy.SaveStrategy
public class SaveStrategy
- extends Strategy
- Author:
- Maciej Jezierski - Pinocchio
Method Summary |
boolean |
activate()
|
boolean |
deactivate()
|
void |
save()
Tell the layer protocol to commit unsaved features. |
void |
save(JSObject array)
Tell the layer protocol which features should be saved |
void |
setAuto(boolean enable)
Feature will be saved immediately after being added to the layer and with each modification or deletion |
void |
setAuto(int interval)
Features will be saved on an interval provided by the value (in seconds) |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SaveStrategy
public SaveStrategy()
SaveStrategy
public SaveStrategy(JSObject strategy)
activate
public boolean activate()
deactivate
public boolean deactivate()
setAuto
public void setAuto(boolean enable)
- Feature will be saved immediately after being added to the layer and with each modification or deletion
- Parameters:
enable
-
setAuto
public void setAuto(int interval)
- Features will be saved on an interval provided by the value (in seconds)
- Parameters:
interval
-
save
public void save()
- Tell the layer protocol to commit unsaved features. If the layer projection differs from the map projection, features will be transformed into the layer projection before being committed
save
public void save(JSObject array)
- Tell the layer protocol which features should be saved
- Parameters:
array
- array of VectorFeatures
Copyright © 2011 sourceforge. All Rights Reserved.