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

The ActionComponents.ACTableSection works with the ActionComponents.ACTableViewController to provide a simple way to present tabular information without have to create a lot of repetitive code. It contains a collection of ActionComponents.ACTableItems used to build a standard UITableView from. More...

Public Member Functions

 ACTableSection (string header)
 Initializes a new instance of the ActionComponents.ACTableSection class. More...
 
 ACTableSection (string header, int imageID)
 Initializes a new instance of the ActionComponents.ACTableSection class. More...
 
 ACTableSection (string header, string footer)
 Initializes a new instance of the ActionComponents.ACTableSection class. More...
 
 ACTableSection (string header, int imageID, string footer)
 Initializes a new instance of the ActionComponents.ACTableSection class. More...
 
 ACTableSection (string header, string footer, string sectionCellID)
 Initializes a new instance of the ActionComponents.ACTableSection class. More...
 
void RemoveItemAt (int index)
 Removes the ActionComponents.ACTableItem at index from this section's collection. More...
 
void Clear ()
 Removes all ActionComponents.ACTableItem from this section's collection. More...
 
void AddItem (ACTableItem tableItem)
 Adds the ActionComponents.ACTableItem to this section's collection More...
 
ACTableItem AddItem (string text, bool canSelect)
 Creates a new ActionComponents.ACTableItem and adds it to this section's collection More...
 
ACTableItem AddItem (string text, string details, bool canSelect)
 Creates a new ActionComponents.ACTableItem and adds it to this section's collection More...
 
ACTableItem AddItem (string text, string details, UITableViewCellStyle style, bool canSelect)
 Creates a new ActionComponents.ACTableItem and adds it to this section's collection More...
 
ACTableItem AddItem (string imageFile, string text, string details, bool canSelect)
 Creates a new ActionComponents.ACTableItem and adds it to this section's collection More...
 
ACTableItem AddItem (int imageID, string text, string details, bool canSelect)
 Creates a new ActionComponents.ACTableItem and adds it to this section's collection More...
 
ACTableItem AddItem (bool customImage, string text, string details, bool canSelect)
 Creates a new ActionComponents.ACTableItem and adds it to this section's collection More...
 
ACTableItem AddItem (string imageFile, string text, string details, UITableViewCellStyle style, bool canSelect)
 Creates a new ActionComponents.ACTableItem and adds it to this section's collection More...
 
ACTableItem AddItem (int imageID, string text, string details, UITableViewCellStyle style, bool canSelect)
 Creates a new ActionComponents.ACTableItem and adds it to this section's collection More...
 
ACTableItem AddItem (string imageFile, string text, string details, UITableViewCellStyle style, UITableViewCellAccessory accessory, bool canSelect)
 Creates a new ActionComponents.ACTableItem and adds it to this section's collection More...
 
ACTableItem AddItem (bool customImage, string text, string details, UITableViewCellStyle style, UITableViewCellAccessory accessory, bool canSelect)
 Creates a new ActionComponents.ACTableItem and adds it to this section's collection More...
 
ACTableItem AddItem (ACTableItemImageSource imageSource, string imageFile, string text, string details, UITableViewCellStyle style, UITableViewCellAccessory accessory, bool canSelect)
 Creates a new ActionComponents.ACTableItem and adds it to this section's collection More...
 
delegate void ACTableItemSelectedDelegate (ACTableItem item)
 Occurs when this ActionComponents.ACTableItem has been selected by the user More...
 
delegate void ACTableItemValueChangedDelegate (ACTableItem item)
 Occurs when the value for this ActionComponents.ACTableItem have been changed More...
 
delegate void AccessoryButtonTappedDelegate (ACTableItem item)
 Occurs when a ActionComponents.ACTableItem's accessory button is tapped More...
 
delegate Bitmap ACTableSectionRequestCustomImageDelegate (ACTableSection section)
 Occurs when this ActionComponents.ACTableItem needs the caller to draw a custom image More...
 
delegate void SectionHeaderTouchedDelegate (ACTableSection section)
 Occurs when a ActionComponents.ACTableSection Header row is touched More...
 
delegate void SectionFooterTouchedDelegate (ACTableSection section)
 Occurs when a ActionComponents.ACTableSection Header row is touched More...
 

Properties

object tag [get, set]
 Gets or sets the [OPTIONAL] object tag for this ActionComponents.ACTableSection More...
 
Activity activity [get, set]
 Gets or sets the activity that this ActionComponents.ACTableViewDataSource is attached to More...
 
string header [get, set]
 Gets or sets the header for this ActionComponents.ACTableSection More...
 
string sectionCellID [get, set]
 Gets or sets the ID used to uniquely idetify the cell created from the ActionComponents.ACTableItems wihtin this ActionComponents.ACTableSection More...
 
string footer [get, set]
 Gets or sets the footer for this ActionComponents.ACTableSection More...
 
ACTableItemImageSource imageSource [get, set]
 Gets or sets the source of an image displayed for this ActionComponents.ACTableItem More...
 
string imageFile [get, set]
 Gets or sets the source of an image displayed for this ActionComponents.ACTableItem More...
 
int imageID [get, set]
 Gets or sets the ID of the image resource displayed for this ActionComponents.ACTableItem More...
 
Bitmap image [get]
 Gets the image for this ActionComponents.ACTableItem More...
 
List< ACTableItemitems [get]
 Gets the list of ActionComponents.ACTableItems for this ActionComponents.ACTableSection More...
 
int count [get]
 Returns the number of ActionComponents.ACTableItem in this ActionComponents.ACTableSection's collection of items More...
 

Events

ACTableItemSelectedDelegate ItemsSelected
 
ACTableItemValueChangedDelegate ItemValueChanged
 
AccessoryButtonTappedDelegate AccessoryButtonTapped
 
ACTableSectionRequestCustomImageDelegate RequestCustomImage
 
SectionHeaderTouchedDelegate SectionHeaderTouched
 
SectionFooterTouchedDelegate SectionFooterTouched
 

Detailed Description

The ActionComponents.ACTableSection works with the ActionComponents.ACTableViewController to provide a simple way to present tabular information without have to create a lot of repetitive code. It contains a collection of ActionComponents.ACTableItems used to build a standard UITableView from.

Available in ActionPack Business or Enterprise only.

Constructor & Destructor Documentation

ActionComponents.ACTableSection.ACTableSection ( string  header)

Initializes a new instance of the ActionComponents.ACTableSection class.

Parameters
headerHeader.
ActionComponents.ACTableSection.ACTableSection ( string  header,
int  imageID 
)

Initializes a new instance of the ActionComponents.ACTableSection class.

Parameters
headerHeader.
imageIDImage ID.
ActionComponents.ACTableSection.ACTableSection ( string  header,
string  footer 
)

Initializes a new instance of the ActionComponents.ACTableSection class.

Parameters
headerHeader.
footerFooter.
ActionComponents.ACTableSection.ACTableSection ( string  header,
int  imageID,
string  footer 
)

Initializes a new instance of the ActionComponents.ACTableSection class.

Parameters
headerHeader.
imageIDImage I.
footerFooter.
ActionComponents.ACTableSection.ACTableSection ( string  header,
string  footer,
string  sectionCellID 
)

Initializes a new instance of the ActionComponents.ACTableSection class.

Parameters
headerHeader.
footerFooter.
sectionCellIDSection cell ID.

Member Function Documentation

delegate void ActionComponents.ACTableSection.AccessoryButtonTappedDelegate ( ACTableItem  item)

Occurs when a ActionComponents.ACTableItem's accessory button is tapped

delegate void ActionComponents.ACTableSection.ACTableItemSelectedDelegate ( ACTableItem  item)

Occurs when this ActionComponents.ACTableItem has been selected by the user

Here is the caller graph for this function:

delegate void ActionComponents.ACTableSection.ACTableItemValueChangedDelegate ( ACTableItem  item)

