Lines Matching defs:to

10  * Unless required by applicable law or agreed to in writing, software
25 * An easy adapter to map columns from a cursor to TextViews or ImageViews
27 * you want to display the columns, and the XML file that defines the appearance
34 * returned value is false and the view to bind is a TextView,
36 * is false and the view to bind is an ImageView,
42 /** The name of the columns that contain the data to display for a group. */
45 /** The indices of columns that contain data to display for a group. */
53 /** The name of the columns that contain the data to display for a child. */
56 /** The indices of columns that contain data to display for a child. */
82 * @param groupFrom A list of column names that will be used to display the
95 * @param childFrom A list of column names that will be used to display the
123 * @param groupFrom A list of column names that will be used to display the
132 * @param childFrom A list of column names that will be used to display the
156 * @param groupFrom A list of column names that will be used to display the
165 * @param childFrom A list of column names that will be used to display the
190 * Returns the {@link ViewBinder} used to bind data to views.
201 * Sets the binder used to bind data to views.
203 * @param viewBinder the binder used to bind data to views, can be null to
212 private void bindView(View view, Context context, Cursor cursor, int[] from, int[] to) {
215 for (int i = 0; i < to.length; i++) {
216 View v = view.findViewById(to[i]);
234 " only to TextView and ImageView!");
268 * Called by bindView() to set the image for an ImageView. By default, the
269 * value will be treated as a Uri. Intended to be overridden by Adapters
270 * that need to filter strings retrieved from the database.
272 * @param v ImageView to receive an image
284 * Called by bindView() to set the text for a TextView but only if
286 * handle binding to a TextView.
288 * Intended to be overridden by Adapters that need to filter strings
291 * @param v TextView to receive text
292 * @param text the text to be set for the TextView
300 * to bind values from the Cursor to views.
302 * You should use this class to bind values from the Cursor to views
303 * that are not directly supported by SimpleCursorTreeAdapter or to
312 * Binds the Cursor column defined by the specified index to the specified view.
315 * If this method returns false, SimpleCursorTreeAdapter will attempts to handle
318 * @param view the view to bind the data to
319 * @param cursor the cursor to get the data from
322 * @return true if the data was bound to the view, false otherwise