|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.rad.model.SortDefinition
public class SortDefinition
The SortDefinition
class specifies the sort order to use.
Example:
SortDefinition sSort = new SortDefinition(new String[] { "NAME"}, new boolean [] { true });
dbDataBook.setSort(sSort);
dbDataBook.open();
RemoteDataBook
,
DBAccess
,
Serialized FormConstructor Summary | |
---|---|
SortDefinition()
Creates a new instance of SortDefinition . |
|
SortDefinition(boolean pAscending,
String... pColumnNames)
Constructs a SortDefinition object with the column names
to sort and the boolean to use for all columns to sort ascending (=true) or
descending (=false). |
|
SortDefinition(String... pColumnNames)
Constructs a SortDefinition object with the column names
to sort and a default boolean Array which defines if the corresponding
(same index) is sorted ascending (=true). |
|
SortDefinition(String[] pColumnNames,
boolean[] pAscending)
Constructs a SortDefinition object with the column names
to sort , the boolean Array which defines if the corresponding
(same index) is sorted ascending (=true) or descending (=false). |
Method Summary | |
---|---|
SortDefinition |
clone()
Clone an ISortDefinition . |
String[] |
getColumns()
Returns the columns to sort. |
boolean[] |
isAscending()
Returns the boolean Array which defines if the corresponding
(same index) column is sorted ascending (=true) or descending (=false). |
void |
setAscending(boolean... pAscending)
Sets the the boolean Array which defines if the corresponding
(same index) column is sorted ascending (=true) or descending (=false). |
void |
setColumns(String... pColumnNames)
Sets the columns to sort. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SortDefinition()
SortDefinition
.
public SortDefinition(String... pColumnNames)
SortDefinition
object with the column names
to sort and a default boolean Array
which defines if the corresponding
(same index) is sorted ascending (=true).
pColumnNames
- the column names to sort, as String[]
public SortDefinition(boolean pAscending, String... pColumnNames)
SortDefinition
object with the column names
to sort and the boolean to use for all columns to sort ascending (=true) or
descending (=false).
pColumnNames
- the column names to sort, as String[]
pAscending
- the boolean to use for all columns to sort ascending (=true) or
descending (=false).public SortDefinition(String[] pColumnNames, boolean[] pAscending)
SortDefinition
object with the column names
to sort , the boolean Array
which defines if the corresponding
(same index) is sorted ascending (=true) or descending (=false).
pColumnNames
- the column names to sort, as String[]
pAscending
- the boolean Array
which defines if the corresponding
(same index) is sorted ascending (=true) or
descending (=false)Method Detail |
---|
public SortDefinition clone()
ISortDefinition
.
clone
in class Object
ISortDefinition
Object.clone()
public String[] getColumns()
public void setColumns(String... pColumnNames)
pColumnNames
- the columns to sortpublic boolean[] isAscending()
Array
which defines if the corresponding
(same index) column is sorted ascending (=true) or descending (=false).
Array
which defines if the corresponding
(same index) column is sorted ascending (=true) or descending (=false).public void setAscending(boolean... pAscending)
Array
which defines if the corresponding
(same index) column is sorted ascending (=true) or descending (=false).
pAscending
- the boolean Array
which defines if the corresponding
(same index) column is sorted ascending (=true) or descending (=false)public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |