|
||||||||||
| 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 Form| Constructor Summary | |
|---|---|
SortDefinition()
Creates a new instance of SortDefinition. |
|
SortDefinition(boolean pAscending,
java.lang.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(java.lang.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(java.lang.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. |
java.lang.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(java.lang.String... pColumnNames)
Sets the columns to sort. |
java.lang.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(java.lang.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,
java.lang.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(java.lang.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 java.lang.ObjectISortDefinitionObject.clone()public java.lang.String[] getColumns()
public void setColumns(java.lang.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 java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||