|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjet.api.TableGroupInfo
public class TableGroupInfo
TableGroupInfo defines the information of JReport Table Group object. The TableGroupInfo includes the information of groupby, sort, filter, and special group options.
| Field Summary | |
|---|---|
static int |
ADVANCEDSORT
Sort type of group. |
static int |
ASCENDING
sort type of group |
static int |
DESCENDING
sort type of group |
static int |
NOTSORTED
sort type of group |
static int |
SPECIFIEDORDER
Sort type of group. |
| Constructor Summary | |
|---|---|
TableGroupInfo(java.lang.String groupFieldName,
int sortType)
Creates a GroupInfo object for a table. |
|
TableGroupInfo(java.lang.String blName,
java.lang.String groupFieldName,
int sortType,
int specialFunctionType)
Creates a GroupInfo. |
|
| Method Summary | |
|---|---|
void |
addChild(int index,
java.lang.Object element)
Inserts a group or detail at the specified position as a child of the group. |
boolean |
addChild(java.lang.Object child)
Appends a group or a detail's information as a child of this group. |
void |
addFooterInfo(int index,
TableHeaderFooterInfo element)
Inserts FooterInfo of the group at the specified position. |
boolean |
addFooterInfo(TableHeaderFooterInfo footerInfo)
Appends a footer's information of this group. |
boolean |
addGroupFilterInfo(FilterInfo filterInfo)
Appends a group filter's information into the set of FilterInfo. |
void |
addGroupFilterInfo(int index,
FilterInfo element)
Inserts FilterInfo of the group at the specified position. |
void |
addHeaderInfo(int index,
TableHeaderFooterInfo element)
Inserts the HeaderInfo of the group at the specified position. |
boolean |
addHeaderInfo(TableHeaderFooterInfo headerInfo)
Appends a header's information of this group. |
void |
addSortInfo(int index,
SortInfo element)
Inserts the SortInfo of the group at the specified position. |
boolean |
addSortInfo(SortInfo sortInfo)
Appends a group sort's information. |
void |
clearChildren()
Removes all of the children from the group. |
void |
clearFooterInfos()
Removes all of the footers' information from the group. |
void |
clearGroupFilterInfos()
Removes all of the filters' information from the group. |
void |
clearHeaderInfos()
Removes all of the headers' information from the group. |
void |
clearSortInfos()
Removes all of the sorts' information from the group. |
TableAdvanceOption |
getAdvOption()
Gets AdvanceOption of the group. |
java.lang.String |
getBLName()
Gets groupby with Business Logic node's BLQulifyName. |
java.lang.Object |
getChild(int index)
Returns the GroupInfo or DetailInfo at the specified position. |
java.util.Vector |
getChildren()
Gets children of this group. |
TableHeaderFooterInfo |
getFooterInfo(int index)
Returns the FooterInfo at the specified position. |
java.util.Vector |
getFooterInfos()
Gets the footers' information of this group. |
DisplayFieldInfo |
getGroupFieldInfo()
Gets the group field information. |
java.lang.String |
getGroupFieldName()
Gets the group field name. |
FilterInfo |
getGroupFilterInfo(int index)
Returns the FilterInfo at the specified position. |
java.util.Vector |
getGroupFilterInfos()
Sets the group filters' information. |
TableHeaderFooterInfo |
getHeaderInfo(int index)
Returns the HeaderInfo at the specified position. |
java.util.Vector |
getHeaderInfos()
Gets the headers' information of this group. |
double |
getIndentInterval()
Gets an indent interval against the previous group. |
SortInfo |
getSortInfo(int index)
Returns the SortInfo at the specified position. |
java.util.Vector |
getSortInfos()
Sets the group sorts' information. |
int |
getSortType()
Gets the sort type of the group. |
int |
getSpecialFunctionType()
Gets the special function type of the group. |
TableSpecifieldOption |
getSpecOption()
Gets the special option of the group's sort. |
boolean |
isIndentGroup()
Checks whether it is an indent group against the previous group or not. |
boolean |
isParallel()
Deprecated. since version 10.0. |
java.lang.Object |
removeChild(int index)
Removes the element at the specified position. |
boolean |
removeChild(java.lang.Object o)
Removes the first occurrence of the specified element. |
TableHeaderFooterInfo |
removeFooterInfo(int index)
Removes the FooterInfo at the specified position. |
boolean |
removeFooterInfo(TableHeaderFooterInfo o)
Removes the first occurrence of the FooterInfo. |
boolean |
removeGroupFilterInfo(FilterInfo filterInfo)
Removes the first occurrence of the specified FilterInfo. |
FilterInfo |
removeGroupFilterInfo(int index)
Removes the FilterInfo at the specified position. |
TableHeaderFooterInfo |
removeHeaderInfo(int index)
Removes the HeaderInfo at the specified position. |
boolean |
removeHeaderInfo(TableHeaderFooterInfo headerInfo)
Removes the first occurrence of the HeaderInfo. |
SortInfo |
removeSortInfo(int index)
Removes the SortInfo at the specified position. |
boolean |
removeSortInfo(SortInfo o)
Removes the first occurrence of the SortInfo. |
void |
setAdvOption(TableAdvanceOption advOption)
Sets AdvanceOption of the group. |
void |
setBLName(java.lang.String blName)
Sets groupby with Business Logic node's BLQulifyName. |
void |
setChildren(java.util.Vector children)
Sets the nested groups and details' information as the children of this group. |
void |
setFooterInfos(java.util.Vector footerInfos)
Sets the footers' information of this group. |
void |
setGroupFieldName(java.lang.String groupFieldName)
Sets the group field name. |
void |
setGroupFilterInfos(java.util.Vector groupFilterInfos)
Sets the group filters' information. |
void |
setHeaderInfos(java.util.Vector headerInfos)
Sets the headers' information of this group. |
void |
setIndentGroup(boolean isIndentGroup)
sets whether it is an indent group against the previous group or not. |
void |
setIndentInterval(double indentInterval)
Sets an indent interval value against the previous group. |
void |
setParallel(boolean isParallel)
Deprecated. since version 10.0. |
void |
setSortInfos(java.util.Vector sortInfos)
Sets the group sorts' information. |
void |
setSortType(int sortType)
Sets the sort type of the group. |
void |
setSpecialFunctionType(int specialFunctionType)
Sets the special function type of the group. |
void |
setSpecOption(TableSpecifieldOption specOption)
Sets the special option of the group's sort. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int ASCENDING
public static final int DESCENDING
public static final int NOTSORTED
public static final int SPECIFIEDORDER
public static final int ADVANCEDSORT
| Constructor Detail |
|---|
public TableGroupInfo(java.lang.String groupFieldName,
int sortType)
groupFieldName - The groupby field name.sortType - The sort order type.
public TableGroupInfo(java.lang.String blName,
java.lang.String groupFieldName,
int sortType,
int specialFunctionType)
groupFieldName - The groupby field name.sortType - The sort order type.specialFunctionType - The special function type.| Method Detail |
|---|
public TableAdvanceOption getAdvOption()
public void setAdvOption(TableAdvanceOption advOption)
ASCENDING, DESCENDING, or NOTSORTED.
advOption - Advanced Option of the Group.public DisplayFieldInfo getGroupFieldInfo()
public java.lang.String getGroupFieldName()
public void setGroupFieldName(java.lang.String groupFieldName)
groupFieldName - Group field name.public java.lang.String getBLName()
public void setBLName(java.lang.String blName)
blName - The Business Logic node's BLQulifyName of the groupby field.public java.util.Vector getGroupFilterInfos()
public void setGroupFilterInfos(java.util.Vector groupFilterInfos)
groupFilterInfos - Vector of FilterInfo.
public void addGroupFilterInfo(int index,
FilterInfo element)
index - Index at which the FilterInfo is to be inserted. The index starts at 0.element - FilterInfo to be inserted.
java.lang.ArrayIndexOutOfBoundsException - Index is out of range (index < 0 || index > size()).public boolean addGroupFilterInfo(FilterInfo filterInfo)
filterInfo - FilterInfo to be appended.
true if inserts object succeed; false otherwise.public void clearGroupFilterInfos()
public FilterInfo getGroupFilterInfo(int index)
index - Index of FilterInfo in the set of FilterInfo. The index starts with 0.
java.lang.ArrayIndexOutOfBoundsException - Index is out of range (index < 0 || index >=
size()).public FilterInfo removeGroupFilterInfo(int index)
index - The index of the FilterInfo to be removed.
java.lang.ArrayIndexOutOfBoundsException - Index out of range (index < 0 || index >= size()).public boolean removeGroupFilterInfo(FilterInfo filterInfo)
filterInfo - FilterInfo to be removed, if present.
true if the object is removed successfully; false otherwise.public java.util.Vector getSortInfos()
public void setSortInfos(java.util.Vector sortInfos)
ADVANCEDSORT.
sortInfos - The list of SortInfo.setSortType(int)
public void addSortInfo(int index,
SortInfo element)
ADVANCEDSORT.
index - Index at which the SortInfo is to be inserted.element - SortInfo to be inserted.
java.lang.ArrayIndexOutOfBoundsException - Index is out of range (index < 0 || index > size()).setSortType(int)public boolean addSortInfo(SortInfo sortInfo)
ADVANCEDSORT.
sortInfo - SortInfo to be added.
true if the object is inserted successfully; false otherwise.- See Also:
setSortType(int)public void clearSortInfos()
public SortInfo getSortInfo(int index)
index - Index of the SortInfo to return.
java.lang.ArrayIndexOutOfBoundsException - Index is out of range (index < 0 || index >=
size()).public SortInfo removeSortInfo(int index)
index - The index of the SortInfo to removed.
java.lang.ArrayIndexOutOfBoundsException - Index out of range (index < 0 || index >= size()).public boolean removeSortInfo(SortInfo o)
o - SortInfo to be removed, if present.
true if the object is removed successfully; false otherwise.public int getSortType()
#ASCENDING, {@link #DESCENDING},{@link #NOTSORTED},{@link #SPECIFIEDORDER},{@link #ADVANCEDSORT}public void setSortType(int sortType)
sortType - int type of the sort type.#ASCENDING}, {@link #DESCENDING},{@link #NOTSORTED},{@link #SPECIFIEDORDER},{@link #ADVANCEDSORT}public int getSpecialFunctionType()
public void setSpecialFunctionType(int specialFunctionType)
specialFunctionType - public TableSpecifieldOption getSpecOption()
public void setSpecOption(TableSpecifieldOption specOption)
SPECIFIEDORDER.
specOption - The TableSpecifieldOption of the group.setSortType(int)public java.util.Vector getChildren()
TableGroupInfo and TableDetailInfo.public void setChildren(java.util.Vector children)
public void addChild(int index,
java.lang.Object element)
index - Index at which the specified element is to be inserted.element - Element to be inserted. Element must be TableGroupInfo or TableDetailInfo.
java.lang.ArrayIndexOutOfBoundsException - if the index is out of range (index < 0 || index > size()).public boolean addChild(java.lang.Object child)
child - Element to be inserted. Element must be TableGroupInfo or TableDetailInfo.
true if inserts object succeed; false otherwise.public void clearChildren()
public java.lang.Object getChild(int index)
index - Index of the element to return.
java.lang.ArrayIndexOutOfBoundsException - Index is out of range (index < 0 || index >=
size()).public java.lang.Object removeChild(int index)
index - The index of the element to removed.
java.lang.ArrayIndexOutOfBoundsException - if the index is out of range (index < 0 || index >= size()).public boolean removeChild(java.lang.Object o)
o - GroupInfo or DetailInfo to be removed, if present.
true if the object is removed successfully; false otherwise.public boolean isParallel()
public void setParallel(boolean isParallel)
isParallel - Specifies if the group is a parallel section.public java.util.Vector getFooterInfos()
public void setFooterInfos(java.util.Vector footerInfos)
public void addFooterInfo(int index,
TableHeaderFooterInfo element)
index - Index at which the FooterInfo is to be inserted.element - FooterInfo to be inserted.
java.lang.ArrayIndexOutOfBoundsException - if the index is out of range (index < 0 || index > size()).public boolean addFooterInfo(TableHeaderFooterInfo footerInfo)
footerInfo - FooterInfo to be appended.
true if the object is inserted successfully; false otherwise.public void clearFooterInfos()
public TableHeaderFooterInfo getFooterInfo(int index)
index - Index of the FooterInfo to return.
java.lang.ArrayIndexOutOfBoundsException - if the index is out of range (index < 0 || index >=
size()).public TableHeaderFooterInfo removeFooterInfo(int index)
index - The index of the FooterInfo to be removed.
java.lang.ArrayIndexOutOfBoundsException - if the index out of range (index < 0 || index >= size()).public boolean removeFooterInfo(TableHeaderFooterInfo o)
o - FooterInfo to be removed, if present.
true if the object is removed successfully; false otherwise.public java.util.Vector getHeaderInfos()
public void setHeaderInfos(java.util.Vector headerInfos)
public void addHeaderInfo(int index,
TableHeaderFooterInfo element)
index - Index at which the HeaderInfo is to be inserted.element - HeaderInfo to be inserted.
java.lang.ArrayIndexOutOfBoundsException - if the index is out of range (index < 0 || index > size()).public boolean addHeaderInfo(TableHeaderFooterInfo headerInfo)
headerInfo - HeaderInfo to be appended.
true if inserts object succeed; false otherwise.public void clearHeaderInfos()
public TableHeaderFooterInfo getHeaderInfo(int index)
index - Index of the HeaderInfo to return.
java.lang.ArrayIndexOutOfBoundsException - if the index is out of range (index < 0 || index >=
size()).public TableHeaderFooterInfo removeHeaderInfo(int index)
index - The index of the HeaderInfo to be removed.
java.lang.ArrayIndexOutOfBoundsException - if the index out of range (index < 0 || index >= size()).public boolean removeHeaderInfo(TableHeaderFooterInfo headerInfo)
headerInfo - HeaderInfo to be removed, if present.
true if the object is removed successfully; false otherwise.public boolean isIndentGroup()
true if it is an indent group against the previous group; false otherwise;public void setIndentGroup(boolean isIndentGroup)
isIndentGroup - Sets true if it is an indent group against the previous group; false otherwise;public double getIndentInterval()
#API.setUnit(int),
and the default unit is inch.public void setIndentInterval(double indentInterval)
indentInterval - Indent interval value against the previous group. The unit of the value can be set by #API.setUnit(int),
and the default unit is inch.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||