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

The ActionComponents.ACTableItem works with the ActionComponents.ACTableViewController to provide a simple way to present tabular information without have to create a lot of repetitive code. The ActionComponents.ACTableItem will be contained in a ActionComponents.ACTableSection and the resulting information will be displayed in a ActionComponents.ACTableCell More...

Public Member Functions

 ACTableItem ()
 Initializes a new instance of the ActionComponents.ACTableItem class. More...
 
 ACTableItem (string text, bool canSelect)
 Initializes a new instance of the ActionComponents.ACTableItem class. More...
 
 ACTableItem (string text, string details, bool canSelect)
 Initializes a new instance of the ActionComponents.ACTableItem class. More...
 
 ACTableItem (string text, string details, UITableViewCellStyle style, bool canSelect)
 Initializes a new instance of the ActionComponents.ACTableItem class. More...
 
 ACTableItem (string imageFile, string text, string details, bool canSelect)
 Initializes a new instance of the ActionComponents.ACTableItem class. More...
 
 ACTableItem (int imageID, string text, string details, bool canSelect)
 Initializes a new instance of the ActionComponents.ACTableItem class. More...
 
 ACTableItem (bool customImage, string text, string details, bool canSelect)
 Initializes a new instance of the ActionComponents.ACTableItem class. More...
 
 ACTableItem (string imageFile, string text, string details, UITableViewCellStyle style, bool canSelect)
 Initializes a new instance of the ActionComponents.ACTableItem class. More...
 
 ACTableItem (int imageID, string text, string details, UITableViewCellStyle style, bool canSelect)
 Initializes a new instance of the ActionComponents.ACTableItem class. More...
 
 ACTableItem (string imageFile, string text, string details, UITableViewCellStyle style, UITableViewCellAccessory accessory, bool canSelect)
 Initializes a new instance of the ActionComponents.ACTableItem class. More...
 
 ACTableItem (bool customImage, string text, string details, UITableViewCellStyle style, UITableViewCellAccessory accessory, bool canSelect)
 Initializes a new instance of the ActionComponents.ACTableItem class. More...
 
 ACTableItem (ACTableItemImageSource imageSource, string imageFile, string text, string details, UITableViewCellStyle style, UITableViewCellAccessory accessory, bool canSelect)
 Initializes a new instance of the ActionComponents.ACTableItem class. More...
 
ToggleButton AddAccessorySwitch (bool value)
 Adds a switch accessory to this ActionComponents.ACTableItem More...
 
ToggleButton AddAccessorySwitch (bool value, ACTableAccessorySwitchDelegate switchDelegate)
 Adds a switch accessory to this ActionComponents.ACTableItem More...
 
SeekBar AddAccessoryStepper (int minimumValue, int maximumValue, int stepValue, int value)
 Adds a stepper accessory to this ActionComponents.ACTableItem More...
 
SeekBar AddAccessoryStepper (int minimumValue, int maximumValue, int stepValue, int value, ACTableAccessorySliderDelegate sliderDelegate)
 Adds a stepper accessory to this ActionComponents.ACTableItem More...
 
SeekBar AddAccessorySlider (int minimumValue, int maximumValue, int value)
 Adds a slider accessory to this ActionComponents.ACTableItem More...
 
SeekBar AddAccessorySlider (int minimumValue, int maximumValue, int value, ACTableAccessorySliderDelegate sliderDelegate)
 Adds a slider accessory to this ActionComponents.ACTableItem More...
 
ACImageView AddAccessoryActionImageView (string filename)
 Adds a Appracatappra.ActionComponents.ActionView.ACImageView accessory to this ActionComponents.ACTableItem More...
 
ACImageView AddAccessoryActionImageView (int imageID)
 Adds a Appracatappra.ActionComponents.ActionView.ACImageView accessory to this ActionComponents.ACTableItem More...
 
ACImageView AddAccessoryActionImageView (Bitmap image)
 Adds a Appracatappra.ActionComponents.ActionView.ACImageView accessory to this ActionComponents.ACTableItem More...
 
