/**
* Removes a child from this piece.
* @param index the index of the child
*/
public void remove( int index ){
MenuPiece piece = children.get( index );
listener.remove( piece, 0, piece.getItemCount() );
piece.removeListener( listener );
piece.setParent( null );
children.remove( index );
if( isBound() ){
piece.unbind();
}
}