Class StandardTable
- java.lang.Object
-
- net.sf.jasperreports.components.table.StandardTable
-
- All Implemented Interfaces:
Serializable
,Cloneable
,TableComponent
,Component
,DatasetRunHolder
,JRChangeEventsSupport
,JRCloneable
,JRVisitable
public class StandardTable extends Object implements TableComponent, Serializable, JRChangeEventsSupport
- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
PROPERTY_COLUMN_FOOTER
static String
PROPERTY_COLUMN_HEADER
static String
PROPERTY_COLUMNS
static String
PROPERTY_DATASET_RUN
static String
PROPERTY_DETAIL
static String
PROPERTY_GROUP_FOOTERS
static String
PROPERTY_GROUP_HEADERS
static String
PROPERTY_NO_DATA
static String
PROPERTY_TABLE_FOOTER
static String
PROPERTY_TABLE_HEADER
static String
PROPERTY_WHEN_NO_DATA_TYPE
-
Fields inherited from interface net.sf.jasperreports.components.table.TableComponent
CONFIG_PROPERTY_WHEN_NO_DATA_TYPE
-
-
Constructor Summary
Constructors Constructor Description StandardTable()
StandardTable(TableComponent table, JRBaseObjectFactory factory)
-
Method Summary
-
-
-
Field Detail
-
PROPERTY_DATASET_RUN
public static final String PROPERTY_DATASET_RUN
- See Also:
- Constant Field Values
-
PROPERTY_COLUMNS
public static final String PROPERTY_COLUMNS
- See Also:
- Constant Field Values
-
PROPERTY_WHEN_NO_DATA_TYPE
public static final String PROPERTY_WHEN_NO_DATA_TYPE
- See Also:
- Constant Field Values
-
PROPERTY_TABLE_HEADER
public static final String PROPERTY_TABLE_HEADER
- See Also:
- Constant Field Values
-
PROPERTY_TABLE_FOOTER
public static final String PROPERTY_TABLE_FOOTER
- See Also:
- Constant Field Values
-
PROPERTY_COLUMN_HEADER
public static final String PROPERTY_COLUMN_HEADER
- See Also:
- Constant Field Values
-
PROPERTY_COLUMN_FOOTER
public static final String PROPERTY_COLUMN_FOOTER
- See Also:
- Constant Field Values
-
PROPERTY_GROUP_HEADERS
public static final String PROPERTY_GROUP_HEADERS
- See Also:
- Constant Field Values
-
PROPERTY_GROUP_FOOTERS
public static final String PROPERTY_GROUP_FOOTERS
- See Also:
- Constant Field Values
-
PROPERTY_DETAIL
public static final String PROPERTY_DETAIL
- See Also:
- Constant Field Values
-
PROPERTY_NO_DATA
public static final String PROPERTY_NO_DATA
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
StandardTable
public StandardTable()
-
StandardTable
public StandardTable(TableComponent table, JRBaseObjectFactory factory)
-
-
Method Detail
-
getColumns
public List<BaseColumn> getColumns()
- Specified by:
getColumns
in interfaceTableComponent
-
setColumns
public void setColumns(List<BaseColumn> columns)
-
addColumn
public void addColumn(BaseColumn column)
-
addColumn
public void addColumn(int index, BaseColumn column)
-
removeColumn
public boolean removeColumn(BaseColumn column)
-
getDatasetRun
public JRDatasetRun getDatasetRun()
- Specified by:
getDatasetRun
in interfaceDatasetRunHolder
- Specified by:
getDatasetRun
in interfaceTableComponent
-
setDatasetRun
public void setDatasetRun(JRDatasetRun datasetRun)
-
getWhenNoDataType
public WhenNoDataTypeTableEnum getWhenNoDataType()
- Specified by:
getWhenNoDataType
in interfaceTableComponent
-
setWhenNoDataType
public void setWhenNoDataType(WhenNoDataTypeTableEnum whenNoDataType)
-
getTableHeader
public Row getTableHeader()
- Specified by:
getTableHeader
in interfaceTableComponent
-
setTableHeader
public void setTableHeader(Row tableHeader)
-
getTableFooter
public Row getTableFooter()
- Specified by:
getTableFooter
in interfaceTableComponent
-
setTableFooter
public void setTableFooter(Row tableFooter)
-
getGroupHeaders
public List<GroupRow> getGroupHeaders()
- Specified by:
getGroupHeaders
in interfaceTableComponent
-
getGroupFooters
public List<GroupRow> getGroupFooters()
- Specified by:
getGroupFooters
in interfaceTableComponent
-
getGroupFooter
public Row getGroupFooter(String groupName)
- Specified by:
getGroupFooter
in interfaceTableComponent
-
getGroupHeader
public Row getGroupHeader(String groupName)
- Specified by:
getGroupHeader
in interfaceTableComponent
-
addGroupHeader
public void addGroupHeader(GroupRow groupRow)
-
addGroupFooter
public void addGroupFooter(GroupRow groupRow)
-
removeGroupFooter
public boolean removeGroupFooter(GroupRow groupRow)
-
removeGroupHeader
public boolean removeGroupHeader(GroupRow groupRow)
-
getColumnHeader
public Row getColumnHeader()
- Specified by:
getColumnHeader
in interfaceTableComponent
-
setColumnHeader
public void setColumnHeader(Row header)
-
getColumnFooter
public Row getColumnFooter()
- Specified by:
getColumnFooter
in interfaceTableComponent
-
setColumnFooter
public void setColumnFooter(Row header)
-
getDetail
public Row getDetail()
- Specified by:
getDetail
in interfaceTableComponent
-
setDetail
public void setDetail(Row detail)
-
getNoData
public BaseCell getNoData()
- Specified by:
getNoData
in interfaceTableComponent
-
setNoData
public void setNoData(BaseCell noData)
-
clone
public Object clone()
- Specified by:
clone
in interfaceJRCloneable
- Overrides:
clone
in classObject
-
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
-
visit
public void visit(JRVisitor visitor)
- Specified by:
visit
in interfaceJRVisitable
-
-