Button AddAccessoryButton (int width, string title)
 Adds a button accessory to this ActionComponents.ACTableItem More...
 
Button AddAccessoryButton (int width, string title, ACTableAccessoryButtonDelegate buttonDelegate)
 Adds a button accessory to this ActionComponents.ACTableItem More...
 
EditText AddAccessoryTextField (int width, string placeholder, string text)
 Adds an EditText accessory to this ActionComponents.ACTableItem More...
 
EditText AddAccessoryTextField (int width, string placeholder, string text, ACTableAccessoryTextDelegate textDelegate)
 Adds an EditText accessory to this ActionComponents.ACTableItem More...
 
delegate void ACTableAccessorySwitchDelegate (bool on)
 Occurrs when this ActionComponents.ACTableItem has an attached UISwitch accessory and the value is changed. More...
 
delegate void ACTableAccessoryStepperDelegate (int value)
 Occurrs when this ActionComponents.ACTableItem has an attached UIStepper accessory and the value is changed. More...
 
delegate void ACTableAccessorySliderDelegate (int value)
 Occurrs when this ActionComponents.ACTableItem has an attached UISlider accessory and the value is changed. More...
 
delegate void ACTableAccessoryButtonDelegate ()
 Occurrs when this ActionComponents.ACTableItem has an attached UIButton accessory and the button is tapped. More...
 
delegate void ACTableAccessoryTextDelegate (string text)
 Occurrs when this ActionComponents.ACTableItem has an attached UITextField accessory and the value is changed. 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 Bitmap ACTableItemRequestCustomImageDelegate (ACTableItem item)
 Occurs when this ActionComponents.ACTableItem needs the caller to draw a custom image More...
 
delegate void AccessoryButtonTappedDelegate (ACTableItem item)
 Occurs when a ActionComponents.ACTableItem's accessory button is tapped More...
 

Properties

object tag [get, set]
 Gets or sets the [OPTIONAL] object tag that can be attached to this ActionComponents.ACTableItem More...
 
Activity activity [get, set]
 Gets or sets the activity that this ActionComponents.ACTableItem is attached to More...
 
string details [get, set]
 Gets or sets the detail text for this ActionComponents.ACTableItem More...
 
string text [get, set]
 Gets or sets the text for this ActionComponents.ACTableItem More...
 
bool canSelect [get, set]
 Gets or sets a value indicating whether this ActionComponents.ACTableItem can be selected. More...
 
UITableViewCellStyle style [get, set]
 Gets or sets the table cell style for this ActionComponents.ACTableItem More...
 
UITableViewCellAccessory accessory [get, set]
 Gets or sets the table accessory type for this 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...
 
View contentView [get, set]
 Gets or sets the content view associated with this ActionComponents.ACTableItem More...
 
View accessoryView [get, set]
 Gets or sets the accessory view associated with this ActionComponents.ACTableItem More...
 
object accessoryValue [get, set]
 Gets or sets the value being modified by the accessoryView attached to this ActionComponents.ACTableItem More...
 

Events

ACTableItemSelectedDelegate ItemsSelected
 
ACTableItemValueChangedDelegate ItemValueChanged
 
ACTableItemRequestCustomImageDelegate RequestCustomImage
 
AccessoryButtonTappedDelegate AccessoryButtonTapped
 

Detailed Description

The ActionComponents.ACTableItem works with the ActionComponents.ACTableViewController to provide a simple way to present tabular information without have to create a lot of repetitive code. The ActionComponents.ACTableItem will be contained in a ActionComponents.ACTableSection and the resulting information will be displayed in a ActionComponents.ACTableCell

Several methods are available to quickly build up an item and add accessories such as toggle buttons, edit fields, and sliders. An effort has been made to maintain code compatibility with the iOS version of ActionTable so that as much code as possibly can be reused across platforms. Available in ActionPack Business or Enterprise only.

Constructor & Destructor Documentation

ActionComponents.ACTableItem.ACTableItem ( )

