|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jet.api.TableHeaderFooterInfo
public class TableHeaderFooterInfo
The TableHeaderFooterInfo defines the constructor and information of a JReport table header or footer object.
Constructor Summary | |
---|---|
TableHeaderFooterInfo(java.util.Vector displayInfos)
Constructor. |
|
TableHeaderFooterInfo(java.util.Vector displayInfos,
double width,
double height)
Constructor. |
Method Summary | |
---|---|
boolean |
addDisplayInfo(DisplayFieldInfo displayFieldInfo)
Appends a DisplayFieldInfo definition in this container. |
void |
addDisplayInfo(int index,
DisplayFieldInfo element)
Inserts a DisplayFieldInfo definition of the container at the specified position. |
void |
clearDisplayInfos()
Removes all of the DisplayFieldInfo definitions from the container. |
DisplayFieldInfo |
getDisplayInfo(int index)
Gets the DisplayFieldInfo at the specified position. |
java.util.Vector |
getDisplayInfos()
Gets DisplayFieldInfos' definition of the header/footer container. |
double |
getHeight()
Gets the height of the table header or footer. |
double |
getWidth()
Gets the width of the table header. |
boolean |
isVerticalToDetail()
Indicates whether there is a Vertical Group Header in the table. |
boolean |
removeDisplayInfo(DisplayFieldInfo displayInfo)
Removes the first occurrence of the DisplayFieldInfo. |
DisplayFieldInfo |
removeDisplayInfo(int index)
Removes the DisplayFieldInfo at the specified position. |
void |
setDisplayInfos(java.util.Vector displayInfos)
Sets DisplayFieldInfos' definition of the header/footer container. |
void |
setHeight(double height)
Sets the height of the table header or footer. |
void |
setVerticalToDetail(boolean isVerticaltoDetail)
Sets whether to create a Vertical Group Header in the table. |
void |
setWidth(double width)
Sets the width of the table header. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TableHeaderFooterInfo(java.util.Vector displayInfos)
displayInfos
- A set of DisplayFieldInfo of the table's Header/Footer section. See also DisplayFieldInfo
public TableHeaderFooterInfo(java.util.Vector displayInfos, double width, double height)
displayInfos
- A set of DisplayFieldInfo of table's Header/Footer section. See also DisplayFieldInfo
width
- Predefined Table's Header/Footer width.height
- Predefined Table's Header/Footer height.Method Detail |
---|
public java.util.Vector getDisplayInfos()
public void setDisplayInfos(java.util.Vector displayInfos)
public void addDisplayInfo(int index, DisplayFieldInfo element)
index
- Specifies at which the DisplayFieldInfo to be inserted.element
- DisplayFieldInfo to be inserted.
java.lang.ArrayIndexOutOfBoundsException
- if the index is out of range (index < 0 || index > size()).public boolean addDisplayInfo(DisplayFieldInfo displayFieldInfo)
displayFieldInfo
- DisplayFieldInfo to be appended.
true
if the DisplayFieldInfo is inserted successfully; false otherwise.
public void clearDisplayInfos()
public DisplayFieldInfo getDisplayInfo(int index)
index
- Index of DisplayFieldInfo in the container.
java.lang.ArrayIndexOutOfBoundsException
- if the index is out of range (index < 0 || index >=
size()).public DisplayFieldInfo removeDisplayInfo(int index)
index
- The index of the DisplayFieldInfo to be removed.
java.lang.ArrayIndexOutOfBoundsException
- if the index is out of range (index < 0 || index >= size()).public boolean removeDisplayInfo(DisplayFieldInfo displayInfo)
displayInfo
- DisplayFieldInfo to be removed.
true
if the Header/footerInfo contains the displayInfo and removes it; false
otherwise.public double getHeight()
#API.setUnit(int)
,
and the default unit is inch.public void setHeight(double height)
height
- The height of the table header/footer. The unit of the value can be set by #API.setUnit(int)
,
and the default unit is inch.public double getWidth()
public void setWidth(double width)
width
- The width of the table header.public void setVerticalToDetail(boolean isVerticaltoDetail)
isVerticaltoDetail
- Sets true when it is a Vertical Group Header in the table.public boolean isVerticalToDetail()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |