public class Watermark extends Band implements RootLevelBand
ANONYMOUS_BAND_PREFIX
ANONYMOUS_ELEMENT_PREFIX
Constructor and Description |
---|
Watermark()
Constructs a watermark band.
|
Watermark(boolean onFirstPage,
boolean onLastPage)
Constructs a page footer containing no elements.
|
Modifier and Type | Method and Description |
---|---|
static ElementDefaultStyleSheet |
getDefaultStyle()
Returns the default style-sheet for shape elements.
|
ElementStyleSheet |
getDefaultStyleSheet()
Returns the global stylesheet for the watermark bands.
|
SubReport |
getSubReport(int index)
Throws an IndexOutOfBoundsException as page-footer cannot have sub-reports.
|
int |
getSubReportCount()
Returns the number of subreports on this band.
|
SubReport[] |
getSubReports()
Returns an empty array, as page-footer cannot have subreports.
|
boolean |
isDisplayOnFirstPage()
Returns true if the header should be shown on page 1, and false otherwise.
|
boolean |
isDisplayOnLastPage()
Returns true if the header should be shown on the last page, and false otherwise.
|
boolean |
isSticky()
Returns true if the footer should be shown on all subreports.
|
void |
setDisplayOnFirstPage(boolean b)
Defines whether the header should be shown on the first page.
|
void |
setDisplayOnLastPage(boolean b)
Defines whether the header should be shown on the last page.
|
void |
setSticky(boolean b)
Defines whether the footer should be shown on all subreports.
|
addElement, addElement, addElements, clear, clone, derive, getElement, getElement, getElementArray, getElementCount, getLayout, isPagebreakAfterPrint, isPagebreakBeforePrint, removeElement, removeElement, setElementAt, setLayout, setPagebreakAfterPrint, setPagebreakBeforePrint, toString, unsafeGetElementArray
iterator, registerAsChild, unregisterAsChild, unregisterParent, validateLooping
copyAttributes, copyInto, derive, getAttribute, getAttributeExpression, getAttributeExpressionNames, getAttributeExpressionNamespaces, getAttributeExpressions, getAttributeNames, getAttributeNamespaces, getAttributes, getAttributeTyped, getChangeTracker, getChildElementByType, getChildElementsByName, getChildElementsByType, getComputedStyle, getContentBase, getDataSource, getDefinitionSource, getElementContext, getElementType, getElementTypeName, getFirstAttribute, getHRefTarget, getId, getMasterReport, getMetaData, getName, getObjectID, getParent, getParentSection, getReportDefinition, getStyle, getStyleExpression, getStyleExpressions, getTreeLock, isDynamicContent, isVisible, notifyElement, notifyNodeChildAdded, notifyNodeChildRemoved, notifyNodePropertiesChanged, notifyNodePropertiesChanged, notifyNodeStructureChanged, setAttribute, setAttribute, setAttributeExpression, setChangeTracker, setComputedStyle, setDataSource, setDynamicContent, setElementType, setHRefTarget, setId, setName, setParent, setStyleExpression, setVisible, updateChangedFlagInternal, updateInternalChangeFlag
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAttribute, getAttributeExpression, getAttributeExpressionNames, getAttributeExpressionNamespaces, getAttributeNames, getAttributeNamespaces, getAttributes, getAttributeTyped, getChangeTracker, getChildElementByType, getChildElementsByName, getChildElementsByType, getComputedStyle, getElementContext, getElementType, getFirstAttribute, getId, getMetaData, getName, getObjectID, getParentSection, getReportDefinition, getStyle, getStyleExpression, getStyleExpressions, getTreeLock, setAttribute, setAttribute, setAttributeExpression, setComputedStyle, setStyleExpression
forEach, spliterator
public Watermark()
public Watermark(boolean onFirstPage, boolean onLastPage)
onFirstPage
- defines, whether the page header will be printed on the first pageonLastPage
- defines, whether the page footer will be printed on the last page.public static ElementDefaultStyleSheet getDefaultStyle()
public ElementStyleSheet getDefaultStyleSheet()
getDefaultStyleSheet
in interface ReportElement
getDefaultStyleSheet
in class Band
public boolean isDisplayOnFirstPage()
public void setDisplayOnFirstPage(boolean b)
b
- a flag indicating whether or not the header is shown on the first page.public boolean isDisplayOnLastPage()
public void setDisplayOnLastPage(boolean b)
b
- a flag indicating whether or not the header is shown on the last page.public int getSubReportCount()
getSubReportCount
in interface RootLevelBand
public SubReport getSubReport(int index)
getSubReport
in interface RootLevelBand
index
- the index.public SubReport[] getSubReports()
getSubReports
in interface RootLevelBand
public boolean isSticky()
public void setSticky(boolean b)
b
- a flag indicating whether or not the footer is shown on the first page.Copyright © 2002–2017 Pentaho Corporation. All rights reserved.