public class ReportData
extends java.lang.Object
Constructor and Description |
---|
ReportData() |
Modifier and Type | Method and Description |
---|---|
void |
addTableModel(ReportTableModel model)
Adds a table model to this report data.
|
java.lang.String |
getId()
Gets the ID of this data, can be NULL.
|
ReportTableModel |
getTableModelByColName(java.lang.String columnName)
This methode returns a report table model that has a column with
given columnName.
|
java.util.Set<ReportTableModel> |
getTableModels()
Gets the set of all table models.
|
java.lang.Object |
getValue(java.lang.String keyword)
Gets the value of a field.
|
java.util.Map |
getValueMap() |
boolean |
hasValue(java.lang.String keyword)
Determinates if a value is assigned to a keyword.
|
boolean |
isAutoTableColumn(java.lang.String columnName) |
void |
setId(java.lang.String id)
Sets an optional ID of this data.
|
void |
setImageValue(java.lang.String keyword,
java.lang.String imageFile)
Sets an image of a field, which means the field shall
be replaced by a graphic.
|
void |
setImageValue(java.lang.String keyword,
java.lang.String imageFile,
Measure width,
Measure height)
Sets an image of a field, which means the field shall
be replaced by a graphic.
|
void |
setValue(java.lang.String keyword,
java.lang.Object value)
Sets the value of a field.
|
void |
setValues(java.util.Map<java.lang.String,java.lang.Object> map)
Sets multiple values.
|
public void addTableModel(ReportTableModel model)
model
- Tablemodel.public java.lang.String getId()
public ReportTableModel getTableModelByColName(java.lang.String columnName)
columnName
- Name of column.public java.util.Set<ReportTableModel> getTableModels()
public java.lang.Object getValue(java.lang.String keyword)
keyword
- Keyword (fill-in name) of field.public java.util.Map getValueMap()
public boolean hasValue(java.lang.String keyword)
keyword
- Keyword.public boolean isAutoTableColumn(java.lang.String columnName)
public void setId(java.lang.String id)
id
- ID of data.public void setValue(java.lang.String keyword, java.lang.Object value)
keyword
- Keyword or ID of field.value
- Value of field.public void setImageValue(java.lang.String keyword, java.lang.String imageFile)
keyword
- imageFile
- ReportException
public void setImageValue(java.lang.String keyword, java.lang.String imageFile, Measure width, Measure height)
keyword
- imageFile
- ReportException
public void setValues(java.util.Map<java.lang.String,java.lang.Object> map)
map
- Map with key-value pairs, Key must be a String.© 2003-2011 by Sascha Schmidt (vision-cloud.de). All Rights Reserved.