Class StandardListComponent
java.lang.Object
net.sf.jasperreports.components.list.StandardListComponent
- All Implemented Interfaces:
Serializable,Cloneable,ListComponent,Component,DatasetRunHolder,JRChangeEventsSupport,JRCloneable,JRVisitable
public class StandardListComponent
extends Object
implements Serializable, ListComponent, JRChangeEventsSupport
Standard
ListComponent implementation.- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Returns the list item contents.Returns the subdataset run information that will be used by this list.Returns the property change support object for this instance.Returns the flag that determines whether the element width is to be ignored when filling this list.Returns the print order of the list cells.voidsetContents(ListContents contents) Sets the list item contents.voidsetDatasetRun(JRDatasetRun datasetRun) Sets the subdataset run information that will be used by this list.voidsetIgnoreWidth(boolean ignoreWidth) Sets the list ignore width flag.voidsetIgnoreWidth(Boolean ignoreWidth) Sets the list ignore width flag.voidsetPrintOrder(PrintOrderEnum printOrder) Sets the list cell print order.void
-
Field Details
-
PROPERTY_PRINT_ORDER
- See Also:
-
PROPERTY_IGNORE_WIDTH
- See Also:
-
PROPERTY_DATASET_RUN
- See Also:
-
-
Constructor Details
-
StandardListComponent
public StandardListComponent() -
StandardListComponent
-
-
Method Details
-
getDatasetRun
Description copied from interface:ListComponentReturns the subdataset run information that will be used by this list.This information is required to instantiate a subdataset from the report. The data produced by the subdataset is fed to the list item contents.
- Specified by:
getDatasetRunin interfaceDatasetRunHolder- Specified by:
getDatasetRunin interfaceListComponent- Returns:
- the subdataset run information
-
setDatasetRun
Sets the subdataset run information that will be used by this list.- Parameters:
datasetRun- the subdataset run information- See Also:
-
getContents
Description copied from interface:ListComponentReturns the list item contents.Each record produced by the list subdataset is used to fill the list item contents and the result is included in the generated report.
- Specified by:
getContentsin interfaceListComponent- Returns:
- the list item contents
-
setContents
Sets the list item contents.- Parameters:
contents- the list item contents- See Also:
-
clone
- Specified by:
clonein interfaceJRCloneable- Overrides:
clonein classObject
-
getPrintOrder
Description copied from interface:ListComponentReturns the print order of the list cells.The list cells can be either printed vertically one beneath another (on a single column), or horizontally on rows of 2 or more columns.
The default print order (used when no explicit order has been set) is vertical.
- Specified by:
getPrintOrderin interfaceListComponent- Returns:
- the list print order if set, one of
- See Also:
-
setPrintOrder
Sets the list cell print order.- Parameters:
printOrder- the cell print oder, null or one of- See Also:
-
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
-
getIgnoreWidth
Description copied from interface:ListComponentReturns the flag that determines whether the element width is to be ignored when filling this list.This flag only applies to horizontally filled reports. If the flag is set, the list will be filled on a single row.
By default, the flag is not set.
- Specified by:
getIgnoreWidthin interfaceListComponent- See Also:
-
setIgnoreWidth
Sets the list ignore width flag.- Parameters:
ignoreWidth- the ignore width flag
-
setIgnoreWidth
public void setIgnoreWidth(boolean ignoreWidth) Sets the list ignore width flag.- Parameters:
ignoreWidth- the ignore width flag
-
visit
- Specified by:
visitin interfaceJRVisitable
-