public interface ReportElement extends Cloneable, Serializable
void setAttributeExpression(String namespace, String name, Expression value)
null
clears the
expression and will preserve the attribute's static value.
Functions cannot be used as attribute-expressions as attribute- and style-expressions do not receive events and are
not guaranteed to be executed unless the element is processed.namespace
- the attribute's namespace.name
- the attribute's name.value
- the expression.Expression getAttributeExpression(String namespace, String name)
namespace
- the attribute's namespace.name
- the attribute's name.null
if the attribute has no expression assigned.String[] getAttributeExpressionNamespaces()
String[] getAttributeExpressionNames(String namespace)
namespace
- the namespace for which the attribute-names should be returned, never null.void setAttribute(String namespace, String name, Object value)
null
removes the attribute. Attribute values are not checked for type
safety.namespace
- the attribute's namespace.name
- the attribute name.value
- the attribute value, or null to remove the attribute.String[] getAttributeNamespaces()
ReportAttributeMap<Object> getAttributes()
ElementMetaData getMetaData()
ElementType getElementType()
Section getParentSection()
ElementStyleSheet getStyle()
ElementStyleSheet getDefaultStyleSheet()
ReportDefinition getReportDefinition()
void setStyleExpression(StyleKey property, Expression function)
Expression getStyleExpression(StyleKey property)
Map<StyleKey,Expression> getStyleExpressions()
Object getTreeLock()
String getName()
String getId()
InstanceID getObjectID()
ReportElement[] getChildElementsByType(ElementType type)
ReportElement getChildElementByType(ElementType type)
ReportElement[] getChildElementsByName(String name)
<T> T getElementContext(Class<T> contextType)
SimpleStyleSheet getComputedStyle()
void setComputedStyle(SimpleStyleSheet computedStyle)
long getChangeTracker()
Copyright © 2002–2017 Pentaho Corporation. All rights reserved.