Occurs when the value for this ActionComponents.ACTableItem have been changed

delegate Bitmap ActionComponents.ACTableSection.ACTableSectionRequestCustomImageDelegate ( ACTableSection  section)

Occurs when this ActionComponents.ACTableItem needs the caller to draw a custom image

This event will be raised based on the state of the imageSource property

void ActionComponents.ACTableSection.AddItem ( ACTableItem  tableItem)

Adds the ActionComponents.ACTableItem to this section's collection

Parameters
tableItemItem.

Here is the caller graph for this function:

ACTableItem ActionComponents.ACTableSection.AddItem ( string  text,
bool  canSelect 
)

Creates a new ActionComponents.ACTableItem and adds it to this section's collection

Returns
The item.
Parameters
textText.
canSelectIf set to true can select.

Here is the call graph for this function:

ACTableItem ActionComponents.ACTableSection.AddItem ( string  text,
string  details,
bool  canSelect 
)

Creates a new ActionComponents.ACTableItem and adds it to this section's collection

Returns
The item.
Parameters
textText.
detailsDetails.
canSelectIf set to true can select.

Here is the call graph for this function:

ACTableItem ActionComponents.ACTableSection.AddItem ( string  text,
string  details,
UITableViewCellStyle  style,
bool  canSelect 
)

Creates a new ActionComponents.ACTableItem and adds it to this section's collection

Returns
The item.
Parameters
textText.
detailsDetails.
styleStyle.
canSelectIf set to true can select.

Here is the call graph for this function:

ACTableItem ActionComponents.ACTableSection.AddItem ( string  imageFile,
string  text,
string  details,
bool  canSelect 
)

Creates a new ActionComponents.ACTableItem and adds it to this section's collection

Returns
The item.
Parameters
imageFileImage file.
textText.
detailsDetails.
canSelectIf set to true can select.

Here is the call graph for this function:

ACTableItem ActionComponents.ACTableSection.AddItem ( int  imageID,
string  text,
string  details,
bool  canSelect 
)

Creates a new ActionComponents.ACTableItem and adds it to this section's collection

Returns
The item.
Parameters
imageIDImage ID.
textText.
detailsDetails.
canSelectIf set to true can select.

Here is the call graph for this function:

ACTableItem ActionComponents.ACTableSection.AddItem ( bool  customImage,
string  text,
string  details,
bool  canSelect 
)

Creates a new ActionComponents.ACTableItem and adds it to this section's collection

Returns
The item.
Parameters
customImageIf set to true custom image.
textText.
detailsDetails.
canSelectIf set to true can select.

Here is the call graph for this function:

ACTableItem ActionComponents.ACTableSection.AddItem ( string  imageFile,
string  text,
string  details,
UITableViewCellStyle  style,
bool  canSelect 
)

Creates a new ActionComponents.ACTableItem and adds it to this section's collection

Returns
The item.
Parameters
imageFileImage file.
textText.
detailsDetails.
styleStyle.
canSelectIf set to true can select.

Here is the call graph for this function:

ACTableItem ActionComponents.ACTableSection.AddItem ( int  imageID,
string  text,
string  details,
UITableViewCellStyle  style,
bool  canSelect 
)

Creates a new ActionComponents.ACTableItem and adds it to this section's collection

Returns
The item.
Parameters
imageIDImage ID.
textText.
detailsDetails.
styleStyle.
canSelectIf set to true can select.

Here is the call graph for this function:

ACTableItem ActionComponents.ACTableSection.AddItem ( string  imageFile,
string  text,
string  details,
UITableViewCellStyle  style,
UITableViewCellAccessory  accessory,
bool  canSelect 
)

Creates a new ActionComponents.ACTableItem and adds it to this section's collection

Returns
The item.
Parameters
imageFileImage file.
textText.
detailsDetails.
styleStyle.
accessoryAccessory.
canSelectIf set to true can select.

Here is the call graph for this function:

