|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.esri.adf.web.ags.data.edit.EditAction
com.esri.adf.web.ags.data.edit.action.UpdateAttribute
public class UpdateAttribute
Updates the given attribute.
while ((feature = c.nextFeature()) != null) { atts1 = EditUtil.getAttributes(layer.getValue(), feature); for (Attribute att : atts1.values()) { // only update dirty ones. if (att.isDirty()) { UpdateAttribute updateAttribute = new UpdateAttribute(feature, att); workspace.perform(context, updateAttribute); } } }The feature may fire the following events:
Field Summary |
---|
Fields inherited from class com.esri.adf.web.ags.data.edit.EditAction |
---|
eventListeners |
Constructor Summary | |
---|---|
UpdateAttribute(com.esri.arcgis.geodatabase.IFeature feature,
Attribute attribute)
Instantiates an object of UpdateAttribute. |
Method Summary | |
---|---|
void |
action(ActionContext context)
Performs the action. |
Attribute |
getAttribute()
Gets the attribute to update. |
DateFormat |
getDateFormat()
Gets the date format for date converting. |
com.esri.arcgis.geodatabase.IFeature |
getFeature()
Gets the feature to update. |
void |
setAttribute(Attribute attribute)
Sets the attribute to update. |
void |
setDateFormat(DateFormat dateFormat)
Sets the date format for date converting. |
void |
setFeature(com.esri.arcgis.geodatabase.IFeature feature)
Sets the feature to update. |
Methods inherited from class com.esri.adf.web.ags.data.edit.EditAction |
---|
addEventListener, fireEvent, isEnabled, isSessionAware, removeEventListener, setEnabled, setSessionAware |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UpdateAttribute(com.esri.arcgis.geodatabase.IFeature feature, Attribute attribute)
feature
- the feature to updateattribute
- the attribute to updateMethod Detail |
---|
public Attribute getAttribute()
public void setAttribute(Attribute attribute)
attribute
- The attribute to set.public com.esri.arcgis.geodatabase.IFeature getFeature()
public void setFeature(com.esri.arcgis.geodatabase.IFeature feature)
feature
- The feature to set.public DateFormat getDateFormat()
public void setDateFormat(DateFormat dateFormat)
dateFormat
- The dateFormat to set.public void action(ActionContext context) throws Exception
EditAction
action
in class EditAction
context
- the action context.
Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |