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()
ListComponent
This 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 ListComponent
getDatasetRun
in interface DatasetRunHolder
public void setDatasetRun(JRDatasetRun datasetRun)
datasetRun
- the subdataset run informationgetDatasetRun()
public ListContents getContents()
ListComponent
Each 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 ListComponent
public void setContents(ListContents contents)
contents
- the list item contentsgetContents()
public Object clone()
clone
in interface JRCloneable
clone
in class Object
public PrintOrderEnum getPrintOrderValue()
ListComponent
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.
getPrintOrderValue
in interface ListComponent
ListContents.getWidth()
public void setPrintOrderValue(PrintOrderEnum printOrderValue)
printOrderValue
- the cell print oder, null or one of
getPrintOrderValue()
public JRPropertyChangeSupport getEventSupport()
JRChangeEventsSupport
getEventSupport
in interface JRChangeEventsSupport
public Boolean getIgnoreWidth()
ListComponent
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.
getIgnoreWidth
in interface ListComponent
ListComponent.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 JRVisitable
Copyright © 2020 TIBCO Software Inc.. All rights reserved.