public class StandardItemData extends Object implements Serializable, ItemData, JRChangeEventsSupport
| Modifier and Type | Field and Description |
|---|---|
static String |
PROPERTY_DATASET |
static 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) |
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.
|
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 String PROPERTY_ITEMS
public static final String PROPERTY_DATASET
public StandardItemData()
public StandardItemData(ItemData data, JRBaseObjectFactory factory)
public void collectExpressions(JRExpressionCollector collector)
public List<Item> getItems()
ItemDataItem
objects. Each item in the list provides a collection of item properties.getItems in interface ItemDataItem,
ItemPropertypublic void addItem(Item item)
public void addItem(int index,
Item item)
public JRElementDataset getDataset()
ItemDataItemData 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 ItemDataJRElementDatasetpublic void setDataset(JRElementDataset dataset)
dataset - the dataset informationgetDataset()public JRPropertyChangeSupport getEventSupport()
JRChangeEventsSupportgetEventSupport in interface JRChangeEventsSupportpublic Object clone()
clone in interface JRCloneableclone in class ObjectCopyright © 2017. All rights reserved.