@Test( expected = NullPointerException.class ) public void testAddNullElement() { try { Band band = new Band(); band.addElement( 0, null ); fail( "should throw exception" ); } catch ( NullPointerException e ) { } }
public void addElement( final Element element ) { addElement( getElementCount(), element ); }
Band extends Section { public void addElement( final Element element ) { addElement( getElementCount(), element ); } }
Band extends Section { public void addElement( final Element element ) { addElement( getElementCount(), element ); } Band();  Band( final InstanceID id );  Band( final boolean pagebreakBefore, final boolean pagebreakAfter ); }
Band extends Section { public void addElement( final Element element ) { addElement( getElementCount(), element ); } Band();  Band( final InstanceID id );  Band( final boolean pagebreakBefore, final boolean pagebreakAfter ); ElementStyleSheet getDefaultStyleSheet(); void addElement( final Element element ); void addElement( final int position, final Element element ); void addElements( final Collection elements ); Element getElement( final String name ); void removeElement( final Element e ); void removeElement( int index ); void setElementAt( final int position, final Element element ); void clear(); int getElementCount(); Element[] getElementArray(); final Element[] unsafeGetElementArray(); Element getElement( final int index ); String toString(); Band clone(); Band derive( final boolean preserveElementInstanceIds ); boolean isPagebreakBeforePrint(); void setPagebreakBeforePrint( final boolean pagebreakBeforePrint ); boolean isPagebreakAfterPrint(); void setPagebreakAfterPrint( final boolean pagebreakAfterPrint ); void setLayout( final String layout ); String getLayout(); }
Band extends Section { public void addElement( final Element element ) { addElement( getElementCount(), element ); } Band();  Band( final InstanceID id );  Band( final boolean pagebreakBefore, final boolean pagebreakAfter ); ElementStyleSheet getDefaultStyleSheet(); void addElement( final Element element ); void addElement( final int position, final Element element ); void addElements( final Collection elements ); Element getElement( final String name ); void removeElement( final Element e ); void removeElement( int index ); void setElementAt( final int position, final Element element ); void clear(); int getElementCount(); Element[] getElementArray(); final Element[] unsafeGetElementArray(); Element getElement( final int index ); String toString(); Band clone(); Band derive( final boolean preserveElementInstanceIds ); boolean isPagebreakBeforePrint(); void setPagebreakBeforePrint( final boolean pagebreakBeforePrint ); boolean isPagebreakAfterPrint(); void setPagebreakAfterPrint( final boolean pagebreakAfterPrint ); void setLayout( final String layout ); String getLayout(); static final String ANONYMOUS_BAND_PREFIX; }