/** * Defines the stylesheet property for the dynamic attribute. Calling this function with either parameter will * override any previously defined value for the dynamic attribute. The value can no longer be inherited from parent * stylesheets. * * @param dynamicContent * the new state of the dynamic flag. */ public void setDynamicContent( final boolean dynamicContent ) { getStyle().setBooleanStyleProperty( ElementStyleKeys.DYNAMIC_HEIGHT, dynamicContent ); }
/** * Defines whether the footer should be shown on all subreports. * * @param b * a flag indicating whether or not the footer is shown on the first page. */ public void setSticky( final boolean b ) { getStyle().setBooleanStyleProperty( BandStyleKeys.STICKY, b ); notifyNodePropertiesChanged(); }
/** * Defines whether the footer should be shown on all subreports. * * @param b * a flag indicating whether or not the footer is shown on the first page. */ public void setSticky( final boolean b ) { getStyle().setBooleanStyleProperty( BandStyleKeys.STICKY, b ); notifyNodePropertiesChanged(); }
/** * Defines whether the footer should be shown on all subreports. * * @param b * a flag indicating whether or not the footer is shown on the first page. */ public void setSticky( final boolean b ) { getStyle().setBooleanStyleProperty( BandStyleKeys.STICKY, b ); notifyNodePropertiesChanged(); } }
/** * Defines, whether the page layout manager should perform a pagebreak before this page is printed. This will have no * effect on empty pages or if the band is no root-level band. * * @param pagebreakBeforePrint * set to true, if to force a pagebreak before this band is printed, false otherwise */ public void setPagebreakBeforePrint( final boolean pagebreakBeforePrint ) { getStyle().setBooleanStyleProperty( BandStyleKeys.PAGEBREAK_BEFORE, pagebreakBeforePrint ); notifyNodePropertiesChanged(); }
/** * Defines whether the footer should be shown on all subreports. * * @param b * a flag indicating whether or not the footer is shown on the first page. */ public void setSticky( final boolean b ) { getStyle().setBooleanStyleProperty( BandStyleKeys.STICKY, b ); notifyNodePropertiesChanged(); }
/** * Defines, whether this group header should be repeated on new pages. * * @param repeat * true, if the header will be repeated, false otherwise */ public void setRepeat( final boolean repeat ) { getStyle().setBooleanStyleProperty( BandStyleKeys.REPEAT_HEADER, repeat ); notifyNodePropertiesChanged(); }
/** * Defines whether the header should be shown on the first page. * * @param b * a flag indicating whether or not the header is shown on the first page. */ public void setDisplayOnFirstPage( final boolean b ) { getStyle().setBooleanStyleProperty( BandStyleKeys.DISPLAY_ON_FIRSTPAGE, b ); notifyNodePropertiesChanged(); }
/** * Defines, whether this group header should be repeated on new pages. * * @param repeat * true, if the header will be repeated, false otherwise */ public void setRepeat( final boolean repeat ) { getStyle().setBooleanStyleProperty( BandStyleKeys.REPEAT_HEADER, repeat ); notifyNodePropertiesChanged(); }
/** * Defines whether the footer should be shown on all subreports. * * @param b * a flag indicating whether or not the footer is shown on the first page. */ public void setSticky( final boolean b ) { getStyle().setBooleanStyleProperty( BandStyleKeys.STICKY, b ); notifyNodePropertiesChanged(); }
/** * Defines whether the header should be shown on the first page. * * @param b * a flag indicating whether or not the header is shown on the first page. */ public void setDisplayOnFirstPage( final boolean b ) { getStyle().setBooleanStyleProperty( BandStyleKeys.DISPLAY_ON_FIRSTPAGE, b ); notifyNodePropertiesChanged(); }
/** * Defines whether the footer should be shown on all subreports. * * @param b * a flag indicating whether or not the footer is shown on the first page. */ public void setSticky( final boolean b ) { getStyle().setBooleanStyleProperty( BandStyleKeys.STICKY, b ); notifyNodePropertiesChanged(); }
/** * Defines whether the footer should be shown on the last page. * * @param b * a flag indicating whether or not the footer is shown on the first page. */ public void setDisplayOnLastPage( final boolean b ) { getStyle().setBooleanStyleProperty( BandStyleKeys.DISPLAY_ON_LASTPAGE, b ); notifyNodePropertiesChanged(); }
@Test public void testIsSticky() { CrosstabSummaryHeader header = new CrosstabSummaryHeader(); header.getStyle().setBooleanStyleProperty( BandStyleKeys.STICKY, true ); assertThat( header.isSticky(), is( equalTo( true ) ) ); }
@Test public void testIsRepeat() { CrosstabSummaryHeader header = new CrosstabSummaryHeader(); header.getStyle().setBooleanStyleProperty( BandStyleKeys.REPEAT_HEADER, true ); assertThat( header.isRepeat(), is( equalTo( true ) ) ); }
@Test public void testIsSticky() { DetailsHeader header = new DetailsHeader(); header.getStyle().setBooleanStyleProperty( BandStyleKeys.STICKY, true ); assertThat( header.isSticky(), is( equalTo( true ) ) ); }
@Test public void testIsSticky() { PageHeader header = new PageHeader(); header.getStyle().setBooleanStyleProperty( BandStyleKeys.STICKY, true ); assertThat( header.isSticky(), is( equalTo( true ) ) ); }
@Test public void testIsRepeat() { DetailsHeader header = new DetailsHeader(); header.getStyle().setBooleanStyleProperty( BandStyleKeys.REPEAT_HEADER, true ); assertThat( header.isRepeat(), is( equalTo( true ) ) ); }
@Test public void testIsRepeat() { DetailsFooter footer = new DetailsFooter(); footer.getStyle().setBooleanStyleProperty( BandStyleKeys.REPEAT_HEADER, true ); assertThat( footer.isRepeat(), is( equalTo( true ) ) ); }
public void testIsVisible() { Element elem = new Element(); elem.getStyle().setBooleanStyleProperty( ElementStyleKeys.VISIBLE, true ); assertEquals( true, elem.isVisible() ); }