![]() |
Paradox Game Engine
v1.0.0 beta06
|
Sections contain individual Element instances that are rendered by MonoDroid.Dialog More...
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< Element > | GetEnumerator () |
![]() | |
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< Element > | Elements = 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] |
![]() | |
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... | |
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.
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
caption | The 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
caption | The caption to display (or null to not display a caption) |
footer | The 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.
void MonoDroid.Dialog.Section.Add | ( | Element | element | ) |
Adds a new child Element to the Section
element | An 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
elements | An 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.
views | An 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.
|
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.
Definition at line 372 of file Section.cs.
|
virtual |
Overriden my most derived classes, creates a view that creates a View with the contents for display
context | |
convertView | |
parent |
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
idx | The index where the elements are inserted |
anim | The animation to use |
newElements | A 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
start | Starting position |
count | Number of elements to remove from the section |
Definition at line 294 of file Section.cs.
References DirectX.count.
SectionAdapter MonoDroid.Dialog.Section.Adapter |
Definition at line 34 of file Section.cs.
Definition at line 30 of file Section.cs.
|
get |
Definition at line 126 of file Section.cs.
|
get |
Definition at line 353 of file Section.cs.
|
getset |
The section footer, as a string.
Definition at line 102 of file Section.cs.
|
getset |
The section's footer view.
Definition at line 120 of file Section.cs.
|
getset |
The section header, as a string
Definition at line 93 of file Section.cs.
|
getset |
The section's header view.
Definition at line 111 of file Section.cs.
|
getset |
Definition at line 35 of file Section.cs.
|
get |
Definition at line 131 of file Section.cs.