remove() public method

Removes this element from its parent, if it has a parent
public remove ( ) : bool
return bool
Esempio n. 1
0
 /// <summary>
 /// Sets the element in this cell and adds the element to the cell's table. If null, removes any current element.
 /// </summary>
 /// <returns>The element.</returns>
 /// <param name="newelement">New element.</param>
 public Cell setElement(Element newElement)
 {
     if (element != newElement)
     {
         if (element != null)
         {
             element.remove();
         }
         element = newElement;
         if (newElement != null)
         {
             table.addElement(newElement);
         }
     }
     return(this);
 }
Esempio n. 2
0
 public void onHide(Element selectBoxList)
 {
     //selectBoxList.getColor().A = 255;
     //selectBoxList.addAction( sequence( fadeOut( 0.15f, Interpolation.fade ), removeActor() ) );
     selectBoxList.remove();
 }