C# Class CrossUI.iOS.Dialog.Elements.Element

Base class for all elements in MonoTouch.Dialog
Inheritance: IElement, IDisposable
Afficher le fichier Open project: MvvmCross/MvvmCross Class Usage Examples

Méthodes publiques

Méthode 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 ) : CrossUI.Core

Initializes the element with the given caption.

Element ( string caption, System.Action tapped ) : CrossUI.Core
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.

Méthodes protégées

Méthode 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

Private Methods

Méthode Description
GetParentTableView ( UITableViewCell cell ) : UITableView
UpdateVisibility ( ) : void

Method Details

ActOnCurrentAttachedCell() protected méthode

Act on the current attached cell
protected ActOnCurrentAttachedCell ( Action updateAction ) : void
updateAction Action
Résultat void

Deselected() public méthode

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. ///
Résultat void

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

Element() public méthode

Initializes the element with the given caption.
public Element ( string caption ) : CrossUI.Core
caption string /// The caption. ///
Résultat CrossUI.Core

Element() public méthode

public Element ( string caption, System.Action tapped ) : CrossUI.Core
caption string
tapped System.Action
Résultat CrossUI.Core

GetActiveCell() public méthode

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

GetCell() public méthode

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

GetCellImpl() protected méthode

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
Résultat UITableViewCell

GetContainerTableView() public méthode

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

GetImmediateRootElement() public méthode

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

Matches() public méthode

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
Résultat bool

RemoveTag() protected static méthode

protected static RemoveTag ( UITableViewCell cell, int tag ) : void
cell UITableViewCell
tag int
Résultat void

Selected() public méthode

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. ///
Résultat void

Summary() public méthode

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
Résultat string

UpdateCaptionDisplay() protected méthode

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

UpdateCellDisplay() protected méthode

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
Résultat void