|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectes.udc.cartolab.gvsig.navtable.ToggleEditing
public class ToggleEditing
Class for start, stop or toggle the editing on a vector layer. Based on the StartingEditing Extension of gvSIG
Constructor Summary | |
---|---|
ToggleEditing()
|
Method Summary | |
---|---|
void |
modifyValue(com.iver.cit.gvsig.fmap.layers.FLyrVect layer,
int rowIdx,
int attrIdx,
java.lang.Object newValue)
Deprecated. It'll be replaced by modifyValue2 |
void |
modifyValue2(com.iver.cit.gvsig.fmap.layers.FLyrVect layer,
int rowPos,
int colPos,
java.lang.String newValue)
Modidify a single value of a register. |
void |
modifyValue2(com.iver.cit.gvsig.fmap.layers.FLyrVect layer,
int rowPos,
int colPos,
com.hardcode.gdbms.engine.values.Value newValue)
Modidify a single value of a register. |
void |
startEditing(com.iver.cit.gvsig.fmap.layers.FLayer layer)
|
void |
startEditing(java.lang.String layerName)
Checks the layers from the TOC and get the layer to be edited with its name. |
void |
stopEditing(com.iver.cit.gvsig.fmap.layers.FLayer layer,
boolean cancel)
|
void |
stopEditing(java.lang.String layerName,
boolean cancel)
|
boolean |
toggle(com.iver.cit.gvsig.fmap.layers.FLayer layer)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ToggleEditing()
Method Detail |
---|
public boolean toggle(com.iver.cit.gvsig.fmap.layers.FLayer layer)
public void startEditing(com.iver.cit.gvsig.fmap.layers.FLayer layer)
layer
- The vectorial layer to be edited.public void startEditing(java.lang.String layerName)
layerName
- The name of the layer to be edited.public void stopEditing(com.iver.cit.gvsig.fmap.layers.FLayer layer, boolean cancel)
layer
- The layer wich edition will be stoped.cancel
- false if we want to save the layer, true if we don't.public void stopEditing(java.lang.String layerName, boolean cancel)
layer
- The name of the layer wich edition will be stoped.cancel
- false if we want to save the layer, true if we don't.public void modifyValue(com.iver.cit.gvsig.fmap.layers.FLyrVect layer, int rowIdx, int attrIdx, java.lang.Object newValue)
layer
- the layer that contains the feature to be changed.rowIdx
- the data row to be changed.attrIdx
- the attribute to be changed.newValue
- the value to be stored on the table.public void modifyValue2(com.iver.cit.gvsig.fmap.layers.FLyrVect layer, int rowPos, int colPos, java.lang.String newValue) throws java.lang.Exception
layer
- the layer that contains the feature to be changed.rowPos
- the data row to be changed.colPos
- the data column position to be changed.newValue
- the String representation of the value to be saved.
java.lang.Exception
public void modifyValue2(com.iver.cit.gvsig.fmap.layers.FLyrVect layer, int rowPos, int colPos, com.hardcode.gdbms.engine.values.Value newValue) throws java.lang.Exception
layer
- the layer that contains the feature to be changed.rowPos
- the data row to be changed.colPos
- the data column position to be changed.newValue
- the value to be saved.
com.iver.cit.gvsig.fmap.DriverException
java.io.IOException
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |