[Arakhnę-Dev] [432] * The labels of the properties are read from the android strings.

[ Thread Index | Date Index | More arakhne.org/dev Archives ]


Revision: 432
Author:   galland
Date:     2013-04-27 15:00:25 +0200 (Sat, 27 Apr 2013)
Log Message:
-----------
* The labels of the properties are read from the android strings.

Modified Paths:
--------------
    trunk/ui/ui-android/src/main/java/org/arakhne/afc/ui/android/property/TablePropertyEditorView.java

Modified: trunk/ui/ui-android/src/main/java/org/arakhne/afc/ui/android/property/TablePropertyEditorView.java
===================================================================
--- trunk/ui/ui-android/src/main/java/org/arakhne/afc/ui/android/property/TablePropertyEditorView.java	2013-04-27 12:59:58 UTC (rev 431)
+++ trunk/ui/ui-android/src/main/java/org/arakhne/afc/ui/android/property/TablePropertyEditorView.java	2013-04-27 13:00:25 UTC (rev 432)
@@ -117,13 +117,33 @@
 	private TableLayout tableLayout;
 	private final Map<String,FieldType> fieldTypes = new TreeMap<String,FieldType>();
 
-	/**
+	/** Create a view to edit properties with only the android
+	 * application package and this ApkLib package in the list
+	 * of package names.
+	 * 
 	 * @param context
 	 */
 	protected TablePropertyEditorView(Context context) {
 		super(context);
 	}
 
+	/** Create a view to edit properties with a list of package names.
+	 * <p>
+	 * The list of package names is used to retreive the labels of the
+	 * properties in the Android resources.
+	 * <p>
+	 * The application package is automatically added at the first position
+	 * of the given list of package names. The package of this apklib
+	 * is added at the end of the list.
+	 * 
+	 * @param context
+	 * @param packageNames is the list of the package names from which 
+	 * the label resources may be retreived.
+	 */
+	protected TablePropertyEditorView(Context context, List<String> packageNames) {
+		super(context, packageNames);
+	}
+
 	@Override
 	protected void onResetContentView() {
 		if (this.tableLayout!=null) {


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/