Mobile Development 10.11 | webMethods Mobile SuiteWeb Help | webMethods Mobile Development Help | User Interface Object Reference | Objects to Use for Content Providers or Content Adapters
 
Objects to Use for Content Providers or Content Adapters
 
ContentAdapter Properties
ContentProvider Properties
CustomDataComparator Properties
DataBinding Properties
DataTransformer Properties
DynamicDataSource Properties
EntityDataSource Properties
JsonDataExpression Properties
RESTDataProvider Properties
RESTDataSource Properties
TemplateAssignment Properties
TemplateDataBinding Properties
The following table provides descriptions of the user interface objects that you use to specify the content to display in a ListView object.
Object
Description
ContentAdapter
Specifies the content you want listed in a ListView object.
For more information about setting properties to the ContentAdapter object, see ContentAdapter Properties.
ContentProvider
Specifies the content you want listed in a ListView object.
For information about setting properties for the ContentProvider object, see ContentProvider Properties.
CustomDataComparator
Allows developers to define an order for the elements a ListView displays. Can be added as a child to a DynamicDataSource,RESTDataSource or EntityDataSource.
For more information about setting properties to the CustomDataComparator object, see CustomDataComparator Properties.
DataBinding
Defines how to bind data from the data source to an object in the user interface. A DataBinding object is the child of a Textfield, Image, Checkbox, RadioButton, Entry, SearchEntry orDateEntry object.
For information about setting properties for the DataBinding object, see DataBinding Properties.
DataTransformer
Allows you to transform a given input to a specific format required by a particular user interface element. For example, when you get the name of an icon, the data transformer will get the file name as its value and return an icon which is then used by an ImageElement. A DataTransformer object is the child of a DataBinding or TemplateDataBinding object.
For information about setting properties for the DataTransformer object, see DataTransformer Properties.
DynamicDataSource
Holds a list of elements to be bound to the user interface elements. You need to implement IListDatasource. The DynamicDataSource object can be used if the underlying data set is not in JSON format or if the underlying data consists of a custom data structure. A DynamicDatasource object is the child of the application's Datasources node.
For information about setting properties for the DynamicDataSource object, see DynamicDataSource Properties.
EntityDataSource
Holds a list of elements to be bound to the user interface elements. The data objects from this data source must be instances of generated Entity models.
For more information about setting properties to the EntityDataSource object, see EntityDataSource Properties.
FileDataProvider
A FileDataProvider can be added as child for an EntityDataSource. It acts like a service for your EntityDataSource. You can only use it for local/offline data, which is stored on your device for example. The file must be located in the projects resources/www folder (subdirectories are not allowed). You need a DataExpression to define the format the data is stored in the file and the Entity to map the data to. Currently only JsonDataExpression for Json formatted data files is supported.
This object has no properties.
Json Data Expression
A JsonDataExpression represents a path in your Json reponse document. This path is identified by the expression property. The underlying Json document will be transformed into the specified Entity.
For more information about setting properties to JsonDataExpression, see JsonDataExpression Properties.
RESTDataProvider
A RESTDataProvider can be added as child for an EntityDataSource. It acts like a service for your EntityDataSource. The given REST Method will be executed when the data source is reloaded.
For more information about setting properties to the RESTDataProvider, see RESTDataProvider Properties.
RESTDataSource
Holds a list of elements to be bound to the user interface elements. The underlying data set must conform to the JSON format, and it is retrieved using a RESTful service specified with the RestMethod property. All expressions pointing to a RESTDatasource object are relative to the underlying JSON objects. A RESTDataSource object is the child of the application's Datasources node.
For information about setting properties for the RESTDataSource object, see RESTDataSource Properties.
RowSelectionListener
Listens to trigger events for each row in a ListView object, for example, when a user selects one row. Multiple RowSelectionListener objects can be added to a ContentAdapter. A ContentProvider supports only one RowSelectionListener.
For more information about setting properties to a RowSelection Listener object, see RowSelectionListener Properties.
TemplateAssignment
The TemplateAssignment configures the template to display by the ListView object. Each ContentAdapter must provide at least one TemplateAssignment object.
For more information about setting properties to the TemplateAssignment object, see TemplateAssignment Properties.
TemplateDataBinding
Defines how to bind data from the data source to an object in the user interface. A TemplateDataBinding object is the child of a ContentProvider or TemplateAssignment object.
For more information about setting properties for the TemplateDataBinding object, see TemplateDataBinding Properties.