Class AbstractElementType
- java.lang.Object
-
- org.pentaho.reporting.engine.classic.core.filter.types.AbstractElementType
-
- All Implemented Interfaces:
Serializable
,Cloneable
,DataSource
,ElementType
- Direct Known Subclasses:
AbstractSectionType
,AutoLayoutBoxType
,ContentType
,DateFieldType
,EllipseType
,ExternalElementType
,HorizontalLineType
,LabelType
,LegacyType
,MessageType
,NumberFieldType
,RectangleType
,ResourceFieldType
,ResourceLabelType
,ResourceMessageType
,TextFieldType
,VerticalLineType
public abstract class AbstractElementType extends Object implements ElementType
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractElementType(String id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ElementType
clone()
Clones thisDataSource
.void
configureDesignTimeDefaults(ReportElement element, Locale locale)
Compute the design-time defaults that should be applied to an element after it was created by a design-tool.ReportElement
create()
Creates the element implementation.boolean
equals(Object o)
protected String
getId()
ElementMetaData
getMetaData()
Returns the element metadata for this element type.int
hashCode()
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.pentaho.reporting.engine.classic.core.filter.DataSource
getValue
-
Methods inherited from interface org.pentaho.reporting.engine.classic.core.metadata.ElementType
getDesignValue
-
-
-
-
Constructor Detail
-
AbstractElementType
protected AbstractElementType(String id)
-
-
Method Detail
-
getMetaData
public ElementMetaData getMetaData()
Description copied from interface:ElementType
Returns the element metadata for this element type.- Specified by:
getMetaData
in interfaceElementType
- Returns:
- the element meta-data.
-
configureDesignTimeDefaults
public void configureDesignTimeDefaults(ReportElement element, Locale locale)
Description copied from interface:ElementType
Compute the design-time defaults that should be applied to an element after it was created by a design-tool. Only declare explicit values. If you assume defaults when an attribute or style is undefined, then there is no need to set it here. Any value set here will be treated as user-defined value afterwards and will be explicitly stored in the XML files.- Specified by:
configureDesignTimeDefaults
in interfaceElementType
- Parameters:
element
- the element that should be configured.locale
- the locale.
-
create
public ReportElement create()
Description copied from interface:ElementType
Creates the element implementation. Return a newElement
for data-items,Band
for compound data items or the appropriate Element implementation for complex element types.- Specified by:
create
in interfaceElementType
- Returns:
- the new element instance.
-
clone
public ElementType clone()
Description copied from interface:DataSource
Clones thisDataSource
.- Specified by:
clone
in interfaceDataSource
- Overrides:
clone
in classObject
- Returns:
- the clone.
-
getId
protected String getId()
-
-