|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ReportElement
A structural layout element. ReportElements hold style and attributes and allow to establish references that survive cloning via an ID object.
Method Summary | |
---|---|
Object |
getAttribute(String namespace,
String name)
|
Expression |
getAttributeExpression(String namespace,
String name)
Returns the attribute expression for the given attribute identified by its namespace and attribute name. |
String[] |
getAttributeExpressionNames(String namespace)
Returns the names of all attributes for the given namespace that have attribute-expressions assigned. |
String[] |
getAttributeExpressionNamespaces()
Returns the namespaces of all attributes that have attribute-expressions assigned. |
String[] |
getAttributeNames(String name)
|
String[] |
getAttributeNamespaces()
|
ReportAttributeMap |
getAttributes()
|
String |
getId()
|
ElementMetaData |
getMetaData()
|
String |
getName()
|
InstanceID |
getObjectID()
|
Section |
getParentSection()
|
ReportDefinition |
getReportDefinition()
|
ElementStyleSheet |
getStyle()
|
Expression |
getStyleExpression(StyleKey property)
|
Map |
getStyleExpressions()
|
Object |
getTreeLock()
|
void |
setAttribute(String namespace,
String name,
Object value)
Defines a attribute's static value. |
void |
setAttributeExpression(String namespace,
String name,
Expression value)
Assigns a new attribute expression for the given attribute. |
void |
setStyleExpression(StyleKey property,
Expression function)
|
Method Detail |
---|
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.Object getAttribute(String namespace, String name)
String[] getAttributeNamespaces()
String[] getAttributeNames(String name)
ReportAttributeMap getAttributes()
ElementMetaData getMetaData()
Section getParentSection()
ElementStyleSheet getStyle()
ReportDefinition getReportDefinition()
void setStyleExpression(StyleKey property, Expression function)
Expression getStyleExpression(StyleKey property)
Map getStyleExpressions()
Object getTreeLock()
String getName()
String getId()
InstanceID getObjectID()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |