public class StandardItemData extends java.lang.Object implements java.io.Serializable, ItemData, JRChangeEventsSupport
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PROPERTY_DATASET |
static java.lang.String |
PROPERTY_ITEMS |
Constructor and Description |
---|
StandardItemData() |
StandardItemData(ItemData data,
JRBaseObjectFactory factory) |
Modifier and Type | Method and Description |
---|---|
void |
addItem(int index,
Item item) |
void |
addItem(Item item) |
java.lang.Object |
clone() |
void |
collectExpressions(JRExpressionCollector collector) |
JRElementDataset |
getDataset()
Returns the dataset information that will be used by the
ItemData object. |
JRPropertyChangeSupport |
getEventSupport()
Returns the property change support object for this instance.
|
java.util.List<Item> |
getItems()
Returns a list of
Item
objects. |
Item |
removeItem(Item item) |
void |
setDataset(JRElementDataset dataset)
Sets the dataset information that will be used to create the item list.
|
public static final java.lang.String PROPERTY_ITEMS
public static final java.lang.String PROPERTY_DATASET
public StandardItemData()
public StandardItemData(ItemData data, JRBaseObjectFactory factory)
public void collectExpressions(JRExpressionCollector collector)
public java.util.List<Item> getItems()
ItemData
Item
objects. Each item in the list provides a collection of item properties.getItems
in interface ItemData
Item
,
ItemProperty
public void addItem(Item item)
public void addItem(int index, Item item)
public JRElementDataset getDataset()
ItemData
ItemData
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.
getDataset
in interface ItemData
JRElementDataset
public void setDataset(JRElementDataset dataset)
dataset
- the dataset informationgetDataset()
public JRPropertyChangeSupport getEventSupport()
JRChangeEventsSupport
getEventSupport
in interface JRChangeEventsSupport
public java.lang.Object clone()
clone
in interface JRCloneable
clone
in class java.lang.Object
© 2001-2014 TIBCO Software Inc. www.jaspersoft.com