public void setElements ( List < ObjectProperty > elements ) { if ( elements == null ) { this . elements = null ; } else { if ( this . elements != null ) this . elements . clear ( ) ; for ( ObjectProperty o : elements ) addElement ( o ) ; } }
Sets the element list and updates the parent of each element . Replaces any existing elements .