public void BringToFront(jhuapl.util.IWidget widget) { int foundIndex = -1; for(int index = 0; index < m_ChildWidgets.Count; index++) { jhuapl.util.IWidget currentWidget = m_ChildWidgets[index] as jhuapl.util.IWidget; if(currentWidget != null) { if(currentWidget == widget) { foundIndex = index; break; } } } if(foundIndex > 0) { BringToFront(foundIndex); } }
new public void Remove(jhuapl.util.IWidget widget) { m_ChildWidgets.Remove(widget); }
new public void Add(jhuapl.util.IWidget widget) { m_ChildWidgets.Add(widget); widget.ParentWidget = this; }
new public void Remove(jhuapl.util.IWidget widget) { m_subNodes.Remove(widget); }
new public void Add(jhuapl.util.IWidget widget) { m_subNodes.Add(widget); widget.ParentWidget = this; }
public void Add(jhuapl.util.IWidget widget) { m_ChildWidgets.Add(widget); }
public void Insert(jhuapl.util.IWidget widget, int index) { if(index <= m_ChildWidgets.Count) { m_ChildWidgets.Insert(index, widget); } //probably want to throw an indexoutofrange type of exception }