|
Style Intelligence v12.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectinetsoft.report.filter.SortOrder
public class SortOrder
Group sort order class. This class defines several sort constant and used to define specific group sort order.
| Field Summary | |
|---|---|
static int |
GROUP_OTHERS
Other group option when using specific order: put all others together. |
static int |
LEAVE_OTHERS
Other group option when using specific order: leave all other data in their own group. |
static int |
SORT_ASC
Ascendent order. |
static int |
SORT_DESC
Descendent order. |
static int |
SORT_NONE
No sorting. |
static int |
SORT_ORIGINAL
Original order, treat the data as already sorted. |
static int |
SORT_SPECIFIC
Specific order, using named group. |
static int |
SORT_VALUE_ASC
Sort by value ascendent order. |
static int |
SORT_VALUE_DESC
Sort by value descendent order. |
| Fields inherited from interface inetsoft.report.Comparer |
|---|
NEGATIVE_DOUBLE_ERROR, NEGATIVE_FLOAT_ERROR, POSITIVE_DOUBLE_ERROR, POSITIVE_FLOAT_ERROR |
| Constructor Summary | |
|---|---|
SortOrder(int type)
Create a sort order object with order type. |
|
| Method Summary | |
|---|---|
void |
addGroupCondition(String name,
ConditionGroup group)
Get the ith specific group name. |
Object |
clone()
Clone this object. |
int |
compare(Date d1,
Date d2)
Return compare of two date according to the date order selection. |
int |
compare(double v1,
double v2)
This method should return > 0 if v1 is greater than v2, 0 if v1 is equal to v2, or < 0 if v1 is less than v2. |
int |
compare(float v1,
float v2)
This method should return > 0 if v1 is greater than v2, 0 if v1 is equal to v2, or < 0 if v1 is less than v2. |
int |
compare(int v1,
int v2)
This method should return > 0 if v1 is greater than v2, 0 if v1 is equal to v2, or < 0 if v1 is less than v2. |
int |
compare(long v1,
long v2)
This method should return > 0 if v1 is greater than v2, 0 if v1 is equal to v2, or < 0 if v1 is less than v2. |
int |
compare(Object d1,
Object d2)
Comparer interface. |
int |
compare(short v1,
short v2)
This method should return > 0 if v1 is greater than v2, 0 if v1 is equal to v2, or < 0 if v1 is less than v2. |
boolean |
containsGroup(Object name)
Check if contains a named group. |
String |
getDataType()
Get data type. |
String |
getGroupName(int index)
Get specific group names. |
int |
getGroupNameIndex(Object name)
Get the index of a group name. |
String[] |
getGroupNames()
Get specific group names. |
double |
getInterval()
Get date period interval. |
int |
getOption()
Get date period option. |
int |
getOrder()
Get order type. |
int |
getOthers()
Get other groups option. |
boolean |
isAsc()
Determine if the order type if ascendent. |
boolean |
isDatePostProcess()
Check date is post proocessed here. |
boolean |
isDesc()
Determine if the order type if descendent. |
boolean |
isOriginal()
Determine if the order type if original sort. |
boolean |
isSpecific()
Determine if using specific order. |
void |
removeAllGroupNames()
Remove all specific group names. |
void |
removeGroupCondition(String name)
Get the ith specific group name. |
void |
setAsc(boolean asc)
Set ascending option. |
void |
setDataType(String dtype)
Set data type. |
void |
setDatePostProcess(boolean post)
Set date type object need post process here, for worksheet and viewsheet, cause we already create a formula field to post process it, so the tag will be always false, and for designer and adhoc, if db has been process it already, this tag will be false, otherwise will be true, default is true. |
void |
setDesc(boolean desc)
Set descending option. |
void |
setGroupCondition(String name,
ConditionGroup group)
Get the ith specific group name. |
void |
setInterval(double d,
int opt)
Set date period interval and option. |
void |
setOrder(int type)
Set the type of order. |
void |
setOriginal(boolean original)
Set original option. |
void |
setOthers(int others)
Set other groups option. |
void |
setSpecific(boolean b)
Set specific order option. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Comparator |
|---|
equals |
| Field Detail |
|---|
public static final int SORT_ASC
public static final int SORT_DESC
public static final int SORT_VALUE_ASC
public static final int SORT_VALUE_DESC
public static final int SORT_ORIGINAL
public static final int SORT_SPECIFIC
public static final int SORT_NONE
public static final int GROUP_OTHERS
public static final int LEAVE_OTHERS
| Constructor Detail |
|---|
public SortOrder(int type)
type - type of order, one of SORT_ASC,
SORT_DESC, SORT_ORIGINAL and SORT_SPECIFIC.| Method Detail |
|---|
public void setDatePostProcess(boolean post)
public boolean isDatePostProcess()
public int getOrder()
public void setOrder(int type)
type - type of order.public String getDataType()
public void setDataType(String dtype)
dtype - the specified data type.public boolean isAsc()
public void setAsc(boolean asc)
asc - true if ascending, false if descendingpublic boolean isDesc()
public void setDesc(boolean desc)
desc - true if descending, false if ascendingpublic boolean isOriginal()
public void setOriginal(boolean original)
original - true if original is on, false if original is offpublic boolean isSpecific()
public void setSpecific(boolean b)
b - true for using specific order.public String[] getGroupNames()
public String getGroupName(int index)
public int getGroupNameIndex(Object name)
if the specified group name is not found, take it to be "Others" and
return Integer.MAX_VALUE.
name - the specified group name
public boolean containsGroup(Object name)
name - the specified group name
public void addGroupCondition(String name,
ConditionGroup group)
public void setGroupCondition(String name,
ConditionGroup group)
public void removeGroupCondition(String name)
public void removeAllGroupNames()
public void setOthers(int others)
others - other group option.public int getOthers()
public void setInterval(double d,
int opt)
d - date period interval.opt - date period option.public double getInterval()
public int getOption()
public int compare(double v1,
double v2)
compare in interface Comparerv1 - comparison value.v2 - comparison value.
public int compare(float v1,
float v2)
compare in interface Comparerv1 - comparison value.v2 - comparison value.
public int compare(long v1,
long v2)
compare in interface Comparerv1 - comparison value.v2 - comparison value.
public int compare(int v1,
int v2)
compare in interface Comparerv1 - comparison value.v2 - comparison value.
public int compare(short v1,
short v2)
compare in interface Comparerv1 - comparison value.v2 - comparison value.
public int compare(Object d1,
Object d2)
compare in interface Comparercompare in interface Comparatord1 - comparison value.d2 - comparison value.
public int compare(Date d1,
Date d2)
public Object clone()
clone in class Object
|
Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||