public void setItemBand( final ItemBand itemBand ) { if ( itemBand == null ) { throw new NullPointerException( "The itemBand must not be null" ); } validateLooping( itemBand ); if ( unregisterParent( itemBand ) ) { return; } final ItemBand oldElement = this.itemBand; this.itemBand.setParent( null ); this.itemBand = itemBand; this.itemBand.setParent( this ); notifyNodeChildRemoved( oldElement ); notifyNodeChildAdded( this.itemBand ); }
public void setDetailsFooter( final DetailsFooter detailsFooter ) { if ( detailsFooter == null ) { throw new NullPointerException( "The detailsFooter must not be null" ); } validateLooping( detailsFooter ); if ( unregisterParent( detailsFooter ) ) { return; } final DetailsFooter oldElement = this.detailsFooter; this.detailsFooter.setParent( null ); this.detailsFooter = detailsFooter; this.detailsFooter.setParent( this ); notifyNodeChildRemoved( oldElement ); notifyNodeChildAdded( this.detailsFooter ); }
public void setNoDataBand( final NoDataBand noDataBand ) { if ( noDataBand == null ) { throw new NullPointerException( "The noDataBand must not be null" ); } validateLooping( noDataBand ); if ( unregisterParent( noDataBand ) ) { return; } final NoDataBand oldElement = this.noDataBand; this.noDataBand.setParent( null ); this.noDataBand = noDataBand; this.noDataBand.setParent( this ); notifyNodeChildRemoved( oldElement ); notifyNodeChildAdded( this.noDataBand ); }
public void setDetailsHeader( final DetailsHeader detailsHeader ) { if ( detailsHeader == null ) { throw new NullPointerException( "The detailsHeader must not be null" ); } validateLooping( detailsHeader ); if ( unregisterParent( detailsHeader ) ) { return; } final DetailsHeader oldElement = this.detailsHeader; this.detailsHeader.setParent( null ); this.detailsHeader = detailsHeader; this.detailsHeader.setParent( this ); notifyNodeChildRemoved( oldElement ); notifyNodeChildAdded( this.detailsHeader ); }
protected void removeElement( final Element element ) { if ( element == null ) { throw new NullPointerException(); } if ( element == itemBand ) { this.itemBand.setParent( null ); this.itemBand = new ItemBand(); this.itemBand.setParent( this ); notifyNodeChildRemoved( element ); notifyNodeChildAdded( this.itemBand ); } else if ( element == noDataBand ) { this.noDataBand.setParent( null ); this.noDataBand = new NoDataBand(); this.noDataBand.setParent( this ); notifyNodeChildRemoved( element ); notifyNodeChildAdded( this.noDataBand ); } else if ( element == detailsHeader ) { this.detailsHeader.setParent( null ); this.detailsHeader = new DetailsHeader(); this.detailsHeader.setParent( this ); notifyNodeChildRemoved( element ); notifyNodeChildAdded( this.detailsHeader ); } else if ( element == detailsFooter ) { this.detailsFooter.setParent( null ); this.detailsFooter = new DetailsFooter(); this.detailsFooter.setParent( this ); notifyNodeChildRemoved( element ); notifyNodeChildAdded( this.detailsFooter ); } }