Class StandardItemData
- java.lang.Object
-
- net.sf.jasperreports.components.items.StandardItemData
-
- All Implemented Interfaces:
Serializable
,Cloneable
,ItemData
,JRChangeEventsSupport
,JRCloneable
- Direct Known Subclasses:
StandardMarkerItemData
public class StandardItemData extends Object implements Serializable, ItemData, JRChangeEventsSupport
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
PROPERTY_DATASET
static String
PROPERTY_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 void
addItem(int index, Item item)
void
addItem(Item item)
Object
clone()
void
collectExpressions(JRExpressionCollector collector)
static List<ItemProperty>
getCompiledProperties(List<ItemProperty> properties, JRBaseObjectFactory factory)
JRElementDataset
getDataset()
Returns the dataset information that will be used by theItemData
object.JRPropertyChangeSupport
getEventSupport()
Returns the property change support object for this instance.List<Item>
getItems()
Returns a list ofItem
objects.Item
removeItem(Item item)
void
setDataset(JRElementDataset dataset)
Sets the dataset information that will be used to create the item list.
-
-
-
Field Detail
-
PROPERTY_ITEMS
public static final String PROPERTY_ITEMS
- See Also:
- Constant Field Values
-
PROPERTY_DATASET
public static final 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 List<ItemProperty> getCompiledProperties(List<ItemProperty> properties, JRBaseObjectFactory factory)
-
collectExpressions
public void collectExpressions(JRExpressionCollector collector)
-
getItems
public List<Item> getItems()
Description copied from interface:ItemData
Returns a list ofItem
objects. Each item in the list provides a collection of item properties.- Specified by:
getItems
in 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:ItemData
Returns the dataset information that will be used by theItemData
object.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:
getDataset
in 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:JRChangeEventsSupport
Returns the property change support object for this instance.- Specified by:
getEventSupport
in interfaceJRChangeEventsSupport
- Returns:
- the property change support object for this instance
-
clone
public Object clone()
- Specified by:
clone
in interfaceJRCloneable
- Overrides:
clone
in classObject
-
-