public class Section extends Element
ID_ATTRIBUTE, NAME_ATTRIBUTE, NAMESPACE_ATTRIBUTE, TYPE_ATTRIBUTE, VIRTUAL_ATTRIBUTE
Constructor and Description |
---|
Section()
Constructs a new band (initially empty).
|
Modifier and Type | Method and Description |
---|---|
void |
addNode(int position,
Node element)
Adds a report element to the band.
|
void |
addNode(Node element)
Adds a report element to the band.
|
void |
addNodes(java.util.Collection elements)
Adds a collection of elements to the band.
|
void |
addOperationAfter(FlowControlOperation op) |
void |
addOperationBefore(FlowControlOperation op) |
java.lang.Object |
clone() |
Element |
findFirstChild(java.lang.String uri,
java.lang.String tagName) |
Element |
getElementByName(java.lang.String name)
Returns the first element in the list that is known by the given name.
|
Node |
getNode(int index)
Returns the element stored add the given index.
|
Node[] |
getNodeArray()
Returns an array of the elements in the band.
|
int |
getNodeCount()
Returns the number of elements in this band.
|
java.util.List |
getNodes()
Deprecated.
use
getElementArray() instead. |
FlowControlOperation[] |
getOperationAfter() |
FlowControlOperation[] |
getOperationBefore() |
boolean |
isRepeat() |
void |
removeNode(Node e)
Removes an element from the band.
|
void |
setOperationAfter(FlowControlOperation[] ops) |
void |
setOperationBefore(FlowControlOperation[] before) |
void |
setRepeat(boolean repeat) |
java.lang.String |
toString()
Returns a string representation of the band and all the elements it
contains, useful mainly for debugging purposes.
|
addExpression, getAttribute, getAttribute, getAttributeExpression, getAttributeExpression, getAttributeExpressionMap, getAttributeExpressions, getAttributeMap, getDisplayCondition, getExpressions, getId, getLocale, getLocaleFromAttributes, getName, getNamespace, getStyle, getStyleExpression, getStyleExpressions, getType, getVisibility, isEnabled, isVirtual, setAttribute, setAttribute, setAttributeExpression, setAttributeExpression, setDisplayCondition, setEnabled, setExpressions, setId, setName, setNamespace, setStyleExpression, setType, setVirtual, setVisibility
getGroup, getParent, getReport, getRootReport, setParent, updateParent
public void addNode(Node element)
element
- the element that should be addedjava.lang.NullPointerException
- if the given element is nulljava.lang.IllegalArgumentException
- if the position is invalid, either
negative or greater than the number of
elements in this band or if the given
element is a parent of this element.public void addNode(int position, Node element)
position
- the position where to insert the elementelement
- the element that should be addedjava.lang.NullPointerException
- if the given element is nulljava.lang.IllegalArgumentException
- if the position is invalid, either
negative or greater than the number of
elements in this band or if the given
element is a parent of this element.public void addNodes(java.util.Collection elements)
elements
- the element collection.java.lang.NullPointerException
- if one of the given elements is nulljava.lang.IllegalArgumentException
- if one of the given element is a parent of
this element.public Element getElementByName(java.lang.String name)
name
- the element name.null
if
there is no such element.java.lang.NullPointerException
- if the given name is null.public void removeNode(Node e)
e
- the element to be removed.java.lang.NullPointerException
- if the given element is null.public java.util.List getNodes()
getElementArray()
instead.public int getNodeCount()
public Node[] getNodeArray()
public Node getNode(int index)
index
- the element position within this bandjava.lang.IndexOutOfBoundsException
- if the index is invalid.public java.lang.String toString()
toString
in class java.lang.Object
public FlowControlOperation[] getOperationBefore()
public FlowControlOperation[] getOperationAfter()
public void setOperationBefore(FlowControlOperation[] before)
public void setOperationAfter(FlowControlOperation[] ops)
public void addOperationAfter(FlowControlOperation op)
public void addOperationBefore(FlowControlOperation op)
public boolean isRepeat()
public void setRepeat(boolean repeat)
public Element findFirstChild(java.lang.String uri, java.lang.String tagName)