Initializes a new instance of the ActionComponents.ACTableItem class.

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

Initializes a new instance of the ActionComponents.ACTableItem class.

Parameters
textText.
canSelectIf set to true can select.
ActionComponents.ACTableItem.ACTableItem ( string  text,
string  details,
bool  canSelect 
)

Initializes a new instance of the ActionComponents.ACTableItem class.

Parameters
textText.
detailsDetails.
canSelectIf set to true can select.
ActionComponents.ACTableItem.ACTableItem ( string  text,
string  details,
UITableViewCellStyle  style,
bool  canSelect 
)

Initializes a new instance of the ActionComponents.ACTableItem class.

Parameters
textText.
detailsDetails.
styleStyle.
canSelectIf set to true can select.
ActionComponents.ACTableItem.ACTableItem ( string  imageFile,
string  text,
string  details,
bool  canSelect 
)

Initializes a new instance of the ActionComponents.ACTableItem class.

Parameters
imageFileImage file.
textText.
detailsDetails.
canSelectIf set to true can select.
ActionComponents.ACTableItem.ACTableItem ( int  imageID,
string  text,
string  details,
bool  canSelect 
)

Initializes a new instance of the ActionComponents.ACTableItem class.

Parameters
imageIDImage ID.
textText.
detailsDetails.
canSelectIf set to true can select.
ActionComponents.ACTableItem.ACTableItem ( bool  customImage,
string  text,
string  details,
bool  canSelect 
)

Initializes a new instance of the ActionComponents.ACTableItem class.

Parameters
customImageIf set to true custom image.
textText.
detailsDetails.
canSelectIf set to true can select.
ActionComponents.ACTableItem.ACTableItem ( string  imageFile,
string  text,
string  details,
UITableViewCellStyle  style,
bool  canSelect 
)

Initializes a new instance of the ActionComponents.ACTableItem class.

Parameters
imageFileImage file.
textText.
detailsDetails.
styleStyle.
canSelectIf set to true can select.
ActionComponents.ACTableItem.ACTableItem ( int  imageID,
string  text,
string  details,
UITableViewCellStyle  style,
bool  canSelect 
)

Initializes a new instance of the ActionComponents.ACTableItem class.

Parameters
imageIDImage I.
textText.
detailsDetails.
styleStyle.
canSelectIf set to true can select.
ActionComponents.ACTableItem.ACTableItem ( string  imageFile,
string  text,
string  details,
UITableViewCellStyle  style,
UITableViewCellAccessory  accessory,
bool  canSelect 
)

Initializes a new instance of the ActionComponents.ACTableItem class.

Parameters
imageFileImage file.
textText.
detailsDetails.
styleStyle.
accessoryAccessory.
canSelectIf set to true can select.
ActionComponents.ACTableItem.ACTableItem ( bool  customImage,
string  text,
string  details,
UITableViewCellStyle  style,
UITableViewCellAccessory  accessory,
bool  canSelect 
)

Initializes a new instance of the ActionComponents.ACTableItem class.

Parameters
customImageIf set to true custom image.
textText.
detailsDetails.
styleStyle.
accessoryAccessory.
canSelectIf set to true can select.
ActionComponents.ACTableItem.ACTableItem ( ACTableItemImageSource  imageSource,
string  imageFile,
string  text,
string  details,
UITableViewCellStyle  style,
UITableViewCellAccessory  accessory,
bool  canSelect 
)

Initializes a new instance of the ActionComponents.ACTableItem class.

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

Member Function Documentation

delegate void ActionComponents.ACTableItem.AccessoryButtonTappedDelegate ( ACTableItem  item)

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

delegate void ActionComponents.ACTableItem.ACTableAccessoryButtonDelegate ( )

Occurrs when this ActionComponents.ACTableItem has an attached UIButton accessory and the button is tapped.

Here is the caller graph for this function:

delegate void ActionComponents.ACTableItem.ACTableAccessorySliderDelegate ( int  value)

Occurrs when this ActionComponents.ACTableItem has an attached UISlider accessory and the value is changed.

Here is the caller graph for this function:

delegate void ActionComponents.ACTableItem.ACTableAccessoryStepperDelegate ( int  value)

Occurrs when this ActionComponents.ACTableItem has an attached UIStepper accessory and the value is changed.

Here is the caller graph for this function:

delegate void ActionComponents.ACTableItem.ACTableAccessorySwitchDelegate ( bool  on)

Occurrs when this ActionComponents.ACTableItem has an attached UISwitch accessory and the value is changed.

Here is the caller graph for this function:

delegate void ActionComponents.ACTableItem.ACTableAccessoryTextDelegate ( string  text)

Occurrs when this ActionComponents.ACTableItem has an attached UITextField accessory and the value is changed.

Here is the caller graph for this function:

delegate Bitmap ActionComponents.ACTableItem.ACTableItemRequestCustomImageDelegate ( ACTableItem  item)

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

delegate void ActionComponents.ACTableItem.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.ACTableItem.ACTableItemValueChangedDelegate ( ACTableItem  item)

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

ACImageView ActionComponents.ACTableItem.AddAccessoryActionImageView ( string  filename)

Adds a Appracatappra.ActionComponents.ActionView.ACImageView accessory to this ActionComponents.ACTableItem

Returns
The accessory action image view.
Parameters
filenameFilename.

Here is the call graph for this function:

Here is the caller graph for this function:

ACImageView ActionComponents.ACTableItem.AddAccessoryActionImageView ( int  imageID)

Adds a Appracatappra.ActionComponents.ActionView.ACImageView accessory to this ActionComponents.ACTableItem

Returns
The accessory action image view.
Parameters
imageIDImage ID.

Here is the call graph for this function:

ACImageView ActionComponents.ACTableItem.AddAccessoryActionImageView ( Bitmap  image)

Adds a Appracatappra.ActionComponents.ActionView.ACImageView accessory to this ActionComponents.ACTableItem

Returns
The accessory action image view.
Parameters
imageImage.
Button ActionComponents.ACTableItem.AddAccessoryButton ( int  width,
string  title 
)

Adds a button accessory to this ActionComponents.ACTableItem

Returns
The accessory button.
Parameters
widthWidth.
titleTitle.
Button ActionComponents.ACTableItem.AddAccessoryButton ( int  width,
string  title,
ACTableAccessoryButtonDelegate  buttonDelegate 
)

Adds a button accessory to this ActionComponents.ACTableItem

Returns
The accessory button.
Parameters
widthWidth.
titleTitle.
buttonDelegateButton delegate.
SeekBar ActionComponents.ACTableItem.AddAccessorySlider ( int  minimumValue,
int  maximumValue,
int  value 
)

Adds a slider accessory to this ActionComponents.ACTableItem

Returns
The accessory slider.
Parameters
minimumValueMinimum value.
maximumValueMaximum value.
valueValue.

Here is the caller graph for this function:

SeekBar ActionComponents.ACTableItem.AddAccessorySlider ( int  minimumValue,
int  maximumValue,
int  value,
ACTableAccessorySliderDelegate  sliderDelegate 
)

Adds a slider accessory to this ActionComponents.ACTableItem

Returns
The accessory slider.
Parameters
minimumValueMinimum value.
maximumValueMaximum value.
valueValue.
sliderDelegateSlider delegate.
SeekBar ActionComponents.ACTableItem.AddAccessoryStepper ( int  minimumValue,
int  maximumValue,
int  stepValue,
int  value 
)

Adds a stepper accessory to this ActionComponents.ACTableItem

Returns
The accessory stepper.
Parameters
minimumValueMinimum value.
maximumValueMaximum value.
stepValueStep value.
valueValue.

Since Android doesn't have a compariable component to the iOS Stepper, this is currently mapped to a SeekBar. While still provided the setpValue is currently ignored.

Here is the call graph for this function:

