ActionComponents  04.05.00
Customizable UI and time-saving tools for Android development with Xamarin and Visual Studio.
ActionComponents.ACTableViewDataSource Class Reference

The ActionComponents.ACTableViewDataSource provides all data to it's parent ActionComponents.ACTableViewController via the controller's RequestData event. It maintains a collection of ActionComponents.ACTableSections each containing a collection of ActionComponents.ACTableItems. As a result, you may never need to create a custom version of this class to support your ListView maintained by the ActionComponents.ACTableViewController. More...

Inheritance diagram for ActionComponents.ACTableViewDataSource:
Collaboration diagram for ActionComponents.ACTableViewDataSource:

Public Member Functions

 ACTableViewDataSource ()
 Initializes a new instance of the ActionComponents.ACTableViewDataSource class. More...
 
 ACTableViewDataSource (Activity activity)
 Initializes a new instance of the ActionComponents.ACTableViewDataSource class. More...
 
 ACTableViewDataSource (ACTableViewController controller)
 Initializes a new instance of the ActionComponents.ACTableViewDataSource class. More...
 
 ACTableViewDataSource (Activity activity, ACTableViewController controller)
 Initializes a new instance of the ActionComponents.ACTableViewDataSource class. More...
 
virtual void LoadData ()
 Requests that this ActionComponents.ACTableViewDataSource reloads all of the data from it's source More...
 
virtual void UpdateData ()
 Call this method to update the ListView after making changes to any ActionComponents.ACTableSections or ActionComponents.ACTableItems being controller by this ActionComponents.ACTableViewDataSource More...
 
ACTableSection SectionAtIndex (ACTableIndex index)
 Returns the ActionComponents.ACTableSection being pointed to by the given ActionComponents.ACTableIndex More...
 
ACTableSection SectionAtIndex (int position)
 Returns the ActionComponents.ACTableSection being pointed to by the given position More...
 
ACTableItem ItemAtIndex (ACTableIndex index)
 Returns the ActionComponents.ACTableItem being pointed to by the given ActionComponents.ACTableIndex More...
 
ACTableItem ItemAtIndex (int position)
 Returns the ActionComponents.ACTableItem being pointed to by the given position More...
 
string StringAtIndex (ACTableIndex index)
 Returns the string value for the item pointed to by the given ActionComponents.ACTableIndex More...
 
string StringAtIndex (int position)
 Returns the string value for the item pointed to by the given ActionComponents.ACTableIndex More...
 
void RemoveItemAt (int index)
 Removes the requested ActionComponents.ACTableSection from this ActionComponents.ACTableViewDataSource's collection More...
 
void Clear ()
 Empties this ActionComponents.ACTableViewDataSource's collection of ActionComponents.ACTableSection More...
 
void AddSection (ACTableSection section)
 Adds the given ActionComponents.ACTableSection to this ActionComponents.ACTableViewDataSource More...
 
ACTableSection AddSection (string header)
 Creates a new ActionComponents.ACTableSection and adds it to this ActionComponents.ACTableViewDataSource More...
 
ACTableSection AddSection (string header, int imageID)
 Creates a new ActionComponents.ACTableSection and adds it to this ActionComponents.ACTableViewDataSource More...
 
ACTableSection AddSection (string header, string footer)
 Creates a new ActionComponents.ACTableSection and adds it to this ActionComponents.ACTableViewDataSource More...
 
ACTableSection AddSection (string header, int imageID, string footer)
 Creates a new ActionComponents.ACTableSection and adds it to this ActionComponents.ACTableViewDataSource More...
 
ACTableSection AddSection (string header, string footer, string sectionCellID)
 Creates a new ActionComponents.ACTableSection and adds it to this ActionComponents.ACTableViewDataSource More...
 
override long GetItemId (int position)
 Gets the unique ID of the item at the given position More...
 
override View GetView (int position, View convertView, ViewGroup parent)
 Gets the view. More...
 
delegate void DataSourceRequestDataDelegate (ACTableViewDataSource dataSource)
 Occurres when this ActionComponents.ACTableViewDataSource needs to be populated with data More...
 

Properties

object tag [get, set]
 Gets or sets the [OPTIONAL] object tag that can be attached to this ActionComponents.ACTableViewDataSource More...
 
Activity activity [get, set]
 Gets or sets the activity that this ActionComponents.ACTableViewDataSource is attached to More...
 
ACTableViewController controller [get]
 Gets the ActionComponents.ACTableViewController that this ActionComponents.ACTableViewDataSource is providing data for. More...
 
