IT. Expert System.

Android Reference

CrossProcessCursorWrapper


android.database

Class CrossProcessCursorWrapper

    • Constructor Detail

      • CrossProcessCursorWrapper

        public CrossProcessCursorWrapper(Cursor cursor)
        Creates a cross process cursor wrapper.
        Parameters:
        cursor - The underlying cursor to wrap.
    • Method Detail

      • fillWindow

        public void fillWindow(int position,
                      CursorWindow window)
        Description copied from interface: CrossProcessCursor
        Copies cursor data into the window.

        Clears the window and fills it with data beginning at the requested row position until all of the data in the cursor is exhausted or the window runs out of space.

        The filled window uses the same row indices as the original cursor. For example, if you fill a window starting from row 5 from the cursor, you can query the contents of row 5 from the window just by asking it for row 5 because there is a direct correspondence between the row indices used by the cursor and the window.

        The current position of the cursor, as returned by Cursor.getPosition(), is not changed by this method.

        Specified by:
        fillWindow in interface CrossProcessCursor
        Parameters:
        position - The zero-based index of the first row to copy into the window.
        window - The window to fill.
      • getWindow

        public CursorWindow getWindow()
        Description copied from interface: CrossProcessCursor
        Returns a pre-filled window that contains the data within this cursor.

        In particular, the window contains the row indicated by Cursor.getPosition(). The window's contents are automatically scrolled whenever the current row moved outside the range covered by the window.

        Specified by:
        getWindow in interface CrossProcessCursor
        Returns:
        The pre-filled window, or null if none.
      • onMove

        public boolean onMove(int oldPosition,
                     int newPosition)
        Description copied from interface: CrossProcessCursor
        This function is called every time the cursor is successfully scrolled to a new position, giving the subclass a chance to update any state it may have. If it returns false the move function will also do so and the cursor will scroll to the beforeFirst position.

        This function should be called by methods such as Cursor.moveToPosition(int), so it will typically not be called from outside of the cursor class itself.

        Specified by:
        onMove in interface CrossProcessCursor
        Parameters:
        oldPosition - The position that we're moving from.
        newPosition - The position that we're moving to.
        Returns:
        True if the move is successful, false otherwise.


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 2388 / . Delta: 0.02766 с