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 * views you want to display the columns, and the XML file that defines
34 * returned value is false and the view to bind is a TextView,
36 * is false and the view to bind is an ImageView,
44 * to get control over the filtering process. You can refer to
50 * A list of columns containing the data to bind to the UI.
56 * A list of View ids representing the views to which the data must be bound.
77 public SimpleCursorAdapter(Context context, int layout, Cursor c, String[] from, int[] to) {
79 mTo = to;
91 * those named views defined in "to"
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.
99 * @param flags Flags used to determine the behavior of the adapter,
103 int[] to, int flags) {
105 mTo = to;
111 * Binds all of the field names passed into the "to" parameter of the
119 * returned value is false and the view to bind is a TextView,
121 * false and the view to bind is an ImageView,
139 final int[] to = mTo;
142 final View v = view.findViewById(to[i]);
169 * Returns the {@link ViewBinder} used to bind data to views.
181 * Sets the binder used to bind data to views.
183 * @param viewBinder the binder used to bind data to views, can be null to
194 * Called by bindView() to set the image for an ImageView but only if
196 * handle binding to an ImageView.
202 * Intended to be overridden by Adapters that need to filter strings
205 * @param v ImageView to receive an image
217 * Called by bindView() to set the text for a TextView but only if
219 * handle binding to a TextView.
221 * Intended to be overridden by Adapters that need to filter strings
224 * @param v TextView to receive text
225 * @param text the text to be set for the TextView
232 * Return the index of the column used to get a String representation
247 * Defines the index of the column in the Cursor used to get a String
248 * representation of that Cursor. The column is used to convert the
249 * Cursor to a String only when the current CursorToStringConverter
252 * @param stringConversionColumn a valid index in the current Cursor or -1 to use the default
265 * Returns the converter used to convert the filtering Cursor
281 * Sets the converter used to convert the filtering Cursor
284 * @param cursorToStringConverter the Cursor to String converter, or
285 * null to remove the converter
303 * @param cursor the Cursor to convert to a CharSequence
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
350 * Change the cursor and change the column-to-view mappings at the same time.
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.
360 public void changeCursorAndColumns(Cursor c, String[] from, int[] to) {
362 mTo = to;
372 * to bind values fom the Cursor to views.
374 * You should use this class to bind values from the Cursor to views
375 * that are not directly supported by SimpleCursorAdapter or to
385 * Binds the Cursor column defined by the specified index to the specified view.
388 * If this method returns false, SimpleCursorAdapter will attempts to handle
391 * @param view the view to bind the data to
392 * @param cursor the cursor to get the data from
395 * @return true if the data was bound to the view, false otherwise
402 * to define how the Cursor should be converted to a String.