Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
MonoDroid.Dialog.Section Class Reference

Sections contain individual Element instances that are rendered by MonoDroid.Dialog More...

Inheritance diagram for MonoDroid.Dialog.Section:
MonoDroid.Dialog.Element IEnumerable< Element > Android.NUnitLite.UI.FormattedSection

Public Member Functions

 Section ()
 Constructs a Section without header or footers. More...
 
 Section (string caption)
 Constructs a Section with the specified header More...
 
 Section (string caption, string footer)
 Constructs a Section with a header and a footer More...
 
 Section (View header)
 
 Section (View header, View footer)
 
void Add (Element element)
 Adds a new child Element to the Section More...
 
int Add (IEnumerable< Element > elements)
 Add version that can be used with LINQ More...
 
void Add (View view)
 Use to add a View to a section, it makes the section opaque, to get a transparent one, you must manually call ViewElement More...
 
void Add (IEnumerable< View > views)
 Adds the Views to the section. More...
 
void Insert (int idx, params Element[] newElements)
 Inserts a series of elements into the Section using the specified animation More...
 
int Insert (int idx, IEnumerable< Element > newElements)
 
void Remove (Element e)
 
void Remove (int idx)
 
void RemoveRange (int start, int count)
 Removes a range of elements from the Section More...
 
void Clear ()
 
int GetElementViewType (Element e)
 
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...
 
IEnumerator< ElementGetEnumerator ()
 
- 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 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...
 
virtual void Selected ()
 
virtual bool Matches (string text)
 
Context GetContext ()
 

Public Attributes

List< ElementElements = new List<Element>()
 
SectionAdapter Adapter
 

Protected Member Functions

override void Dispose (bool disposing)
 

Properties

int StartIndex [get, set]
 
string Header [get, set]
 The section header, as a string More...
 
string Footer [get, set]
 The section footer, as a string. More...
 
View HeaderView [get, set]
 The section's header view. More...
 
View FooterView [get, set]
 The section's footer view. More...
 
int Count [get]
 
Element this[int idx] [get]
 
int ElementViewTypeCount [get]
 
- 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

Sections contain individual Element instances that are rendered by MonoDroid.Dialog

Sections are used to group elements in the screen and they are the only valid direct child of the RootElement. Sections can contain any of the standard elements, including new RootElements.

RootElements embedded in a section are used to navigate to a new deeper level.

You can assign a header and a footer either as strings (Header and Footer) properties, or as Views to be shown (HeaderView and FooterView). Internally this uses the same storage, so you can only show one or the other.

Definition at line 28 of file Section.cs.

Constructor & Destructor Documentation

MonoDroid.Dialog.Section.Section ( )

Constructs a Section without header or footers.

Definition at line 43 of file Section.cs.

MonoDroid.Dialog.Section.Section ( string  caption)

Constructs a Section with the specified header

Parameters
captionThe header to display

Definition at line 55 of file Section.cs.

MonoDroid.Dialog.Section.Section ( string  caption,
string  footer 
)

Constructs a Section with a header and a footer

Parameters
captionThe caption to display (or null to not display a caption)
footerThe footer to display.

Definition at line 70 of file Section.cs.

MonoDroid.Dialog.Section.Section ( View  header)

Definition at line 76 of file Section.cs.

MonoDroid.Dialog.Section.Section ( View  header,
View  footer 
)

Definition at line 82 of file Section.cs.

Member Function Documentation

void MonoDroid.Dialog.Section.Add ( Element  element)

Adds a new child Element to the Section

Parameters
elementAn element to add to the section.

Definition at line 141 of file Section.cs.

int MonoDroid.Dialog.Section.Add ( IEnumerable< Element elements)

Add version that can be used with LINQ

Parameters
elementsAn enumerable list that can be produced by something like: from x in ... select (Element) new MyElement (...)

Definition at line 165 of file Section.cs.

References DirectX.count.

void MonoDroid.Dialog.Section.Add ( View  view)

Use to add a View to a section, it makes the section opaque, to get a transparent one, you must manually call ViewElement

Definition at line 179 of file Section.cs.

void MonoDroid.Dialog.Section.Add ( IEnumerable< View >  views)

Adds the Views to the section.

Parameters
viewsAn enumarable list that can be produced by something like: from x in ... select (View) new UIFoo ();

Definition at line 193 of file Section.cs.

void MonoDroid.Dialog.Section.Clear ( )

Definition at line 318 of file Section.cs.

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

Reimplemented from MonoDroid.Dialog.Element.

Definition at line 329 of file Section.cs.

int MonoDroid.Dialog.Section.GetElementViewType ( Element  e)

Definition at line 339 of file Section.cs.

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

Enumerator to get all the elements in the Section.

Returns
A IEnumerator{T}

Definition at line 372 of file Section.cs.

override View MonoDroid.Dialog.Section.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 357 of file Section.cs.

void MonoDroid.Dialog.Section.Insert ( int  idx,
params Element[]  newElements 
)

Inserts a series of elements into the Section using the specified animation

Parameters
idxThe index where the elements are inserted
animThe animation to use
newElementsA series of elements.

Definition at line 211 of file Section.cs.

int MonoDroid.Dialog.Section.Insert ( int  idx,
IEnumerable< Element newElements 
)

Definition at line 229 of file Section.cs.

References DirectX.count.

void MonoDroid.Dialog.Section.Remove ( Element  e)

Definition at line 265 of file Section.cs.

void MonoDroid.Dialog.Section.Remove ( int  idx)

Definition at line 280 of file Section.cs.

void MonoDroid.Dialog.Section.RemoveRange ( int  start,
int  count 
)

Removes a range of elements from the Section

Parameters
startStarting position
countNumber of elements to remove from the section

Definition at line 294 of file Section.cs.

References DirectX.count.

Member Data Documentation

SectionAdapter MonoDroid.Dialog.Section.Adapter

Definition at line 34 of file Section.cs.

List<Element> MonoDroid.Dialog.Section.Elements = new List<Element>()

Definition at line 30 of file Section.cs.

Property Documentation

int MonoDroid.Dialog.Section.Count
get

Definition at line 126 of file Section.cs.

int MonoDroid.Dialog.Section.ElementViewTypeCount
get

Definition at line 353 of file Section.cs.

string MonoDroid.Dialog.Section.Footer
getset

The section footer, as a string.

Definition at line 102 of file Section.cs.

View MonoDroid.Dialog.Section.FooterView
getset

The section's footer view.

Definition at line 120 of file Section.cs.

string MonoDroid.Dialog.Section.Header
getset

The section header, as a string

Definition at line 93 of file Section.cs.

View MonoDroid.Dialog.Section.HeaderView
getset

The section's header view.

Definition at line 111 of file Section.cs.

int MonoDroid.Dialog.Section.StartIndex
getset

Definition at line 35 of file Section.cs.

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

Definition at line 131 of file Section.cs.


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