C# Класс Cirrious.MvvmCross.Dialog.Touch.Dialog.Elements.Element

Base class for all elements in MonoTouch.Dialog
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
Parent Element

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
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

Описание методов

ActOnCurrentAttachedCell() защищенный Метод

Act on the current attached cell
protected ActOnCurrentAttachedCell ( Action updateAction ) : void
updateAction Action
Результат void

Deselected() публичный Метод

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. ///
Результат void

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

Dispose() защищенный Метод

protected Dispose ( bool disposing ) : void
disposing bool
Результат void

Element() публичный Метод

Initializes the element with the given caption.
public Element ( string caption ) : System
caption string /// The caption. ///
Результат System

Element() публичный Метод

public Element ( string caption, NSAction tapped ) : System
caption string
tapped NSAction
Результат System

GetActiveCell() публичный Метод

Returns the currently active UITableViewCell for this element, or null if the element is not currently visible
public GetActiveCell ( ) : UITableViewCell
Результат UITableViewCell

GetCell() публичный Метод

Gets a UITableViewCell for this element. Must not be overridden - override GetCellImpl instead
public GetCell ( UITableView tv ) : UITableViewCell
tv UITableView
Результат UITableViewCell

GetCellImpl() защищенный Метод

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
Результат UITableViewCell

GetContainerTableView() публичный Метод

Returns the UITableView associated with this element, or null if this cell is not currently attached to a UITableView
public GetContainerTableView ( ) : UITableView
Результат UITableView

GetImmediateRootElement() публичный Метод

If the cell is attached will return the immediate RootElement
public GetImmediateRootElement ( ) : RootElement
Результат RootElement

Matches() публичный Метод

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
Результат bool

RemoveTag() статический защищенный Метод

static protected RemoveTag ( UITableViewCell cell, int tag ) : void
cell UITableViewCell
tag int
Результат void

Selected() публичный Метод

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. ///
Результат void

Summary() публичный Метод

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
Результат string

UpdateCaptionDisplay() защищенный Метод

Override this method if you want some other action to be taken when the caption changes
protected UpdateCaptionDisplay ( UITableViewCell cell ) : void
cell UITableViewCell
Результат void

UpdateCellDisplay() защищенный Метод

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
Результат void

Описание свойств

Parent публичное свойство

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
Результат Element