An element is a node that can have attributes. The 'id' and the 'name'
attribute is defined for all elements.
Both the name and the id attribute may be null.
Properties in the 'http://jfreereport.sourceforge.net/namespaces/engine/flow'
namespace and in the 'http://jfreereport.sourceforge.net/namespaces/engine/compatibility'
namespace are considered internal. You should only touch them, if you really
know what you are doing.
addExpression
public void addExpression(Expression function)
Adds a function to the report's collection of expressions.
clone
public Object clone()
throws CloneNotSupportedException
- clone in interface Node
getAttribute
public Object getAttribute(String namespace,
String name)
getId
public String getId()
getName
public String getName()
Returns the name of the Element. The name of the Element is never null.
getStyle
public CSSStyleRule getStyle()
Returns this elements private stylesheet. This sheet can be used to
override the default values set in one of the parent-stylesheets.
setAttribute
public void setAttribute(String name,
Object value)
setAttribute
public void setAttribute(String namespace,
String name,
Object value)
setAttributeExpression
public void setAttributeExpression(String namespace,
String attr,
Expression function)
Adds a function to the report's collection of expressions.
namespace
- attr
- function
- the function.
setEnabled
public void setEnabled(boolean enabled)
Defines whether the element is enabled. Disabled elements will be fully
ignored by the report processor. This is a design time property to exclude
elements from the processing without actually having to deal with the other
complex properties.
setExpressions
public void setExpressions(Expression[] expressions)
Sets the expressions for the report.
expressions
- the expressions (null
not permitted).
setId
public void setId(String id)
setName
public void setName(String name)
Defines the name for this Element. The name must not be empty, or a
NullPointerException is thrown.
Names can be used to lookup an element within a band. There is no
requirement for element names to be unique.
name
- the name of this element
setStyleExpression
public void setStyleExpression(String property,
Expression function)
Adds a function to the report's collection of expressions.
property
- function
- the function.
setType
public void setType(String type)