public class DesignListContents extends JRDesignElementGroup implements ListContents
ListContents implementation used at report design time.| Modifier and Type | Field and Description |
|---|---|
static String |
PROPERTY_HEIGHT |
static String |
PROPERTY_WIDTH |
PROPERTY_CHILDREN, PROPERTY_ELEMENT_GROUPchildren, elementGroup| Constructor and Description |
|---|
DesignListContents() |
| Modifier and Type | Method and Description |
|---|---|
int |
getHeight()
Returns the height of the list contents.
|
Integer |
getWidth()
Returns the width of the list contents.
|
void |
setHeight(int height)
Sets the list contents height.
|
void |
setWidth(int width)
Sets the width of the list contents.
|
void |
setWidth(Integer width)
Sets the width of the list contents.
|
addElement, addElement, addElement, addElementGroup, addElementGroup, clone, getEventSupport, removeElement, removeElementGroup, setElementGroupclone, getChildren, getElementByKey, getElementByKey, getElementGroup, getElements, getElements, visitequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetChildren, getElementByKey, getElementGroup, getElementsvisitclonepublic static final String PROPERTY_HEIGHT
public static final String PROPERTY_WIDTH
public int getHeight()
ListContentsThis value is used as a minimum list item height: if the space left on the page is smaller than the height, then an overflow is triggered and the list item is printed on a new page/column.
getHeight in interface ListContentspublic void setHeight(int height)
height - the list contents heightgetHeight()public Integer getWidth()
ListContentsWhen the list is filled horizontally, several list cells will be placed on the same row one next to another within the width of the list element (unless the list element width is ignored). The width of the list contents will determine how many cells can be placed on a row.
getWidth in interface ListContentsListComponent.getPrintOrderValue(),
ListComponent.getIgnoreWidth()public void setWidth(Integer width)
width - the list contents widthgetWidth()public void setWidth(int width)
width - the list contents widthgetWidth()Copyright © 2017. All rights reserved.