List< ACTableSectionsections [get]
 Gets the collection of ActionComponents.ACTableSection contained in this ActionComponents.ACTableViewDataSource More...
 
List< ACTableIndexindex [get]
 Gets the index used to translate a ListView position into an ActionComponents.ACTableViewController ActionComponents.ACTableSection and ActionComponents.ACTableItem index. More...
 
override bool IsEmpty [get]
 Gets a value indicating whether this ActionComponents.ACTableViewDataSource contains any data More...
 
override string this[int position] [get]
 Gets the text property of the ActionComponents.ACTableItem in the give ActionComponents.ACTablesection being controlled by this ActionComponents.ACTableViewDataSource More...
 
override int Count [get]
 Returns the number of ActionComponents.ACTableItem in all ActionComponents.ACTableSections contained in this ActionComponents.ACTableViewDataSource More...
 

Events

DataSourceRequestDataDelegate RequestData
 

Detailed Description

The ActionComponents.ACTableViewDataSource provides all data to it's parent ActionComponents.ACTableViewController via the controller's RequestData event. It maintains a collection of ActionComponents.ACTableSections each containing a collection of ActionComponents.ACTableItems. As a result, you may never need to create a custom version of this class to support your ListView maintained by the ActionComponents.ACTableViewController.

Available in ActionPack Business or Enterprise only.

Constructor & Destructor Documentation

ActionComponents.ACTableViewDataSource.ACTableViewDataSource ( )

Initializes a new instance of the ActionComponents.ACTableViewDataSource class.

ActionComponents.ACTableViewDataSource.ACTableViewDataSource ( Activity  activity)

Initializes a new instance of the ActionComponents.ACTableViewDataSource class.

Parameters
activityActivity.
ActionComponents.ACTableViewDataSource.ACTableViewDataSource ( ACTableViewController  controller)

Initializes a new instance of the ActionComponents.ACTableViewDataSource class.

Parameters
controllerController.
ActionComponents.ACTableViewDataSource.ACTableViewDataSource ( Activity  activity,
ACTableViewController  controller 
)

Initializes a new instance of the ActionComponents.ACTableViewDataSource class.

Parameters
controllerController.

Member Function Documentation

void ActionComponents.ACTableViewDataSource.AddSection ( ACTableSection  section)

Adds the given ActionComponents.ACTableSection to this ActionComponents.ACTableViewDataSource

Parameters
sectionSection.

Here is the caller graph for this function:

ACTableSection ActionComponents.ACTableViewDataSource.AddSection ( string  header)

Creates a new ActionComponents.ACTableSection and adds it to this ActionComponents.ACTableViewDataSource

Returns
The section.
Parameters
headerHeader.

Here is the call graph for this function:

ACTableSection ActionComponents.ACTableViewDataSource.AddSection ( string  header,
int  imageID 
)

Creates a new ActionComponents.ACTableSection and adds it to this ActionComponents.ACTableViewDataSource

Returns
The section.
Parameters
headerHeader.
imageIDImage ID.

Here is the call graph for this function:

ACTableSection ActionComponents.ACTableViewDataSource.AddSection ( string  header,
string  footer 
)

Creates a new ActionComponents.ACTableSection and adds it to this ActionComponents.ACTableViewDataSource

Returns
The section.
Parameters
headerHeader.
footerFooter.

Here is the call graph for this function:

ACTableSection ActionComponents.ACTableViewDataSource.AddSection ( string  header,
int  imageID,
string  footer 
)

Creates a new ActionComponents.ACTableSection and adds it to this ActionComponents.ACTableViewDataSource

Returns
The section.
Parameters
headerHeader.
imageIDImage ID.
footerFooter.

Here is the call graph for this function:

ACTableSection ActionComponents.ACTableViewDataSource.AddSection ( string  header,
string  footer,
string  sectionCellID 
)

Creates a new ActionComponents.ACTableSection and adds it to this ActionComponents.ACTableViewDataSource

Returns
The section.
Parameters
headerHeader.
footerFooter.
sectionCellIDSection cell I.

Here is the call graph for this function:

void ActionComponents.ACTableViewDataSource.Clear ( )
delegate void ActionComponents.ACTableViewDataSource.DataSourceRequestDataDelegate ( ACTableViewDataSource  dataSource)

Occurres when this ActionComponents.ACTableViewDataSource needs to be populated with data

Here is the caller graph for this function:

override long ActionComponents.ACTableViewDataSource.GetItemId ( int  position)

