public class CrossTabHeaderList
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Method and Description |
---|---|
CrossTabHeader |
add(Field field)
Create a new header with the given field.
|
CrossTabHeader |
get(int index)
Returns the CrossTabHeader at the specified position in this list.
|
CrossTabHeader |
getGrandTotal()
The header with the grand total label.
|
boolean |
getIndentLabel()
Returns whether the row label should be indent (
true ) or not (false ). |
int |
getIndentLabelSize()
Returns the size of indentation of the row label in twips.
|
boolean |
getSuppressEmptyLines()
Returns whether empty rows/columns should be suppressed (
true ) or not (false ). |
FormulaField |
getSuppressEmptyLinesFormula()
Returns the formula for the property 'suppress empty columns'.
|
boolean |
getTotalOnStart()
Returns whether Column Total should be on left or top (
true ) or not (false ). |
FormulaField |
getTotalOnStartFormula()
Returns the formula for showing the total on start or on end.
|
boolean |
isRow()
The type of the headers.
|
void |
move(int from,
int to)
Move the position of a header
|
void |
remove(int index)
Removes the i-th column or row of the crosstab.
|
void |
setIndentLabel(boolean indentLabel)
Sets whether the row label should be indent (
true ) or not (false ). |
void |
setIndentLabelSize(int indentLabelSize)
Sets the size of indentation of the row label for the crosstab's indent row label mode.
|
void |
setSuppressEmptyLines(boolean suppressEmptyLines)
Sets whether empty rows/columns should be suppressed (
true ) or not (false ). |
void |
setSuppressEmptyLinesFormula(FormulaField newFormula)
Sets the formula for the property 'suppress empty rows'.
|
void |
setTotalOnStart(boolean value)
Sets whether Column Total should be drawn on left or top side (
true ) or not (false ). |
void |
setTotalOnStartFormula(FormulaField newFormula)
Sets the formula for showing the total on start or on end.
|
int |
size()
Returns the number of headers.
|
public void remove(int index) throws ReportException
getHeaderCount()
.index
- Index of the column or row.java.lang.IllegalArgumentException
- if index is negative.ReportException
- if index is 0 (grand total).@Nonnull public CrossTabHeader add(@Nonnull Field field)
field
- the field which should be group.public void move(int from, int to) throws ReportException
from
- original position in the range from 1 to size() -1to
- new position in the range from 1 to size() -1ReportException
- if you want move the grand total (index 0)@Nonnull public CrossTabHeader get(int index)
index
- index of the CrossTabHeader to returnpublic boolean isRow()
public int size()
@Nonnull public CrossTabHeader getGrandTotal()
public boolean getTotalOnStart()
true
) or not (false
).public void setTotalOnStart(boolean value)
true
) or not (false
).value
- The value of the propertypublic void setTotalOnStartFormula(FormulaField newFormula)
newFormula
- The new formula for the property.public FormulaField getTotalOnStartFormula()
FormulaField
The formula for the property 'suppress empty columns'.public boolean getSuppressEmptyLines()
true
) or not (false
).public void setSuppressEmptyLines(boolean suppressEmptyLines)
true
) or not (false
).suppressEmptyLines
- The flag to setpublic void setSuppressEmptyLinesFormula(FormulaField newFormula)
newFormula
- The new formula for the property 'suppress empty rows'.public FormulaField getSuppressEmptyLinesFormula()
FormulaField
The formula for the property 'suppress empty columns'.public boolean getIndentLabel()
true
) or not (false
).public void setIndentLabel(boolean indentLabel)
true
) or not (false
).indentLabel
- The indentRowLabel to setpublic int getIndentLabelSize()
public void setIndentLabelSize(int indentLabelSize)
indentLabelSize
- The indentRowLabelSize to set in twips.java.lang.IllegalArgumentException
- if indentRowLabelSize is negativeCopyright © 1999-2020 by i-net software GmbH