@Test( expected = NullPointerException.class ) public void testSetFooterException() { CrosstabOtherGroup crosstab = new CrosstabOtherGroup(); crosstab.setFooter( null ); }
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 ); }
CrosstabOtherGroup 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 ); } }
CrosstabOtherGroup 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 ); } CrosstabOtherGroup();  CrosstabOtherGroup( final GroupBody body );  CrosstabOtherGroup( final CrosstabCellBody body );  CrosstabOtherGroup( final CrosstabColumnGroupBody body ); }
CrosstabOtherGroup 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 ); } CrosstabOtherGroup();  CrosstabOtherGroup( final GroupBody body );  CrosstabOtherGroup( final CrosstabCellBody body );  CrosstabOtherGroup( final CrosstabColumnGroupBody body ); GroupHeader getHeader(); void setHeader( final GroupHeader header ); GroupFooter getFooter(); void setFooter( final GroupFooter footer ); CrosstabOtherGroup clone(); CrosstabOtherGroup derive( final boolean preserveElementInstanceIds ); Element getElement( final int index ); int getElementCount(); void setElementAt( final int index, final Element element ); String getField(); void setField( final String field ); void setBody( final GroupBody body ); boolean isGroupChange( final DataRow dataRow ); List<SortConstraint> getSortingConstraint(); }
CrosstabOtherGroup 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 ); } CrosstabOtherGroup();  CrosstabOtherGroup( final GroupBody body );  CrosstabOtherGroup( final CrosstabCellBody body );  CrosstabOtherGroup( final CrosstabColumnGroupBody body ); GroupHeader getHeader(); void setHeader( final GroupHeader header ); GroupFooter getFooter(); void setFooter( final GroupFooter footer ); CrosstabOtherGroup clone(); CrosstabOtherGroup derive( final boolean preserveElementInstanceIds ); Element getElement( final int index ); int getElementCount(); void setElementAt( final int index, final Element element ); String getField(); void setField( final String field ); void setBody( final GroupBody body ); boolean isGroupChange( final DataRow dataRow ); List<SortConstraint> getSortingConstraint();  }