Gets the unique ID of the item at the given position

Returns
The item identifier.
Parameters
positionPosition.
override View ActionComponents.ACTableViewDataSource.GetView ( int  position,
View  convertView,
ViewGroup  parent 
)

Gets the view.

Returns
The view.
Parameters
positionPosition.
convertViewConvert view.
parentParent.

Here is the call graph for this function:

Here is the caller graph for this function:

ACTableItem ActionComponents.ACTableViewDataSource.ItemAtIndex ( ACTableIndex  index)

Returns the ActionComponents.ACTableItem being pointed to by the given ActionComponents.ACTableIndex

Returns
The at index.
Parameters
indexIndex.

Here is the caller graph for this function:

ACTableItem ActionComponents.ACTableViewDataSource.ItemAtIndex ( int  position)

Returns the ActionComponents.ACTableItem being pointed to by the given position

Returns
The at index.
Parameters
positionPosition.

Here is the call graph for this function:

virtual void ActionComponents.ACTableViewDataSource.LoadData ( )
virtual

Requests that this ActionComponents.ACTableViewDataSource reloads all of the data from it's source

Here is the call graph for this function:

Here is the caller graph for this function:

void ActionComponents.ACTableViewDataSource.RemoveItemAt ( int  index)

Removes the requested ActionComponents.ACTableSection from this ActionComponents.ACTableViewDataSource's collection

Parameters
indexIndex.
ACTableSection ActionComponents.ACTableViewDataSource.SectionAtIndex ( ACTableIndex  index)

Returns the ActionComponents.ACTableSection being pointed to by the given ActionComponents.ACTableIndex

Returns
The at index.
Parameters
indexIndex.

Here is the caller graph for this function:

ACTableSection ActionComponents.ACTableViewDataSource.SectionAtIndex ( int  position)

Returns the ActionComponents.ACTableSection being pointed to by the given position

Returns
The at index.
Parameters
positionPosition.

Here is the call graph for this function:

string ActionComponents.ACTableViewDataSource.StringAtIndex ( ACTableIndex  index)

Returns the string value for the item pointed to by the given ActionComponents.ACTableIndex

Returns
The atindex.
Parameters
indexIndex.

Here is the caller graph for this function:

string ActionComponents.ACTableViewDataSource.StringAtIndex ( int  position)

Returns the string value for the item pointed to by the given ActionComponents.ACTableIndex

Returns
The at index.
Parameters
positionPosition.

Here is the call graph for this function:

virtual void ActionComponents.ACTableViewDataSource.UpdateData ( )
virtual

Call this method to update the ListView after making changes to any ActionComponents.ACTableSections or ActionComponents.ACTableItems being controller by this ActionComponents.ACTableViewDataSource

Here is the call graph for this function:

Here is the caller graph for this function:

Property Documentation

Activity ActionComponents.ACTableViewDataSource.activity
getset

Gets or sets the activity that this ActionComponents.ACTableViewDataSource is attached to

The activity.

ACTableViewController ActionComponents.ACTableViewDataSource.controller
get

Gets the ActionComponents.ACTableViewController that this ActionComponents.ACTableViewDataSource is providing data for.

The controller.

override int ActionComponents.ACTableViewDataSource.Count
get
List<ACTableIndex> ActionComponents.ACTableViewDataSource.index
get

Gets the index used to translate a ListView position into an ActionComponents.ACTableViewController ActionComponents.ACTableSection and ActionComponents.ACTableItem index.

The index.

override bool ActionComponents.ACTableViewDataSource.IsEmpty
get

Gets a value indicating whether this ActionComponents.ACTableViewDataSource contains any data

true if this instance is empty; otherwise, false.

List<ACTableSection> ActionComponents.ACTableViewDataSource.sections
get

Gets the collection of ActionComponents.ACTableSection contained in this ActionComponents.ACTableViewDataSource

The sections.

object ActionComponents.ACTableViewDataSource.tag
getset

Gets or sets the [OPTIONAL] object tag that can be attached to this ActionComponents.ACTableViewDataSource

The tag.

override string ActionComponents.ACTableViewDataSource.this[int position]
get

Gets the text property of the ActionComponents.ACTableItem in the give ActionComponents.ACTablesection being controlled by this ActionComponents.ACTableViewDataSource

Parameters
positionPosition.

If the datasource is empty it returns an empty string ""

Event Documentation

DataSourceRequestDataDelegate ActionComponents.ACTableViewDataSource.RequestData