/** * Returns true if the footer should be shown on all subreports. * * @return true or false. */ public boolean isSticky() { return getStyle().getBooleanStyleProperty( BandStyleKeys.STICKY, false ); }
/** * Returns true if the footer should be shown on page 1, and false otherwise. * * @return true or false. */ public boolean isDisplayOnFirstPage() { return getStyle().getBooleanStyleProperty( BandStyleKeys.DISPLAY_ON_FIRSTPAGE, false ); }
/** * Checks whether this group header should be repeated on new pages. * * @return true, if the header will be repeated, false otherwise */ public boolean isRepeat() { return getStyle().getBooleanStyleProperty( BandStyleKeys.REPEAT_HEADER ); }
/** * Returns true if the header should be shown on the last page, and false otherwise. * * @return true or false. */ public boolean isDisplayOnLastPage() { return getStyle().getBooleanStyleProperty( BandStyleKeys.DISPLAY_ON_LASTPAGE ); }
/** * Returns true if the header should be shown on the last page, and false otherwise. * * @return true or false. */ public boolean isDisplayOnLastPage() { return getStyle().getBooleanStyleProperty( BandStyleKeys.DISPLAY_ON_LASTPAGE ); }
/** * Returns true if the footer should be shown on all subreports. * * @return true or false. */ public boolean isSticky() { return getStyle().getBooleanStyleProperty( BandStyleKeys.STICKY, false ); }
/** * Checks whether this group header should be repeated on new pages. * * @return true, if the header will be repeated, false otherwise */ public boolean isRepeat() { return getStyle().getBooleanStyleProperty( BandStyleKeys.REPEAT_HEADER ); }
/** * Checks whether this group header should be repeated on new pages. * * @return true, if the header will be repeated, false otherwise */ public boolean isRepeat() { return getStyle().getBooleanStyleProperty( BandStyleKeys.REPEAT_HEADER ); }
/** * Returns true if the footer should be shown on all subreports. * * @return true or false. */ public boolean isSticky() { return getStyle().getBooleanStyleProperty( BandStyleKeys.STICKY, false ); }
/** * Returns, 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. * * @return true, if to force a pagebreak before this band is printed, false otherwise */ public boolean isPagebreakBeforePrint() { return getStyle().getBooleanStyleProperty( BandStyleKeys.PAGEBREAK_BEFORE ); }
/** * Defines whether this Element should be painted. The detailed implementation is up to the outputtarget. * * @return the current visiblity state. */ public boolean isVisible() { return getStyle().getBooleanStyleProperty( ElementStyleKeys.VISIBLE, true ); }
/** * Checks whether the layout of this element is dynamic and adjusts to the element's printable content. If set to * false, the element's minimum-size will be also used as maximum size. * * @return true, if the Element's layout is dynamic, false otherwise. */ public boolean isDynamicContent() { return getStyle().getBooleanStyleProperty( ElementStyleKeys.DYNAMIC_HEIGHT ); }
@Test public void testCreationHeader() { DetailsHeader header = new DetailsHeader(); assertThat( header.getElementType(), is( instanceOf( DetailsHeaderType.class ) ) ); assertThat( header.getStyle().getBooleanStyleProperty( ElementStyleKeys.AVOID_PAGEBREAK_INSIDE ), is( equalTo( true ) ) ); }
@Test public void testCreation() { DetailsFooter footer = new DetailsFooter(); assertThat( footer.getElementType(), is( instanceOf( DetailsFooterType.class ) ) ); assertThat( footer.getStyle().getBooleanStyleProperty( ElementStyleKeys.AVOID_PAGEBREAK_INSIDE ), is( equalTo( true ) ) ); }
@Test public void testSetSticky() { DetailsFooter footer = new DetailsFooter(); footer.setSticky( true ); boolean result = footer.getStyle().getBooleanStyleProperty( BandStyleKeys.STICKY ); assertThat( result, is( equalTo( true ) ) ); }
@Test public void testSetSticky() { Watermark watermark = new Watermark(); watermark.setSticky( true ); boolean result = watermark.getStyle().getBooleanStyleProperty( BandStyleKeys.STICKY ); assertThat( result, is( equalTo( true ) ) ); }
@Test public void testSetSticky() { PageHeader header = new PageHeader(); header.setSticky( true ); boolean result = header.getStyle().getBooleanStyleProperty( BandStyleKeys.STICKY ); assertThat( result, is( equalTo( true ) ) ); }
@Test public void testSetRepeat() { DetailsFooter footer = new DetailsFooter(); footer.setRepeat( true ); boolean result = footer.getStyle().getBooleanStyleProperty( BandStyleKeys.REPEAT_HEADER ); assertThat( result, is( equalTo( true ) ) ); }
@Test public void testSetRepeat() { CrosstabSummaryHeader header = new CrosstabSummaryHeader(); header.setRepeat( true ); boolean result = header.getStyle().getBooleanStyleProperty( BandStyleKeys.REPEAT_HEADER ); assertThat( result, is( equalTo( true ) ) ); }
public void testSetDynamicContent() { Element elem = new Element(); elem.setDynamicContent( true ); assertEquals( true, elem.getStyle().getBooleanStyleProperty( ElementStyleKeys.DYNAMIC_HEIGHT ) ); }