Lines Matching defs:from

25  * An easy adapter to map columns from a cursor to TextViews or ImageViews
51 * This field should be made private, so it is hidden from the SDK.
57 * This field should be made private, so it is hidden from the SDK.
77 public SimpleCursorAdapter(Context context, int layout, Cursor c, String[] from, int[] to) {
80 mOriginalFrom = from;
81 findColumns(c, from);
93 * @param from A list of column names representing the data to bind to the UI. Can be null
95 * @param to The views that should display column in the "from" parameter.
97 * are given the values of the first N columns in the from
102 public SimpleCursorAdapter(Context context, int layout, Cursor c, String[] from,
106 mOriginalFrom = from;
107 findColumns(c, from);
113 * "from" parameter.
138 final int[] from = mFrom;
146 bound = binder.setViewValue(v, cursor, from[i]);
150 String text = cursor.getString(from[i]);
203 * retrieved from the database.
206 * @param value the value retrieved from the cursor
222 * retrieved from the database.
319 * Create a map from an array of strings to an array of column-id integers in cursor c.
322 * @param c the cursor to find the columns from
323 * @param from the Strings naming the columns of interest
325 private void findColumns(Cursor c, String[] from) {
328 int count = from.length;
333 mFrom[i] = c.getColumnIndexOrThrow(from[i]);
353 * @param from A list of column names representing the data to bind to the UI. Can be null
355 * @param to The views that should display column in the "from" parameter.
357 * are given the values of the first N columns in the from
360 public void changeCursorAndColumns(Cursor c, String[] from, int[] to) {
361 mOriginalFrom = from;
374 * You should use this class to bind values from the Cursor to views
392 * @param cursor the cursor to get the data from