Class StandardItemData
- java.lang.Object
-
- net.sf.jasperreports.components.items.StandardItemData
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,ItemData,JRChangeEventsSupport,JRCloneable
- Direct Known Subclasses:
StandardMarkerItemData
public class StandardItemData extends java.lang.Object implements java.io.Serializable, ItemData, JRChangeEventsSupport
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringPROPERTY_DATASETstatic java.lang.StringPROPERTY_ITEMS
-
Constructor Summary
Constructors Constructor Description StandardItemData()StandardItemData(ItemData data, JRBaseObjectFactory factory)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddItem(int index, Item item)voidaddItem(Item item)java.lang.Objectclone()voidcollectExpressions(JRExpressionCollector collector)static java.util.List<ItemProperty>getCompiledProperties(java.util.List<ItemProperty> properties, JRBaseObjectFactory factory)JRElementDatasetgetDataset()Returns the dataset information that will be used by theItemDataobject.JRPropertyChangeSupportgetEventSupport()Returns the property change support object for this instance.java.util.List<Item>getItems()Returns a list ofItemobjects.ItemremoveItem(Item item)voidsetDataset(JRElementDataset dataset)Sets the dataset information that will be used to create the item list.
-
-
-
Field Detail
-
PROPERTY_ITEMS
public static final java.lang.String PROPERTY_ITEMS
- See Also:
- Constant Field Values
-
PROPERTY_DATASET
public static final java.lang.String PROPERTY_DATASET
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
StandardItemData
public StandardItemData()
-
StandardItemData
public StandardItemData(ItemData data, JRBaseObjectFactory factory)
-
-
Method Detail
-
getCompiledProperties
public static java.util.List<ItemProperty> getCompiledProperties(java.util.List<ItemProperty> properties, JRBaseObjectFactory factory)
-
collectExpressions
public void collectExpressions(JRExpressionCollector collector)
-
getItems
public java.util.List<Item> getItems()
Description copied from interface:ItemDataReturns a list ofItemobjects. Each item in the list provides a collection of item properties.- Specified by:
getItemsin interfaceItemData- Returns:
- a list of items
- See Also:
Item,ItemProperty
-
addItem
public void addItem(Item item)
-
addItem
public void addItem(int index, Item item)
-
getDataset
public JRElementDataset getDataset()
Description copied from interface:ItemDataReturns the dataset information that will be used by theItemDataobject.This information is required either to use the main dataset or to instantiate a subdataset from the report. The data produced by the subdataset is fed to the items list.
- Specified by:
getDatasetin interfaceItemData- Returns:
- the dataset
- See Also:
JRElementDataset
-
setDataset
public void setDataset(JRElementDataset dataset)
Sets the dataset information that will be used to create the item list.- Parameters:
dataset- the dataset information- See Also:
getDataset()
-
getEventSupport
public JRPropertyChangeSupport getEventSupport()
Description copied from interface:JRChangeEventsSupportReturns the property change support object for this instance.- Specified by:
getEventSupportin interfaceJRChangeEventsSupport- Returns:
- the property change support object for this instance
-
clone
public java.lang.Object clone()
- Specified by:
clonein interfaceJRCloneable- Overrides:
clonein classjava.lang.Object
-
-