Class SimpleElementFactory
java.lang.Object
org.eclipse.birt.report.model.api.impl.SimpleElementFactory
- All Implemented Interfaces:
ISimpleElementFactory
The factory class to create scriptable objects.
-
Field Summary
Fields inherited from interface org.eclipse.birt.report.model.api.simpleapi.ISimpleElementFactory
MULTI_ROW_ITEM, SIMPLE_ROW_ITEM
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreate the action structure.createAction
(ActionHandle action, ReportItemHandle handle) Creates the action structure.CreateIDataBinding
createDataBinding
(ComputedColumnHandle columnHandle) Creates the data biinding structure.createDataBinding
(ComputedColumn column) Creates the data biinding structure.createDataSet
(DataSetHandle handle) Creates the IDataSet instance.createDataSource
(DataSourceHandle handle) Creates the IDataSource instance.CreatesIExpression
instance.CreateIFilterCondition
createFilterCondition
(FilterCondition condition) Creates the IFilterCondition instance.Creates the IFilterCondition instance.CreatesIFilterConditionElement
instance.CreateIHideRule
instancecreateHideRule
(HideRule rule) CreateIHideRule
instancecreateHideRule
(HideRuleHandle handle) CreateIHideRule
instanceCreateIHighlightRule
instancecreateHighlightRule
(HighlightRule highlightRule) CreateIHighlightRule
instanceCreateIHighlightRule
instanceCreates the IResultSetColumn instance.createResultSetColumn
(ResultSetColumnHandle columnHandle) Creates the IResultSetColumn instance.CreateISortCondition
createSortCondition
(SortKey sort) Creates the sort structure.createSortCondition
(SortKeyHandle sortHandle) Creates the sort structure.createSortElement
(SortElementHandle handle) CreateISortElement
instance.createStyle
(StyleHandle style) CreateIStyle
instancegetElement
(DesignElementHandle handle) Creates the IDesignElement instance.wrapExtensionElement
(ExtendedItemHandle handle, int type) Creates the scriptable object for the corresponding element handles.
-
Constructor Details
-
SimpleElementFactory
public SimpleElementFactory()
-
-
Method Details
-
wrapExtensionElement
Description copied from interface:ISimpleElementFactory
Creates the scriptable object for the corresponding element handles.- Specified by:
wrapExtensionElement
in interfaceISimpleElementFactory
- Parameters:
handle
- the element handletype
- the expected data row type. Can beMULTI_ROW_ITEM
orEMPTY_ROW_ITEM
- Returns:
- the scriptable object
-
createHideRule
CreateIHideRule
instance- Specified by:
createHideRule
in interfaceISimpleElementFactory
- Returns:
- IHideRule
-
createHideRule
Description copied from interface:ISimpleElementFactory
CreateIHideRule
instance- Specified by:
createHideRule
in interfaceISimpleElementFactory
- Parameters:
rule
- the structure to create corresponding IHideRule instance.- Returns:
- IHideRule
-
createHideRule
Description copied from interface:ISimpleElementFactory
CreateIHideRule
instance- Specified by:
createHideRule
in interfaceISimpleElementFactory
- Parameters:
handle
- the element handle to create corresponding IHideRule instance.- Returns:
- IHideRule
-
createFilterCondition
CreateIFilterCondition
- Specified by:
createFilterCondition
in interfaceISimpleElementFactory
- Returns:
- instance
-
createFilterCondition
Description copied from interface:ISimpleElementFactory
Creates the IFilterCondition instance.- Specified by:
createFilterCondition
in interfaceISimpleElementFactory
- Parameters:
condition
- the structure to create corresponding IFilterCondition instance.- Returns:
- the IFilterCondition instance
-
createFilterCondition
Description copied from interface:ISimpleElementFactory
Creates the IFilterCondition instance.- Specified by:
createFilterCondition
in interfaceISimpleElementFactory
- Parameters:
handle
- the element handle to create corresponding IFilterCondition instance.- Returns:
- the IFilterCondition instance
-
createDataBinding
CreateIDataBinding
- Specified by:
createDataBinding
in interfaceISimpleElementFactory
- Returns:
- instance
-
createDataBinding
Description copied from interface:ISimpleElementFactory
Creates the data biinding structure.- Specified by:
createDataBinding
in interfaceISimpleElementFactory
- Parameters:
columnHandle
- the computed column handle- Returns:
- the data binding
-
createDataBinding
Description copied from interface:ISimpleElementFactory
Creates the data biinding structure.- Specified by:
createDataBinding
in interfaceISimpleElementFactory
- Parameters:
column
- the computed column- Returns:
- the data binding
-
createSortCondition
CreateISortCondition
- Specified by:
createSortCondition
in interfaceISimpleElementFactory
- Returns:
- instance
-
createSortCondition
Description copied from interface:ISimpleElementFactory
Creates the sort structure.- Specified by:
createSortCondition
in interfaceISimpleElementFactory
- Parameters:
sort
- the structure to create corresponding ISortCondition instance.- Returns:
- the sort
-
createSortCondition
Description copied from interface:ISimpleElementFactory
Creates the sort structure.- Specified by:
createSortCondition
in interfaceISimpleElementFactory
- Returns:
- the sort
-
createAction
Description copied from interface:ISimpleElementFactory
Creates the action structure.- Specified by:
createAction
in interfaceISimpleElementFactory
- Parameters:
action
- the structure handlehandle
- the element handle that holds the action structure- Returns:
- the action
-
createAction
Description copied from interface:ISimpleElementFactory
Create the action structure.- Specified by:
createAction
in interfaceISimpleElementFactory
- Returns:
- the action.
-
getElement
Description copied from interface:ISimpleElementFactory
Creates the IDesignElement instance.- Specified by:
getElement
in interfaceISimpleElementFactory
- Parameters:
handle
- the element handle to create corresponding IDesignElement instance.- Returns:
- the IDesignElement instance
-
createDataSet
Description copied from interface:ISimpleElementFactory
Creates the IDataSet instance.- Specified by:
createDataSet
in interfaceISimpleElementFactory
- Parameters:
handle
- the element handle to create corresponding IDataSet instance.- Returns:
- the IDataSet instance
-
createResultSetColumn
Description copied from interface:ISimpleElementFactory
Creates the IResultSetColumn instance.- Specified by:
createResultSetColumn
in interfaceISimpleElementFactory
- Returns:
- the IResultSetColumn instance
-
createResultSetColumn
Description copied from interface:ISimpleElementFactory
Creates the IResultSetColumn instance.- Specified by:
createResultSetColumn
in interfaceISimpleElementFactory
- Returns:
- the IResultSetColumn instance
-
createDataSource
Description copied from interface:ISimpleElementFactory
Creates the IDataSource instance.- Specified by:
createDataSource
in interfaceISimpleElementFactory
- Parameters:
handle
- the element handle to create corresponding IDataSource instance.- Returns:
- the IDataSource instance
-
createHighlightRule
Description copied from interface:ISimpleElementFactory
CreateIHighlightRule
instance- Specified by:
createHighlightRule
in interfaceISimpleElementFactory
- Returns:
- IHighlightRule
-
createHighlightRule
Description copied from interface:ISimpleElementFactory
CreateIHighlightRule
instance- Specified by:
createHighlightRule
in interfaceISimpleElementFactory
- Parameters:
highlightRule
- the structure to create corresponding IHighlightRule instance.- Returns:
- IHighlightRule
-
createHighlightRule
Description copied from interface:ISimpleElementFactory
CreateIHighlightRule
instance- Specified by:
createHighlightRule
in interfaceISimpleElementFactory
- Parameters:
handle
- the element handle to create corresponding IHighlightRule instance.- Returns:
- IHighlightRule
-
createStyle
Description copied from interface:ISimpleElementFactory
CreateIStyle
instance- Specified by:
createStyle
in interfaceISimpleElementFactory
- Returns:
- IStyle
-
createFilterConditionElement
Description copied from interface:ISimpleElementFactory
CreatesIFilterConditionElement
instance.- Specified by:
createFilterConditionElement
in interfaceISimpleElementFactory
- Parameters:
handle
- the filterConditionElement handle to create corresponding IFilterConditionElement instance.- Returns:
- IFilterConditionElement
-
createSortElement
Description copied from interface:ISimpleElementFactory
CreateISortElement
instance.- Specified by:
createSortElement
in interfaceISimpleElementFactory
- Parameters:
handle
- the handle to create corresponding ISortElement instance.- Returns:
- ISortElement
-
createExpression
Description copied from interface:ISimpleElementFactory
CreatesIExpression
instance.- Specified by:
createExpression
in interfaceISimpleElementFactory
- Returns:
- IExpression
-