SeekBar ActionComponents.ACTableItem.AddAccessoryStepper ( int  minimumValue,
int  maximumValue,
int  stepValue,
int  value,
ACTableAccessorySliderDelegate  sliderDelegate 
)

Adds a stepper accessory to this ActionComponents.ACTableItem

Returns
The accessory stepper.
Parameters
minimumValueMinimum value.
maximumValueMaximum value.
stepValueStep value.
valueValue.

Since Android doesn't have a compariable component to the iOS Stepper, this is currently mapped to a SeekBar. While still provided the setpValue is currently ignored.

Here is the call graph for this function:

ToggleButton ActionComponents.ACTableItem.AddAccessorySwitch ( bool  value)

Adds a switch accessory to this ActionComponents.ACTableItem

Returns
The accessory switch.
Parameters
valueThe value that will be adjusted by the switch
ToggleButton ActionComponents.ACTableItem.AddAccessorySwitch ( bool  value,
ACTableAccessorySwitchDelegate  switchDelegate 
)

Adds a switch accessory to this ActionComponents.ACTableItem

Returns
The accessory switch.
Parameters
valueIf set to true value.
switchDelegateSwitch delegate.
EditText ActionComponents.ACTableItem.AddAccessoryTextField ( int  width,
string  placeholder,
string  text 
)

Adds an EditText accessory to this ActionComponents.ACTableItem

Returns
The accessory text field.
Parameters
widthWidth.
placeholderPlaceholder.
textText.
EditText ActionComponents.ACTableItem.AddAccessoryTextField ( int  width,
string  placeholder,
string  text,
ACTableAccessoryTextDelegate  textDelegate 
)

Adds an EditText accessory to this ActionComponents.ACTableItem

Returns
The accessory text field.
Parameters
widthWidth.
placeholderPlaceholder.
textText.
textDelegateText delegate.

Here is the call graph for this function:

Property Documentation

UITableViewCellAccessory ActionComponents.ACTableItem.accessory
getset

Gets or sets the table accessory type for this

The accessory.

The CellAccessory was designed to maintain compatibility with the iOS version of ActionTable

object ActionComponents.ACTableItem.accessoryValue
getset

Gets or sets the value being modified by the accessoryView attached to this ActionComponents.ACTableItem

The accessory value.

View ActionComponents.ACTableItem.accessoryView
getset

Gets or sets the accessory view associated with this ActionComponents.ACTableItem

The accessory view.

Activity ActionComponents.ACTableItem.activity
getset

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

The activity.

bool ActionComponents.ACTableItem.canSelect
getset

Gets or sets a value indicating whether this ActionComponents.ACTableItem can be selected.

true if this instance can select; otherwise, false.

View ActionComponents.ACTableItem.contentView
getset

Gets or sets the content view associated with this ActionComponents.ACTableItem

The content view.

This property is not currently used but here as a placeholder for future expansion

string ActionComponents.ACTableItem.details
getset

Gets or sets the detail text for this ActionComponents.ACTableItem

The detail text.

Bitmap ActionComponents.ACTableItem.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.ACTableItem.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.ACTableItem.imageID
getset

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

The image ID

ACTableItemImageSource ActionComponents.ACTableItem.imageSource
getset

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

The image source.

UITableViewCellStyle ActionComponents.ACTableItem.style
getset

Gets or sets the table cell style for this ActionComponents.ACTableItem

The style.

The style was designed to maintain compatibility with the iOS version of ActionTable

object ActionComponents.ACTableItem.tag
getset

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

The tag.

string ActionComponents.ACTableItem.text
getset

Gets or sets the text for this ActionComponents.ACTableItem

The text.

Event Documentation

AccessoryButtonTappedDelegate ActionComponents.ACTableItem.AccessoryButtonTapped
ACTableItemSelectedDelegate ActionComponents.ACTableItem.ItemsSelected
ACTableItemValueChangedDelegate ActionComponents.ACTableItem.ItemValueChanged
ACTableItemRequestCustomImageDelegate ActionComponents.ACTableItem.RequestCustomImage