7 namespace MonoDroid.Dialog
9 public abstract class Element : Java.Lang.Object, IDisposable
22 public Element(
string caption,
int layoutId)
31 public string Caption {
get; set; }
33 public int LayoutId {
get;
private set; }
43 public Action Click {
get; set; }
48 public Action LongClick {
get; set; }
53 public Object Tag {
get; set; }
60 protected virtual void Dispose(
bool disposing) { }
81 public virtual View
GetView(Context context, View convertView, ViewGroup parent)
83 var view = LayoutId == 0 ?
new View(context) : null;
91 return Caption != null && Caption.IndexOf(text, StringComparison.CurrentCultureIgnoreCase) != -1;
97 while (element.
Parent != null)
98 element = element.Parent;
101 return rootElement == null ? null : rootElement.Context;
virtual bool Matches(string text)
virtual void Dispose(bool disposing)
Element(string caption, int layoutId)
virtual string Summary()
Returns a summary of the value represented by this object, suitable for rendering as the result of a ...
virtual 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 ...
Element(string caption)
Initializes the element with the given caption.