C# Class Cirrious.MvvmCross.Dialog.Touch.Dialog.Elements.Element

Base class for all elements in MonoTouch.Dialog
Inheritance: IDisposable
Exibir arquivo Open project: runegri/Android.Dialog Class Usage Examples

Public Properties

Property Type Description
Parent Element

Public Methods

Method Description
Deselected ( DialogViewController dvc, UITableView tableView, NSIndexPath path ) : void

Invoked when the given element has been deslected by the user.

Dispose ( ) : void
Element ( string caption ) : System

Initializes the element with the given caption.

Element ( string caption, NSAction tapped ) : System
GetActiveCell ( ) : UITableViewCell

Returns the currently active UITableViewCell for this element, or null if the element is not currently visible

GetCell ( UITableView tv ) : UITableViewCell

Gets a UITableViewCell for this element. Must not be overridden - override GetCellImpl instead

GetContainerTableView ( ) : UITableView

Returns the UITableView associated with this element, or null if this cell is not currently attached to a UITableView

GetImmediateRootElement ( ) : RootElement

If the cell is attached will return the immediate RootElement

Matches ( string text ) : bool

Method invoked to determine if the cell matches the given text, never invoked with a null value or an empty string.

Selected ( DialogViewController dvc, UITableView tableView, NSIndexPath path ) : void

Invoked when the given element has been selected by the user.

Summary ( ) : string

Returns a summary of the value represented by this object, suitable for rendering as the result of a RootElement with child objects.

Protected Methods

Method Description
ActOnCurrentAttachedCell ( Action updateAction ) : void

Act on the current attached cell

Dispose ( bool disposing ) : void
GetCellImpl ( UITableView tv ) : UITableViewCell

Gets a UITableViewCell for this element. Can be overridden, but if you customize the style or contents of the cell you must also override the CellKey property in your derived class.

RemoveTag ( UITableViewCell cell, int tag ) : void
UpdateCaptionDisplay ( UITableViewCell cell ) : void

Override this method if you want some other action to be taken when the caption changes

UpdateCellDisplay ( UITableViewCell cell ) : void

Override this method if you want some other action to be taken when a cell view is set

Method Details

ActOnCurrentAttachedCell() protected method

Act on the current attached cell
protected ActOnCurrentAttachedCell ( Action updateAction ) : void
updateAction Action
return void

Deselected() public method

Invoked when the given element has been deslected by the user.
public Deselected ( DialogViewController dvc, UITableView tableView, NSIndexPath path ) : void
dvc DialogViewController /// The where the deselection took place ///
tableView UITableView /// The that contains the element. ///
path NSIndexPath /// The that contains the Section and Row for the element. ///
return void

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

Element() public method

Initializes the element with the given caption.
public Element ( string caption ) : System
caption string /// The caption. ///
return System

Element() public method

public Element ( string caption, NSAction tapped ) : System
caption string
tapped NSAction
return System

GetActiveCell() public method

Returns the currently active UITableViewCell for this element, or null if the element is not currently visible
public GetActiveCell ( ) : UITableViewCell
return UITableViewCell

GetCell() public method

Gets a UITableViewCell for this element. Must not be overridden - override GetCellImpl instead
public GetCell ( UITableView tv ) : UITableViewCell
tv UITableView
return UITableViewCell

GetCellImpl() protected method

Gets a UITableViewCell for this element. Can be overridden, but if you customize the style or contents of the cell you must also override the CellKey property in your derived class.
protected GetCellImpl ( UITableView tv ) : UITableViewCell
tv UITableView
return UITableViewCell

GetContainerTableView() public method

Returns the UITableView associated with this element, or null if this cell is not currently attached to a UITableView
public GetContainerTableView ( ) : UITableView
return UITableView

GetImmediateRootElement() public method

If the cell is attached will return the immediate RootElement
public GetImmediateRootElement ( ) : RootElement
return RootElement

Matches() public method

Method invoked to determine if the cell matches the given text, never invoked with a null value or an empty string.
public Matches ( string text ) : bool
text string
return bool

RemoveTag() static protected method

static protected RemoveTag ( UITableViewCell cell, int tag ) : void
cell UITableViewCell
tag int
return void

Selected() public method

Invoked when the given element has been selected by the user.
public Selected ( DialogViewController dvc, UITableView tableView, NSIndexPath path ) : void
dvc DialogViewController /// The where the selection took place ///
tableView UITableView /// The that contains the element. ///
path NSIndexPath /// The that contains the Section and Row for the element. ///
return void

Summary() public method

Returns a summary of the value represented by this object, suitable for rendering as the result of a RootElement with child objects.
public Summary ( ) : string
return string

UpdateCaptionDisplay() protected method

Override this method if you want some other action to be taken when the caption changes
protected UpdateCaptionDisplay ( UITableViewCell cell ) : void
cell UITableViewCell
return void

UpdateCellDisplay() protected method

Override this method if you want some other action to be taken when a cell view is set
protected UpdateCellDisplay ( UITableViewCell cell ) : void
cell UITableViewCell
return void

Property Details

Parent public_oe property

Handle to the container object.
For sections this points to a RootElement, for every other object this points to a Section and it is null for the root RootElement.
public Element,Cirrious.MvvmCross.Dialog.Touch.Dialog.Elements Parent
return Element