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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from interface net.sf.jasperreports.components.table.TableComponent
CONFIG_PROPERTY_COLUMN_WEIGHT, CONFIG_PROPERTY_HORIZONTAL_POSITION, CONFIG_PROPERTY_SHRINK_WIDTH, CONFIG_PROPERTY_WHEN_NO_DATA_TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddColumn(int index, BaseColumn column) voidaddColumn(BaseColumn column) voidaddGroupFooter(GroupRow groupRow) voidaddGroupHeader(GroupRow groupRow) clone()protected intfindGroupRowIndex(List<GroupRow> groupRows, String groupName) Returns the property change support object for this instance.getGroupFooter(String groupName) getGroupHeader(String groupName) Returns the position of the table columns within the table element box.booleanremoveColumn(BaseColumn column) booleanremoveGroupFooter(GroupRow groupRow) booleanremoveGroupHeader(GroupRow groupRow) voidsetColumnFooter(Row header) voidsetColumnHeader(Row header) voidsetColumns(List<BaseColumn> columns) voidsetDatasetRun(JRDatasetRun datasetRun) voidvoidsetGroupFooter(String groupName, Row row) voidsetGroupFooters(List<GroupRow> groupFooters) voidsetGroupHeader(String groupName, Row row) voidsetGroupHeaders(List<GroupRow> groupHeaders) voidsetHorizontalPosition(HorizontalPosition horizontalPosition) Sets the position of the table within its element box.voidvoidsetShrinkWidth(Boolean shrinkWidth) voidsetTableFooter(Row tableFooter) voidsetTableHeader(Row tableHeader) voidsetWhenNoDataType(WhenNoDataTypeTableEnum whenNoDataType) Specifies if the table box should shrink to accommodate the smaller total width of visible columns.void
-
Field Details
-
PROPERTY_DATASET_RUN
- See Also:
-
PROPERTY_COLUMNS
- See Also:
-
PROPERTY_WHEN_NO_DATA_TYPE
- See Also:
-
PROPERTY_HORIZONTAL_POSITION
- See Also:
-
PROPERTY_SHRINK_WIDTH
- See Also:
-
PROPERTY_TABLE_HEADER
- See Also:
-
PROPERTY_TABLE_FOOTER
- See Also:
-
PROPERTY_COLUMN_HEADER
- See Also:
-
PROPERTY_COLUMN_FOOTER
- See Also:
-
PROPERTY_GROUP_HEADERS
- See Also:
-
PROPERTY_GROUP_FOOTERS
- See Also:
-
PROPERTY_DETAIL
- See Also:
-
PROPERTY_NO_DATA
- See Also:
-
-
Constructor Details
-
StandardTable
public StandardTable() -
StandardTable
-
-
Method Details
-
getColumns
- Specified by:
getColumnsin interfaceTableComponent
-
setColumns
-
addColumn
-
addColumn
-
removeColumn
-
getDatasetRun
- Specified by:
getDatasetRunin interfaceDatasetRunHolder- Specified by:
getDatasetRunin interfaceTableComponent
-
setDatasetRun
-
getWhenNoDataType
- Specified by:
getWhenNoDataTypein interfaceTableComponent
-
setWhenNoDataType
-
getHorizontalPosition
Description copied from interface:TableComponentReturns the position of the table columns within the table element box.- Specified by:
getHorizontalPositionin interfaceTableComponent- Returns:
- the position of the table columns within the table element box,
nullif no position is specified
-
setHorizontalPosition
Sets the position of the table within its element box.- Parameters:
horizontalPosition- the table position, ifnullthe default position is applied
-
shrinkWidth
Description copied from interface:TableComponentSpecifies if the table box should shrink to accommodate the smaller total width of visible columns.- Specified by:
shrinkWidthin interfaceTableComponent
-
setShrinkWidth
-
getTableHeader
- Specified by:
getTableHeaderin interfaceTableComponent
-
setTableHeader
-
getGroupHeaders
- Specified by:
getGroupHeadersin interfaceTableComponent
-
findGroupRowIndex
-
getGroupHeader
- Specified by:
getGroupHeaderin interfaceTableComponent
-
setGroupHeaders
-
addGroupHeader
-
removeGroupHeader
-
setGroupHeader
-
getColumnHeader
- Specified by:
getColumnHeaderin interfaceTableComponent
-
setColumnHeader
-
getDetail
- Specified by:
getDetailin interfaceTableComponent
-
setDetail
-
getNoData
- Specified by:
getNoDatain interfaceTableComponent
-
setNoData
-
clone
- Specified by:
clonein interfaceJRCloneable- Overrides:
clonein classObject
-
getEventSupport
Description copied from interface:JRChangeEventsSupportReturns the property change support object for this instance.- Specified by:
getEventSupportin interfaceJRChangeEventsSupport- Returns:
- the property change support object for this instance
-
visit
- Specified by:
visitin interfaceJRVisitable
-