@Test public void testSetFooter() { GroupFooter footer = new GroupFooter(); GroupFooter prevFooter = group.getFooter(); footer.setParent( group ); group.setFooter( footer ); assertThat( group.getFooter(), is( equalTo( prevFooter ) ) ); footer.setParent( null ); group.setFooter( footer ); assertThat( group.getFooter(), is( equalTo( footer ) ) ); }
public void setFooter( final GroupFooter footer ) { if ( footer == null ) { throw new NullPointerException( "The footer must not be null" ); } validateLooping( footer ); if ( unregisterParent( footer ) ) { return; } final Element element = this.footer; this.footer.setParent( null ); this.footer = footer; this.footer.setParent( this ); notifyNodeChildRemoved( element ); notifyNodeChildAdded( this.footer ); }
RelationalGroup extends Group { public void setFooter( final GroupFooter footer ) { if ( footer == null ) { throw new NullPointerException( "The footer must not be null" ); } validateLooping( footer ); if ( unregisterParent( footer ) ) { return; } final Element element = this.footer; this.footer.setParent( null ); this.footer = footer; this.footer.setParent( this ); notifyNodeChildRemoved( element ); notifyNodeChildAdded( this.footer ); } }
RelationalGroup extends Group { public void setFooter( final GroupFooter footer ) { if ( footer == null ) { throw new NullPointerException( "The footer must not be null" ); } validateLooping( footer ); if ( unregisterParent( footer ) ) { return; } final Element element = this.footer; this.footer.setParent( null ); this.footer = footer; this.footer.setParent( this ); notifyNodeChildRemoved( element ); notifyNodeChildAdded( this.footer ); } RelationalGroup(); }
RelationalGroup extends Group { public void setFooter( final GroupFooter footer ) { if ( footer == null ) { throw new NullPointerException( "The footer must not be null" ); } validateLooping( footer ); if ( unregisterParent( footer ) ) { return; } final Element element = this.footer; this.footer.setParent( null ); this.footer = footer; this.footer.setParent( this ); notifyNodeChildRemoved( element ); notifyNodeChildAdded( this.footer ); } RelationalGroup(); GroupHeader getHeader(); void setHeader( final GroupHeader header ); GroupFooter getFooter(); void setFooter( final GroupFooter footer ); void setFields( final List<String> c ); void clearFields(); int getElementCount(); void addField( final String name ); List<String> getFields(); void setFieldsArray( final String[] fields ); String[] getFieldsArray(); String toString(); void setBody( final GroupBody body ); boolean equals( final Object obj ); int hashCode(); boolean isGroupChange( final DataRow dataRow ); @Deprecated GroupDataBody findGroupDataBody(); RelationalGroup clone(); RelationalGroup derive( final boolean preserveElementInstanceIds ); Element getElement( final int index ); void setElementAt( final int index, final Element element ); List<SortConstraint> getSortingConstraint(); }
RelationalGroup extends Group { public void setFooter( final GroupFooter footer ) { if ( footer == null ) { throw new NullPointerException( "The footer must not be null" ); } validateLooping( footer ); if ( unregisterParent( footer ) ) { return; } final Element element = this.footer; this.footer.setParent( null ); this.footer = footer; this.footer.setParent( this ); notifyNodeChildRemoved( element ); notifyNodeChildAdded( this.footer ); } RelationalGroup(); GroupHeader getHeader(); void setHeader( final GroupHeader header ); GroupFooter getFooter(); void setFooter( final GroupFooter footer ); void setFields( final List<String> c ); void clearFields(); int getElementCount(); void addField( final String name ); List<String> getFields(); void setFieldsArray( final String[] fields ); String[] getFieldsArray(); String toString(); void setBody( final GroupBody body ); boolean equals( final Object obj ); int hashCode(); boolean isGroupChange( final DataRow dataRow ); @Deprecated GroupDataBody findGroupDataBody(); RelationalGroup clone(); RelationalGroup derive( final boolean preserveElementInstanceIds ); Element getElement( final int index ); void setElementAt( final int index, final Element element ); List<SortConstraint> getSortingConstraint();  }