IT. Expert System.

Android Reference

SimpleCursorTreeAdapter


android.widget

Class SimpleCursorTreeAdapter

    • Constructor Detail

      • SimpleCursorTreeAdapter

        public SimpleCursorTreeAdapter(Context context,
                               Cursor cursor,
                               int collapsedGroupLayout,
                               int expandedGroupLayout,
                               String[] groupFrom,
                               int[] groupTo,
                               int childLayout,
                               int lastChildLayout,
                               String[] childFrom,
                               int[] childTo)
        Constructor.
        Parameters:
        context - The context where the ExpandableListView associated with this SimpleCursorTreeAdapter is running
        cursor - The database cursor
        collapsedGroupLayout - The resource identifier of a layout file that defines the views for a collapsed group. The layout file should include at least those named views defined in groupTo.
        expandedGroupLayout - The resource identifier of a layout file that defines the views for an expanded group. The layout file should include at least those named views defined in groupTo.
        groupFrom - A list of column names that will be used to display the data for a group.
        groupTo - The group views (from the group layouts) that should display column in the "from" parameter. These should all be TextViews or ImageViews. The first N views in this list are given the values of the first N columns in the from parameter.
        childLayout - The resource identifier of a layout file that defines the views for a child (except the last). The layout file should include at least those named views defined in childTo.
        lastChildLayout - The resource identifier of a layout file that defines the views for the last child within a group. The layout file should include at least those named views defined in childTo.
        childFrom - A list of column names that will be used to display the data for a child.
        childTo - The child views (from the child layouts) that should display column in the "from" parameter. These should all be TextViews or ImageViews. The first N views in this list are given the values of the first N columns in the from parameter.
      • SimpleCursorTreeAdapter

        public SimpleCursorTreeAdapter(Context context,
                               Cursor cursor,
                               int collapsedGroupLayout,
                               int expandedGroupLayout,
                               String[] groupFrom,
                               int[] groupTo,
                               int childLayout,
                               String[] childFrom,
                               int[] childTo)
        Constructor.
        Parameters:
        context - The context where the ExpandableListView associated with this SimpleCursorTreeAdapter is running
        cursor - The database cursor
        collapsedGroupLayout - The resource identifier of a layout file that defines the views for a collapsed group. The layout file should include at least those named views defined in groupTo.
        expandedGroupLayout - The resource identifier of a layout file that defines the views for an expanded group. The layout file should include at least those named views defined in groupTo.
        groupFrom - A list of column names that will be used to display the data for a group.
        groupTo - The group views (from the group layouts) that should display column in the "from" parameter. These should all be TextViews or ImageViews. The first N views in this list are given the values of the first N columns in the from parameter.
        childLayout - The resource identifier of a layout file that defines the views for a child. The layout file should include at least those named views defined in childTo.
        childFrom - A list of column names that will be used to display the data for a child.
        childTo - The child views (from the child layouts) that should display column in the "from" parameter. These should all be TextViews or ImageViews. The first N views in this list are given the values of the first N columns in the from parameter.
      • SimpleCursorTreeAdapter

        public SimpleCursorTreeAdapter(Context context,
                               Cursor cursor,
                               int groupLayout,
                               String[] groupFrom,
                               int[] groupTo,
                               int childLayout,
                               String[] childFrom,
                               int[] childTo)
        Constructor.
        Parameters:
        context - The context where the ExpandableListView associated with this SimpleCursorTreeAdapter is running
        cursor - The database cursor
        groupLayout - The resource identifier of a layout file that defines the views for a group. The layout file should include at least those named views defined in groupTo.
        groupFrom - A list of column names that will be used to display the data for a group.
        groupTo - The group views (from the group layouts) that should display column in the "from" parameter. These should all be TextViews or ImageViews. The first N views in this list are given the values of the first N columns in the from parameter.
        childLayout - The resource identifier of a layout file that defines the views for a child. The layout file should include at least those named views defined in childTo.
        childFrom - A list of column names that will be used to display the data for a child.
        childTo - The child views (from the child layouts) that should display column in the "from" parameter. These should all be TextViews or ImageViews. The first N views in this list are given the values of the first N columns in the from parameter.
    • Method Detail

      • setViewBinder

        public void setViewBinder(SimpleCursorTreeAdapter.ViewBinder viewBinder)
        Sets the binder used to bind data to views.
        Parameters:
        viewBinder - the binder used to bind data to views, can be null to remove the existing binder
        See Also:
        getViewBinder()
      • bindChildView

        protected void bindChildView(View view,
                         Context context,
                         Cursor cursor,
                         boolean isLastChild)
        Description copied from class: CursorTreeAdapter
        Bind an existing view to the child data pointed to by cursor
        Specified by:
        bindChildView in class CursorTreeAdapter
        Parameters:
        view - Existing view, returned earlier by newChildView
        context - Interface to application's global information
        cursor - The cursor from which to get the data. The cursor is already moved to the correct position.
        isLastChild - Whether the child is the last child within its group.
      • bindGroupView

        protected void bindGroupView(View view,
                         Context context,
                         Cursor cursor,
                         boolean isExpanded)
        Description copied from class: CursorTreeAdapter
        Bind an existing view to the group data pointed to by cursor.
        Specified by:
        bindGroupView in class CursorTreeAdapter
        Parameters:
        view - Existing view, returned earlier by newGroupView.
        context - Interface to application's global information
        cursor - The cursor from which to get the data. The cursor is already moved to the correct position.
        isExpanded - Whether the group is expanded.
      • setViewImage

        protected void setViewImage(ImageView v,
                        String value)
        Called by bindView() to set the image for an ImageView. By default, the value will be treated as a Uri. Intended to be overridden by Adapters that need to filter strings retrieved from the database.
        Parameters:
        v - ImageView to receive an image
        value - the value retrieved from the cursor
      • setViewText

        public void setViewText(TextView v,
                       String text)
        Called by bindView() to set the text for a TextView but only if there is no existing ViewBinder or if the existing ViewBinder cannot handle binding to a TextView. Intended to be overridden by Adapters that need to filter strings retrieved from the database.
        Parameters:
        v - TextView to receive text
        text - the text to be set for the TextView


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: 139 / 158660847. Delta: 0.03122 с