|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wingx.table.ListSort
public class ListSort
ListSort A simple class to hold the ordering information of one field in a list.
| Constructor Summary | |
|---|---|
ListSort()
|
|
ListSort(String field)
Creates a new ListSort on the given field. |
|
ListSort(String[] fields)
|
|
ListSort(String field,
boolean ascending)
Creates a new ListSort on the given field. |
|
ListSort(String field,
boolean ascending,
Comparator comparator)
|
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
|
Comparator |
getComparator()
|
String |
getField()
Returns the string representation of the field. |
String[] |
getFields()
|
int |
hashCode()
|
boolean |
isAscending()
Returns true if the current field is marked "ascending". |
void |
setAscending(boolean ascending)
|
void |
setComparator(Comparator comparator)
|
void |
switchSort()
Reverses the order. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ListSort()
public ListSort(String field)
public ListSort(String[] fields)
public ListSort(String field,
boolean ascending)
public ListSort(String field,
boolean ascending,
Comparator comparator)
| Method Detail |
|---|
public void switchSort()
public boolean isAscending()
public String getField()
public String[] getFields()
public void setAscending(boolean ascending)
public Comparator getComparator()
public void setComparator(Comparator comparator)
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||