|
|||||||||
| 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. |
java.text.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(java.text.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 update| Method 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 java.text.DateFormat getDateFormat()
public void setDateFormat(java.text.DateFormat dateFormat)
dateFormat - The dateFormat to set.
public void action(ActionContext context)
throws java.lang.Exception
EditAction
action in class EditActioncontext - the action context.
java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||