| java.lang.Object org.jfree.report.structure.Node org.jfree.report.structure.Element
All known Subclasses: org.jfree.report.structure.ContentElement, org.jfree.report.structure.Section, org.jfree.report.modules.misc.autotable.AutoTableElement, org.jfree.report.modules.misc.autotable.AutoTableCellContent,
Element | abstract public class Element extends Node (Code) | | 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.
author: Thomas Morgner |
Constructor Summary | |
protected | Element() Constructs an element.
The element inherits the element's defined default ElementStyleSheet to
provide reasonable default values for common stylekeys. |
Method Summary | |
public void | addExpression(Expression function) Adds a function to the report's collection of expressions. | public Object | clone() | public Object | getAttribute(String name) | public Object | getAttribute(String namespace, String name) | public Expression | getAttributeExpression(String attr) Returns the expressions for the report. | public Expression | getAttributeExpression(String namespace, String attr) | public AttributeMap | getAttributeExpressionMap() | public Map | getAttributeExpressions(String namespace) | public AttributeMap | getAttributeMap() | public String[] | getAttributeNameSpaces() | public Map | getAttributes(String namespace) | public Expression | getDisplayCondition() | public Expression[] | getExpressions() Returns the expressions for the report. | public String | getId() | public Locale | getLocale() | protected Locale | getLocaleFromAttributes() | public String | getName() Returns the name of the Element. | public String | getNamespace() | public CSSStyleRule | getStyle() Returns this elements private stylesheet. | public Expression | getStyleExpression(String property) Returns the expressions for the report. | public Map | getStyleExpressions() | public String | getType() | public CSSConstant | getVisibility() | public boolean | isEnabled() Returns true, if the element is enabled. | public boolean | isVirtual() | public void | setAttribute(String name, Object value) | public void | setAttribute(String namespace, String name, Object value) | public void | setAttributeExpression(String attr, Expression function) | public void | setAttributeExpression(String namespace, String attr, Expression function) Adds a function to the report's collection of expressions. | public void | setDisplayCondition(Expression displayCondition) | public void | setEnabled(boolean enabled) Defines whether the element is enabled. | public void | setExpressions(Expression[] expressions) Sets the expressions for the report. | public void | setId(String id) | public void | setName(String name) Defines the name for this Element. | public void | setNamespace(String id) | public void | setStyleExpression(String property, Expression function) Adds a function to the report's collection of expressions. | public void | setType(String type) | public void | setVirtual(boolean virtual) | public void | setVisibility(CSSConstant v) |
NAMESPACE_ATTRIBUTE | final public static String NAMESPACE_ATTRIBUTE(Code) | | See XML-Namespaces for the idea of that one ...
|
NAME_ATTRIBUTE | final public static String NAME_ATTRIBUTE(Code) | | |
TYPE_ATTRIBUTE | final public static String TYPE_ATTRIBUTE(Code) | | The type corresponds (somewhat) to the tagname of HTML.
|
VIRTUAL_ATTRIBUTE | final public static String VIRTUAL_ATTRIBUTE(Code) | | |
Element | protected Element()(Code) | | Constructs an element.
The element inherits the element's defined default ElementStyleSheet to
provide reasonable default values for common stylekeys. When the element is
added to the band, the bands stylesheet is set as parent to the element's
stylesheet.
A datasource is assigned with this element is set to a default source,
which always returns null.
|
addExpression | public void addExpression(Expression function)(Code) | | Adds a function to the report's collection of expressions.
Parameters: function - the function. |
getAttributeExpression | public Expression getAttributeExpression(String attr)(Code) | | Returns the expressions for the report.
Parameters: attr - the expressions. |
getAttributeExpressionMap | public AttributeMap getAttributeExpressionMap()(Code) | | |
getAttributeExpressions | public Map getAttributeExpressions(String namespace)(Code) | | |
getAttributeMap | public AttributeMap getAttributeMap()(Code) | | |
getAttributeNameSpaces | public String[] getAttributeNameSpaces()(Code) | | |
getExpressions | public Expression[] getExpressions()(Code) | | Returns the expressions for the report.
the expressions. |
getLocaleFromAttributes | protected Locale getLocaleFromAttributes()(Code) | | |
getName | public String getName()(Code) | | Returns the name of the Element. The name of the Element is never null.
the name. |
getStyle | public CSSStyleRule getStyle()(Code) | | Returns this elements private stylesheet. This sheet can be used to
override the default values set in one of the parent-stylesheets.
the Element's stylesheet |
getStyleExpression | public Expression getStyleExpression(String property)(Code) | | Returns the expressions for the report.
Parameters: property - the expressions. |
getStyleExpressions | public Map getStyleExpressions()(Code) | | |
getVisibility | public CSSConstant getVisibility()(Code) | | |
isEnabled | public boolean isEnabled()(Code) | | Returns true, if the element is enabled.
true or false |
isVirtual | public boolean isVirtual()(Code) | | |
setAttributeExpression | public void setAttributeExpression(String namespace, String attr, Expression function)(Code) | | Adds a function to the report's collection of expressions.
Parameters: namespace - Parameters: attr - Parameters: function - the function. |
setDisplayCondition | public void setDisplayCondition(Expression displayCondition)(Code) | | |
setEnabled | public void setEnabled(boolean enabled)(Code) | | 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.
Parameters: enabled - |
setExpressions | public void setExpressions(Expression[] expressions)(Code) | | Sets the expressions for the report.
Parameters: expressions - the expressions (null not permitted). |
setName | public void setName(String name)(Code) | | 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.
Parameters: name - the name of this element |
setStyleExpression | public void setStyleExpression(String property, Expression function)(Code) | | Adds a function to the report's collection of expressions.
Parameters: function - the function. Parameters: property - |
setVirtual | public void setVirtual(boolean virtual)(Code) | | |
setVisibility | public void setVisibility(CSSConstant v)(Code) | | |
|
|