FormBuilderModifyAttributesActivity

public class FormBuilderModifyAttributesActivity extends ModifyAttributesActivity

Activity to add or modify vector layer attributes

Methods

addToLayout

protected void addToLayout(IFormControl control, JSONObject element, List<Field> fields, Bundle savedState, Cursor featureCursor, LinearLayout layout)

appendData

public static void appendData(VectorLayer layer, SharedPreferences preferences, Map<String, List<String>> table, int row, IFormControl control, JSONObject element)

fillControls

protected void fillControls(LinearLayout layout, Bundle savedState)

fillTabControls

protected void fillTabControls(LinearLayout layout, Bundle savedState, JSONArray elements)

getControl

public static IFormControl getControl(Context context, JSONObject element, VectorLayer layer, long feature, GeoGeometry geometry)

getCoordinate

protected static Double getCoordinate(GeoGeometry geometry, boolean latitude)

onCreateOptionsMenu

public boolean onCreateOptionsMenu(Menu menu)

onOptionsItemSelected

public boolean onOptionsItemSelected(MenuItem item)

putFieldValue

protected Object putFieldValue(ContentValues values, Field field)

saveFeature

protected boolean saveFeature()

saveLastValue

protected void saveLastValue(Field field)

setLocationText

protected void setLocationText(Location location)