/// <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); }
public void onHide(Element selectBoxList) { //selectBoxList.getColor().A = 255; //selectBoxList.addAction( sequence( fadeOut( 0.15f, Interpolation.fade ), removeActor() ) ); selectBoxList.remove(); }