|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jaxfront.core.util.TreeSort
public class TreeSort
This class represents a sort mechanism that allows sorting of a tree.
| Field Summary | |
|---|---|
static java.lang.String |
SORT_ASC
|
static java.lang.String |
SORT_DESC
|
| Constructor Summary | |
|---|---|
TreeSort()
|
|
| Method Summary | |
|---|---|
void |
add(java.lang.Object newObject)
Adds a new object that will be compared and sort. |
static java.lang.String[] |
sort(java.lang.String[][] unsorted,
java.lang.String rule,
int ruleIndex,
boolean isNumberSort)
|
static java.lang.String[] |
sort(java.lang.String[] unsorted,
java.lang.String rule)
Sorts elements of a string array. |
static java.util.Vector |
sort(java.util.Vector v,
Sortable sort)
Sorts elements of a vector according to the sort object. |
static java.util.Vector |
sort(java.util.Vector v,
Sortable sort,
java.lang.String rule)
Sorts elements of a vector according to the sort object. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static java.lang.String SORT_ASC
public static java.lang.String SORT_DESC
| Constructor Detail |
|---|
public TreeSort()
| Method Detail |
|---|
public void add(java.lang.Object newObject)
newObject - a new object
public static java.util.Vector sort(java.util.Vector v,
Sortable sort)
v - a vector that needs to be sortedsort - defines how to the vector will be sort
public static java.util.Vector sort(java.util.Vector v,
Sortable sort,
java.lang.String rule)
v - a vector that needs to be sortedsort - defines how to the vector will be sort
public static java.lang.String[] sort(java.lang.String[] unsorted,
java.lang.String rule)
unsorted - a string array that needs to be sortedrule - defines how to the vector will be sort
public static java.lang.String[] sort(java.lang.String[][] unsorted,
java.lang.String rule,
int ruleIndex,
boolean isNumberSort)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||