Lines Matching refs:position
43 /** Mapping of row ID to cursor position */
64 * moved to the correct position.
67 public abstract Fragment getItem(Context context, Cursor cursor, int position);
72 public Fragment getItem(int position) {
73 if (mCursor != null && moveCursorTo(position)) {
74 return getItem(mContext, mCursor, position);
89 public Object instantiateItem(View container, int position) {
95 if (moveCursorTo(position)) {
102 final Object obj = super.instantiateItem(container, position);
110 public void destroyItem(View container, int position, Object object) {
113 super.destroyItem(container, position, object);
123 final int position = mItemPosition.get(rowId, POSITION_NONE);
124 return position;
142 * Returns the data item associated with the specified position in the data set.
144 public Object getDataItem(int position) {
145 if (mCursor != null && moveCursorTo(position)) {
153 * Returns the row id associated with the specified position in the list.
155 public long getItemId(int position) {
156 if (mCursor != null && moveCursorTo(position)) {
216 * Moves the cursor to the given position
218 * @return {@code true} if the cursor's position was set. Otherwise, {@code false}.
220 private boolean moveCursorTo(int position) {
222 return mCursor.moveToPosition(position);
240 * row id to cursor position.
253 final int position = mCursor.getPosition();
255 itemPosition.append(rowId, position);