public class StandardListComponent extends Object implements Serializable, ListComponent, JRChangeEventsSupport
ListComponent implementation.| Modifier and Type | Field and Description |
|---|---|
static String |
PROPERTY_DATASET_RUN |
static String |
PROPERTY_IGNORE_WIDTH |
static String |
PROPERTY_PRINT_ORDER |
| Constructor and Description |
|---|
StandardListComponent() |
StandardListComponent(ListComponent list,
JRBaseObjectFactory baseFactory) |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone() |
ListContents |
getContents()
Returns the list item contents.
|
JRDatasetRun |
getDatasetRun()
Returns the subdataset run information that will be used by this list.
|
JRPropertyChangeSupport |
getEventSupport()
Returns the property change support object for this instance.
|
Boolean |
getIgnoreWidth()
Returns the flag that determines whether the element width is to be ignored
when filling this list.
|
PrintOrderEnum |
getPrintOrderValue()
Returns the print order of the list cells.
|
void |
setContents(ListContents contents)
Sets the list item contents.
|
void |
setDatasetRun(JRDatasetRun datasetRun)
Sets the subdataset run information that will be used by this list.
|
void |
setIgnoreWidth(boolean ignoreWidth)
Sets the list ignore width flag.
|
void |
setIgnoreWidth(Boolean ignoreWidth)
Sets the list ignore width flag.
|
void |
setPrintOrderValue(PrintOrderEnum printOrderValue)
Sets the list cell print order.
|
void |
visit(JRVisitor visitor) |
public static final String PROPERTY_PRINT_ORDER
public static final String PROPERTY_IGNORE_WIDTH
public static final String PROPERTY_DATASET_RUN
public StandardListComponent()
public StandardListComponent(ListComponent list, JRBaseObjectFactory baseFactory)
public JRDatasetRun getDatasetRun()
ListComponentThis information is required to instantiate a subdataset from the report. The data produced by the subdataset is fed to the list item contents.
getDatasetRun in interface ListComponentpublic void setDatasetRun(JRDatasetRun datasetRun)
datasetRun - the subdataset run informationgetDatasetRun()public ListContents getContents()
ListComponentEach record produced by the list subdataset is used to fill the list item contents and the result is included in the generated report.
getContents in interface ListComponentpublic void setContents(ListContents contents)
contents - the list item contentsgetContents()public Object clone()
clone in interface JRCloneableclone in class Objectpublic PrintOrderEnum getPrintOrderValue()
ListComponentThe 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.
getPrintOrderValue in interface ListComponentListContents.getWidth()public void setPrintOrderValue(PrintOrderEnum printOrderValue)
printOrderValue - the cell print oder, null or one of
getPrintOrderValue()public JRPropertyChangeSupport getEventSupport()
JRChangeEventsSupportgetEventSupport in interface JRChangeEventsSupportpublic Boolean getIgnoreWidth()
ListComponentThis 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.
getIgnoreWidth in interface ListComponentListComponent.getPrintOrderValue(),
JRCrosstab.setIgnoreWidth(Boolean)public void setIgnoreWidth(Boolean ignoreWidth)
ignoreWidth - the ignore width flagpublic void setIgnoreWidth(boolean ignoreWidth)
ignoreWidth - the ignore width flagpublic void visit(JRVisitor visitor)
visit in interface JRVisitableCopyright © 2017. All rights reserved.