Lines Matching defs:to

10  * Unless required by applicable law or agreed to in writing, software
28 * Used to write apps that run on platforms prior to Android 3.0. When running
30 * to switch to the framework's implementation. See the framework SDK
35 * A list of columns containing the data to bind to the UI.
41 * A list of View ids representing the views to which the data must be bound.
62 public SimpleCursorAdapter(Context context, int layout, Cursor c, String[] from, int[] to) {
64 mTo = to;
76 * those named views defined in "to"
78 * @param from A list of column names representing the data to bind to the UI. Can be null
80 * @param to The views that should display column in the "from" parameter.
84 * @param flags Flags used to determine the behavior of the adapter,
88 int[] to, int flags) {
90 mTo = to;
96 * Binds all of the field names passed into the "to" parameter of the
104 * returned value is false and the view to bind is a TextView,
106 * false and the view to bind is an ImageView,
124 final int[] to = mTo;
127 final View v = view.findViewById(to[i]);
154 * Returns the {@link ViewBinder} used to bind data to views.
166 * Sets the binder used to bind data to views.
168 * @param viewBinder the binder used to bind data to views, can be null to
179 * Called by bindView() to set the image for an ImageView but only if
181 * handle binding to an ImageView.
187 * Intended to be overridden by Adapters that need to filter strings
190 * @param v ImageView to receive an image
202 * Called by bindView() to set the text for a TextView but only if
204 * handle binding to an TextView.
206 * Intended to be overridden by Adapters that need to filter strings
209 * @param v TextView to receive text
210 * @param text the text to be set for the TextView
217 * Return the index of the column used to get a String representation
232 * Defines the index of the column in the Cursor used to get a String
233 * representation of that Cursor. The column is used to convert the
234 * Cursor to a String only when the current CursorToStringConverter
237 * @param stringConversionColumn a valid index in the current Cursor or -1 to use the default
250 * Returns the converter used to convert the filtering Cursor
266 * Sets the converter used to convert the filtering Cursor
269 * @param cursorToStringConverter the Cursor to String converter, or
270 * null to remove the converter
288 * @param cursor the Cursor to convert to a CharSequence
304 * Create a map from an array of strings to an array of column-id integers in mCursor.
333 * Change the cursor and change the column-to-view mappings at the same time.
336 * @param from A list of column names representing the data to bind to the UI. Can be null
338 * @param to The views that should display column in the "from" parameter.
343 public void changeCursorAndColumns(Cursor c, String[] from, int[] to) {
345 mTo = to;
352 * to bind values fom the Cursor to views.
354 * You should use this class to bind values from the Cursor to views
355 * that are not directly supported by SimpleCursorAdapter or to
365 * Binds the Cursor column defined by the specified index to the specified view.
368 * If this method returns false, SimpleCursorAdapter will attempts to handle
371 * @param view the view to bind the data to
372 * @param cursor the cursor to get the data from
375 * @return true if the data was bound to the view, false otherwise
382 * to define how the Cursor should be converted to a String.