当前位置: 首页>>代码示例>>Java>>正文


Java SortOrder.descending方法代码示例

本文整理汇总了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));
}
 
开发者ID:servicecatalog,项目名称:oscm,代码行数:9,代码来源:TableStateTest.java

示例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;
}
 
开发者ID:phasenraum2010,项目名称:javaee7-petclinic,代码行数:10,代码来源:VetSortingBean.java

示例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;
}
 
开发者ID:phasenraum2010,项目名称:javaee7-petclinic,代码行数:10,代码来源:VetSortingBean.java

示例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;
    }
}
 
开发者ID:phasenraum2010,项目名称:javaee7-petclinic,代码行数:10,代码来源:VetSortingBean.java

示例5: switchSortOrder

import org.richfaces.component.SortOrder; //导入方法依赖的package包/类
public void switchSortOrder(){
    if(petTypeSortOrder == SortOrder.ascending){
        petTypeSortOrder = SortOrder.descending;
    } else {
        petTypeSortOrder = SortOrder.ascending;
    }
}
 
开发者ID:phasenraum2010,项目名称:javaee7-petclinic,代码行数:8,代码来源:PetTypeController.java

示例6: switchSortOrder

import org.richfaces.component.SortOrder; //导入方法依赖的package包/类
public void switchSortOrder(){
    if(specialtySortOrder==SortOrder.ascending){
        specialtySortOrder=SortOrder.descending;
    } else {
        specialtySortOrder=SortOrder.ascending;
    }
}
 
开发者ID:phasenraum2010,项目名称:javaee7-petclinic,代码行数:8,代码来源:SpecialtyController.java

示例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;
    }
}
 
开发者ID:phasenraum2010,项目名称:javaee7-petclinic,代码行数:11,代码来源:OwnerSortingBean.java

示例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;
    }
}
 
开发者ID:phasenraum2010,项目名称:javaee7-petclinic,代码行数:11,代码来源:OwnerSortingBean.java

示例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;
    }
}
 
开发者ID:phasenraum2010,项目名称:javaee7-petclinic,代码行数:11,代码来源:OwnerSortingBean.java

示例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;
    }
}
 
开发者ID:phasenraum2010,项目名称:javaee7-petclinic,代码行数:11,代码来源:OwnerSortingBean.java

示例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;
}
 
开发者ID:qjafcunuas,项目名称:jbromo,代码行数:16,代码来源:AbstractDataTableSortColumn.java


注:本文中的org.richfaces.component.SortOrder.descending方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。