Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
MonoDroid.Dialog.RootElement Class Reference
Inheritance diagram for MonoDroid.Dialog.RootElement:
MonoDroid.Dialog.Element IEnumerable< Section > IDialogInterfaceOnClickListener

Public Member Functions

 RootElement (string caption)
 Initializes a RootSection with a caption More...
 
 RootElement (string caption, Func< RootElement, View > createOnSelected)
 Initializes a RootSection with a caption and a callback that will create the nested UIViewController that is activated when the user taps on the element. More...
 
 RootElement (string caption, int section, int element)
 Initializes a RootElement with a caption with a summary fetched from the specified section and leement More...
 
 RootElement (string caption, Group group)
 Initializes a RootElement that renders the summary based on the radio settings of the contained elements. More...
 
override string Summary ()
 Returns a summary of the value represented by this object, suitable for rendering as the result of a RootElement with child objects. More...
 
void Add (Section section)
 Adds a new section to this RootElement More...
 
void Add (IEnumerable< Section > sections)
 
void Insert (int idx, params Section[] newSections)
 Inserts a new section into the RootElement More...
 
void RemoveAt (int idx)
 Removes a section at a specified location More...
 
void Remove (Section s)
 
void Clear ()
 
override View GetView (Context context, View convertView, ViewGroup parent)
 Overriden my most derived classes, creates a view that creates a View with the contents for display More...
 
void SelectRadio ()
 
IEnumerator< SectionGetEnumerator ()
 Enumerator that returns all the sections in the RootElement. More...
 
- Public Member Functions inherited from MonoDroid.Dialog.Element
 Element (string caption)
 Initializes the element with the given caption. More...
 
 Element (string caption, int layoutId)
 
void Dispose ()
 
virtual void Selected ()
 
virtual bool Matches (string text)
 
Context GetContext ()
 

Public Attributes

bool UnevenRows
 
Func< RootElement, View > _createOnSelected
 

Protected Member Functions

override void Dispose (bool disposing)
 

Properties

Context Context [get, set]
 Single save point for a context, elements can get this context via GetContext() for navigation operations More...
 
int Count [get]
 
Section this[int idx] [get]
 
int RadioSelected [get, set]
 The currently selected Radio item in the whole Root. More...
 
- Properties inherited from MonoDroid.Dialog.Element
string Caption [get, set]
 The caption to display for this given element More...
 
int LayoutId [get, set]
 
Element Parent [get, set]
 
Action Click [get, set]
 Override for click the click event More...
 
Action LongClick [get, set]
 Override for long click events, some elements use this for action More...
 
Object Tag [get, set]
 An Object that contains data about the element. The default is null. More...
 

Detailed Description

Definition at line 13 of file RootElement.cs.

Constructor & Destructor Documentation

MonoDroid.Dialog.RootElement.RootElement ( string  caption)

Initializes a RootSection with a caption

Parameters
captionThe caption to render.

Definition at line 29 of file RootElement.cs.

MonoDroid.Dialog.RootElement.RootElement ( string  caption,
Func< RootElement, View >  createOnSelected 
)

Initializes a RootSection with a caption and a callback that will create the nested UIViewController that is activated when the user taps on the element.

Parameters
captionThe caption to render.

Definition at line 44 of file RootElement.cs.

MonoDroid.Dialog.RootElement.RootElement ( string  caption,
int  section,
int  element 
)

Initializes a RootElement with a caption with a summary fetched from the specified section and leement

Parameters
captionThe caption to render cref="System.String"/>
sectionThe section that contains the element with the summary.
elementThe element index inside the section that contains the summary for this RootSection.

Definition at line 64 of file RootElement.cs.

MonoDroid.Dialog.RootElement.RootElement ( string  caption,
Group  group 
)

Initializes a RootElement that renders the summary based on the radio settings of the contained elements.

Parameters
captionThe caption to ender
groupThe group that contains the checkbox or radio information. This is used to display the summary information when a RootElement is rendered inside a section.

Definition at line 81 of file RootElement.cs.

Member Function Documentation

void MonoDroid.Dialog.RootElement.Add ( Section  section)

Adds a new section to this RootElement

Parameters
sectionThe section to add, if the root is visible, the section is inserted with no animation

Definition at line 158 of file RootElement.cs.

void MonoDroid.Dialog.RootElement.Add ( IEnumerable< Section sections)

Definition at line 175 of file RootElement.cs.

void MonoDroid.Dialog.RootElement.Clear ( )

Definition at line 241 of file RootElement.cs.

override void MonoDroid.Dialog.RootElement.Dispose ( bool  disposing)
protectedvirtual

Reimplemented from MonoDroid.Dialog.Element.

Definition at line 248 of file RootElement.cs.

IEnumerator<Section> MonoDroid.Dialog.RootElement.GetEnumerator ( )

Enumerator that returns all the sections in the RootElement.

Returns
A IEnumerator

Definition at line 401 of file RootElement.cs.

override View MonoDroid.Dialog.RootElement.GetView ( Context  context,
View  convertView,
ViewGroup  parent 
)
virtual

Overriden my most derived classes, creates a view that creates a View with the contents for display

Parameters
context
convertView
parent
Returns

Reimplemented from MonoDroid.Dialog.Element.

Definition at line 306 of file RootElement.cs.

References DirectX.count.

void MonoDroid.Dialog.RootElement.Insert ( int  idx,
params Section[]  newSections 
)

Inserts a new section into the RootElement

Parameters
idxThe index where the section is added System.Int32
newSectionsA Section[] list of sections to insert

This inserts the specified list of sections (a params argument) into the root using the specified animation.

Definition at line 196 of file RootElement.cs.

References s().

void MonoDroid.Dialog.RootElement.Remove ( Section  s)

Definition at line 229 of file RootElement.cs.

References s().

void MonoDroid.Dialog.RootElement.RemoveAt ( int  idx)

Removes a section at a specified location

Definition at line 219 of file RootElement.cs.

void MonoDroid.Dialog.RootElement.SelectRadio ( )

Definition at line 364 of file RootElement.cs.

override string MonoDroid.Dialog.RootElement.Summary ( )
virtual

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

Returns
The return value must be a short description of the value.

Reimplemented from MonoDroid.Dialog.Element.

Definition at line 138 of file RootElement.cs.

Member Data Documentation

Func<RootElement, View> MonoDroid.Dialog.RootElement._createOnSelected

Definition at line 21 of file RootElement.cs.

bool MonoDroid.Dialog.RootElement.UnevenRows

Definition at line 20 of file RootElement.cs.

Property Documentation

Context MonoDroid.Dialog.RootElement.Context
getset

Single save point for a context, elements can get this context via GetContext() for navigation operations

Definition at line 90 of file RootElement.cs.

int MonoDroid.Dialog.RootElement.Count
get

Definition at line 95 of file RootElement.cs.

int MonoDroid.Dialog.RootElement.RadioSelected
getset

The currently selected Radio item in the whole Root.

Definition at line 264 of file RootElement.cs.

Section MonoDroid.Dialog.RootElement.this[int idx]
get

Definition at line 103 of file RootElement.cs.


The documentation for this class was generated from the following file: