本文整理汇总了Java中org.richfaces.component.SortOrder.descending方法的典型用法代码示例。如果您正苦于以下问题:Java SortOrder.descending方法的具体用法?Java SortOrder.descending怎么用?Java SortOrder.descending使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.richfaces.component.SortOrder
的用法示例。
在下文中一共展示了SortOrder.descending方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: testColumnSortingMap
import org.richfaces.component.SortOrder; //导入方法依赖的package包/类
@Test
public void testColumnSortingMap() {
SortOrder value = SortOrder.descending;
ColumnSortingMap map = new TableState.ColumnSortingMap();
map.put(CLIENTID, value);
assertSame(value, map.get(CLIENTID));
}
示例2: setSortOrderToFirstName
import org.richfaces.component.SortOrder; //导入方法依赖的package包/类
public void setSortOrderToFirstName() {
if (SortOrder.ascending == sortOrderFirstName) {
sortOrderFirstName = SortOrder.descending;
} else {
sortOrderFirstName = SortOrder.ascending;
}
sortOrderLastName = SortOrder.unsorted;
sortOrderSpecialties = SortOrder.unsorted;
}
示例3: setSortOrderToLastName
import org.richfaces.component.SortOrder; //导入方法依赖的package包/类
public void setSortOrderToLastName() {
sortOrderFirstName = SortOrder.unsorted;
if (SortOrder.ascending==sortOrderLastName) {
sortOrderLastName = SortOrder.descending;
} else {
sortOrderLastName = SortOrder.ascending;
}
sortOrderSpecialties = SortOrder.unsorted;
}
示例4: setSortOrderToSpecialties
import org.richfaces.component.SortOrder; //导入方法依赖的package包/类
public void setSortOrderToSpecialties() {
sortOrderFirstName = SortOrder.unsorted;
sortOrderLastName = SortOrder.unsorted;
if (SortOrder.ascending==sortOrderSpecialties) {
sortOrderSpecialties = SortOrder.descending;
} else {
sortOrderSpecialties = SortOrder.ascending;
}
}
示例5: switchSortOrder
import org.richfaces.component.SortOrder; //导入方法依赖的package包/类
public void switchSortOrder(){
if(petTypeSortOrder == SortOrder.ascending){
petTypeSortOrder = SortOrder.descending;
} else {
petTypeSortOrder = SortOrder.ascending;
}
}
示例6: switchSortOrder
import org.richfaces.component.SortOrder; //导入方法依赖的package包/类
public void switchSortOrder(){
if(specialtySortOrder==SortOrder.ascending){
specialtySortOrder=SortOrder.descending;
} else {
specialtySortOrder=SortOrder.ascending;
}
}
示例7: setSortOrderToName
import org.richfaces.component.SortOrder; //导入方法依赖的package包/类
public void setSortOrderToName(){
sortOrderAddress = SortOrder.unsorted;
sortOrderCity = SortOrder.unsorted;
sortOrderTelephone = SortOrder.unsorted;
if(sortOrderName==SortOrder.ascending){
sortOrderName = SortOrder.descending;
} else {
sortOrderName = SortOrder.ascending;
}
}
示例8: setSortOrderToAddress
import org.richfaces.component.SortOrder; //导入方法依赖的package包/类
public void setSortOrderToAddress(){
sortOrderName = SortOrder.unsorted;
sortOrderCity = SortOrder.unsorted;
sortOrderTelephone = SortOrder.unsorted;
if(sortOrderAddress == SortOrder.ascending){
sortOrderAddress = SortOrder.descending;
} else {
sortOrderAddress = SortOrder.ascending;
}
}
示例9: setSortOrderToCity
import org.richfaces.component.SortOrder; //导入方法依赖的package包/类
public void setSortOrderToCity(){
sortOrderName = SortOrder.unsorted;
sortOrderAddress = SortOrder.unsorted;
sortOrderTelephone = SortOrder.unsorted;
if(sortOrderCity == SortOrder.ascending){
sortOrderCity = SortOrder.descending;
} else {
sortOrderCity = SortOrder.ascending;
}
}
示例10: setSortOrderToTelephone
import org.richfaces.component.SortOrder; //导入方法依赖的package包/类
public void setSortOrderToTelephone(){
sortOrderName = SortOrder.unsorted;
sortOrderAddress = SortOrder.unsorted;
sortOrderCity = SortOrder.unsorted;
if(sortOrderTelephone == SortOrder.ascending){
sortOrderTelephone = SortOrder.descending;
} else {
sortOrderTelephone = SortOrder.ascending;
}
}
示例11: getSortOrder
import org.richfaces.component.SortOrder; //导入方法依赖的package包/类
@Override
public SortOrder getSortOrder(final String columnName) {
final SORT order = getSort(columnName);
if (order != null) {
switch (order) {
case ASCENDING:
return SortOrder.ascending;
case DESCENDING:
return SortOrder.descending;
default:
return SortOrder.unsorted;
}
}
return SortOrder.unsorted;
}