|
i-net Clear Reports | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.inet.report.BySummaryOrder
public class BySummaryOrder
BySummaryOrder saves the options for the sort by aggregate function.
| Field Summary | |
|---|---|
static java.lang.String |
DEFAULT_OTHER_NAME
Default name for all other elements. |
static int |
GROUP_SORT_ALL
Display all elements sorted ascending or descending |
static int |
GROUP_SORT_BOTTOM_N
Display only first n elements in ascending sort order |
static int |
GROUP_SORT_BOTTOM_N_PERCENTAGE
Display only first n-procent elements in ascending sort order |
static int |
GROUP_SORT_TOP_N
Display only first n elements in descending sort order |
static int |
GROUP_SORT_TOP_N_PERCENTAGE
Display only first n-procent elements in descending sort order |
static int |
OTHER_RECORDS_DISCARD
All values with sorting number greater than n are discard and not part of the report. |
static int |
OTHER_RECORDS_GROUP_TO_OTHERS
All values with sorting number greater than n are group together to the group other. |
static int |
SORT_ASCENDING_ORDER
Constant for ascending order sort direction. |
static int |
SORT_DESCENDING_ORDER
Constant for descending order sort direction. |
| Method Summary | |
|---|---|
void |
addSummaryField(SummaryField sField)
Adds a summary field used for sorting. |
BySummaryOrder |
copy()
Creates a copy of this. |
boolean |
equals(java.lang.Object object)
Compares the other object with this. |
int |
getN()
Gets the count of displayed elements |
int |
getOther()
Gets the type for handling the values with sorting number greater than n. |
java.lang.String |
getOtherName()
Gets the display name the other group entry. |
int |
getSortDirection()
Gets the direction of the sorting |
int |
getSortType()
Gets the type of sorting |
SummaryField |
getSummaryField(int index)
Gets the summary field used for sorting at index position. |
int |
getSummaryFieldCount()
Use this method to get the number of summary fields used for sorting. |
java.lang.String |
paramString()
Returns the String representation of this object. |
void |
removeSummaryField(int index)
Removes the SummaryField from this sort order. |
void |
setN(int n)
Sets the count of displayed elements |
void |
setOther(int otherType)
Sets the type for handling the values with sorting number greater than n. |
void |
setOtherName(java.lang.String otherName)
Sets display name for the other group entry. |
void |
setSortDirection(int direction)
Sets the direction of sorting |
void |
setSortType(int type)
Sets the type of sorting |
| Methods inherited from interface com.inet.report.parser.NodeParser |
|---|
isDOMParser, parseDOM, parseElement, parseEndElement, parseText |
| Field Detail |
|---|
public static final java.lang.String DEFAULT_OTHER_NAME
public static final int GROUP_SORT_ALL
setSortType(int),
Constant Field Valuespublic static final int GROUP_SORT_TOP_N
setSortType(int),
Constant Field Valuespublic static final int GROUP_SORT_BOTTOM_N
setSortType(int),
Constant Field Valuespublic static final int GROUP_SORT_TOP_N_PERCENTAGE
setSortType(int),
Constant Field Valuespublic static final int GROUP_SORT_BOTTOM_N_PERCENTAGE
setSortType(int),
Constant Field Valuespublic static final int SORT_ASCENDING_ORDER
public static final int SORT_DESCENDING_ORDER
public static final int OTHER_RECORDS_GROUP_TO_OTHERS
setOther(int),
Constant Field Valuespublic static final int OTHER_RECORDS_DISCARD
setOther(int),
Constant Field Values| Method Detail |
|---|
public void setSortType(int type)
type - the type of sorting by summary.GROUP_SORT_ALL,
GROUP_SORT_TOP_N,
GROUP_SORT_BOTTOM_N,
GROUP_SORT_TOP_N_PERCENTAGE,
GROUP_SORT_BOTTOM_N_PERCENTAGEpublic int getSortType()
GROUP_SORT_ALL,
GROUP_SORT_TOP_N,
GROUP_SORT_BOTTOM_N,
GROUP_SORT_TOP_N_PERCENTAGE,
GROUP_SORT_BOTTOM_N_PERCENTAGEpublic java.lang.String getOtherName()
setOtherName(String).public void setN(int n)
n - count of shown group values.
java.lang.IllegalArgumentException - if n less than 0.public int getN()
public void setOtherName(java.lang.String otherName)
otherName - the new name.
java.lang.IllegalArgumentException - if the name is empty or null.setOther(int),
getOtherName()public int getOther()
setOther(int),
OTHER_RECORDS_DISCARD,
OTHER_RECORDS_GROUP_TO_OTHERSpublic void setOther(int otherType)
otherType - the new value.setOtherName(String),
getOther(),
OTHER_RECORDS_GROUP_TO_OTHERS,
OTHER_RECORDS_DISCARDpublic SummaryField getSummaryField(int index)
index - of the summary field.
java.lang.IndexOutOfBoundsException - if this index is out of bounds of the summary fields list.public int getSummaryFieldCount()
public void addSummaryField(SummaryField sField)
sField - SummaryField
java.lang.IllegalArgumentException - if the SummaryField null ispublic void removeSummaryField(int index)
SummaryField from this sort order.
index - of removed field.
java.lang.IndexOutOfBoundsException - if this index is out of bounds of the summary fields list or the list is null.public int getSortDirection()
SORT_ASCENDING_ORDER,
SORT_DESCENDING_ORDERpublic void setSortDirection(int direction)
direction - the sort direction of this sort order, asc. or desc.SORT_ASCENDING_ORDER,
SORT_DESCENDING_ORDERpublic java.lang.String paramString()
public boolean equals(java.lang.Object object)
equals in class java.lang.Objectobject - the other object
public BySummaryOrder copy()
|
i-net Clear Reports | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||