ACTableItem ActionComponents.ACTableSection.AddItem ( bool  customImage,
string  text,
string  details,
UITableViewCellStyle  style,
UITableViewCellAccessory  accessory,
bool  canSelect 
)

Creates a new ActionComponents.ACTableItem and adds it to this section's collection

Returns
The item.
Parameters
customImageIf set to true custom image.
textText.
detailsDetails.
styleStyle.
accessoryAccessory.
canSelectIf set to true can select.

Here is the call graph for this function:

ACTableItem ActionComponents.ACTableSection.AddItem ( ACTableItemImageSource  imageSource,
string  imageFile,
string  text,
string  details,
UITableViewCellStyle  style,
UITableViewCellAccessory  accessory,
bool  canSelect 
)

Creates a new ActionComponents.ACTableItem and adds it to this section's collection

Returns
The item.
Parameters
imageSourceImage source.
imageFileImage file.
textText.
detailsDetails.
styleStyle.
accessoryAccessory.
canSelectIf set to true can select.

Here is the call graph for this function:

void ActionComponents.ACTableSection.Clear ( )

Removes all ActionComponents.ACTableItem from this section's collection.

void ActionComponents.ACTableSection.RemoveItemAt ( int  index)

Removes the ActionComponents.ACTableItem at index from this section's collection.

Parameters
indexIndex.
delegate void ActionComponents.ACTableSection.SectionFooterTouchedDelegate ( ACTableSection  section)

Occurs when a ActionComponents.ACTableSection Header row is touched

delegate void ActionComponents.ACTableSection.SectionHeaderTouchedDelegate ( ACTableSection  section)

Occurs when a ActionComponents.ACTableSection Header row is touched

Property Documentation

Activity ActionComponents.ACTableSection.activity
getset

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

The activity.

int ActionComponents.ACTableSection.count
get

Returns the number of ActionComponents.ACTableItem in this ActionComponents.ACTableSection's collection of items

The count.

string ActionComponents.ACTableSection.footer
getset

Gets or sets the footer for this ActionComponents.ACTableSection

The footer.

string ActionComponents.ACTableSection.header
getset

Gets or sets the header for this ActionComponents.ACTableSection

The header.

Bitmap ActionComponents.ACTableSection.image
get

Gets the image for this ActionComponents.ACTableItem

The image.

This property will be used based on the value of the imageSource property

string ActionComponents.ACTableSection.imageFile
getset

Gets or sets the source of an image displayed for this ActionComponents.ACTableItem

The image file.

This property will be used based on the value of the imageSource property

int ActionComponents.ACTableSection.imageID
getset

Gets or sets the ID of the image resource displayed for this ActionComponents.ACTableItem

The image ID

ACTableItemImageSource ActionComponents.ACTableSection.imageSource
getset

Gets or sets the source of an image displayed for this ActionComponents.ACTableItem

The image source.

List<ACTableItem> ActionComponents.ACTableSection.items
get

Gets the list of ActionComponents.ACTableItems for this ActionComponents.ACTableSection

The items.

string ActionComponents.ACTableSection.sectionCellID
getset

Gets or sets the ID used to uniquely idetify the cell created from the ActionComponents.ACTableItems wihtin this ActionComponents.ACTableSection

The section cell ID

If a value isn't specified for this value the section header will be used with any spaces removed

object ActionComponents.ACTableSection.tag
getset

Gets or sets the [OPTIONAL] object tag for this ActionComponents.ACTableSection

The tag.

Event Documentation

AccessoryButtonTappedDelegate ActionComponents.ACTableSection.AccessoryButtonTapped
ACTableItemSelectedDelegate ActionComponents.ACTableSection.ItemsSelected
ACTableItemValueChangedDelegate ActionComponents.ACTableSection.ItemValueChanged
ACTableSectionRequestCustomImageDelegate ActionComponents.ACTableSection.RequestCustomImage
SectionFooterTouchedDelegate ActionComponents.ACTableSection.SectionFooterTouched
SectionHeaderTouchedDelegate ActionComponents.ACTableSection.SectionHeaderTouched