Ejemplo n.º 1
0
		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);
			}	
		}
Ejemplo n.º 2
0
		new public void Remove(jhuapl.util.IWidget widget)
		{
			m_ChildWidgets.Remove(widget);
		}
Ejemplo n.º 3
0
		new public void Add(jhuapl.util.IWidget widget)
		{
			m_ChildWidgets.Add(widget);
			widget.ParentWidget = this;
		}		
Ejemplo n.º 4
0
		new public void Remove(jhuapl.util.IWidget widget)
		{
			m_subNodes.Remove(widget);
		}
Ejemplo n.º 5
0
		new public void Add(jhuapl.util.IWidget widget)
		{
			m_subNodes.Add(widget);
			widget.ParentWidget = this;
		}
Ejemplo n.º 6
0
		public void Add(jhuapl.util.IWidget widget)
		{
			m_ChildWidgets.Add(widget);
		}
Ejemplo n.º 7
0
		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
		}