Skip to content

Latest commit

 

History

History
 
 

listdecorators

ListDecorators

========================================================================
Sample Description.

In this example we'll learn how to extend the DataModelDecorator or the DataQueryDecorator. By extending these decorators it allows as to insert new data or to modify existing data to enrichthe ListView appearance. This can also be useful when we want to reinterpret the data before it is used by ListView.

You will learn how to:
- Extend the DataModelDecorator in order to change the appearance of
  items in the ListView based on some criteria.
- Extend the DataQueryDecorator to group items based on the same header title.
- Use both DataModelDecorator and DataQueryDecorator in combination with one another.

========================================================================
Requirements:

BlackBerry 10.2 Native SDK

========================================================================
Running the example:

1. Clone the Sample repository.
2. Launch BlackBerry 10.2 Native SDK, and from the File menu, select Import.
3. Expand General, and select Existing Projects into Workspace. Click Next.
4. Browse to the location of your sample directory, and then click OK.
5. The sample project should display in the Projects section. 
   Click Finish to import the project into your workspace.
6. In the Project Explorer pane, Right-click the project (for example hellocascades)
   and select Build Project.
7. In the Project Explorer pane, Right-click the project (for example hellocascades)
   and select Run As > BlackBerry C/C++ Application.
8. The application will now install and launch on your device if not you might
   have to set up your environment:
   http://developer.blackberry.com/cascades/documentation/getting_started/setting_up.html