• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java SortOrder类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中org.richfaces.component.SortOrder的典型用法代码示例。如果您正苦于以下问题:Java SortOrder类的具体用法?Java SortOrder怎么用?Java SortOrder使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



SortOrder类属于org.richfaces.component包,在下文中一共展示了SortOrder类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: init

import org.richfaces.component.SortOrder; //导入依赖的package包/类
@PostConstruct
public void init() {
    HashMap<String, TableColumns> columnNamesMapping = getColumnNamesMapping();
    columnNamesMapping.put(PURCHASE_ORDER_NUMBER, TableColumns.PURCHASE_ORDER_NUMBER);
    columnNamesMapping.put(SERVICE_NAME, TableColumns.SERVICE_NAME);
    columnNamesMapping.put(SUBSCRIPTION_ID, TableColumns.SUBSCRIPTION_ID);
    columnNamesMapping.put(UNIT, TableColumns.UNIT);
    columnNamesMapping.put(ACTIVATION, TableColumns.ACTIVATION_TIME);
    columnNamesMapping.put(STATUS, TableColumns.STATUS);

    getSortOrders().put(PURCHASE_ORDER_NUMBER, SortOrder.unsorted);
    getSortOrders().put(SERVICE_NAME, SortOrder.unsorted);
    getSortOrders().put(SUBSCRIPTION_ID, SortOrder.unsorted);
    getSortOrders().put(UNIT, SortOrder.unsorted);
    getSortOrders().put(ACTIVATION, SortOrder.descending);
    getSortOrders().put(STATUS, SortOrder.unsorted);
}
 
开发者ID:servicecatalog,项目名称:oscm,代码行数:18,代码来源:SubscriptionListsLazyDataModel.java


示例2: init

import org.richfaces.component.SortOrder; //导入依赖的package包/类
@PostConstruct
public void init() {
	Map<String, TableColumns> columnNamesMapping = getColumnNamesMapping();
	columnNamesMapping.put(CUSTOMER_NAME, TableColumns.CUSTOMER_NAME);
	columnNamesMapping.put(CUSTOMER_ID, TableColumns.CUSTOMER_ID);
	columnNamesMapping.put(SUBSCRIPTION_ID, TableColumns.SUBSCRIPTION_ID);
	columnNamesMapping.put(ACTIVATION_TIME, TableColumns.ACTIVATION_TIME);
	columnNamesMapping.put(SERVICE_NAME, TableColumns.SERVICE_NAME);

	getSortOrders().put(CUSTOMER_NAME, SortOrder.unsorted);
    getSortOrders().put(CUSTOMER_ID, SortOrder.unsorted);
    getSortOrders().put(SUBSCRIPTION_ID, SortOrder.unsorted);
    getSortOrders().put(ACTIVATION_TIME, SortOrder.descending);
    getSortOrders().put(SERVICE_NAME, SortOrder.unsorted);

}
 
开发者ID:servicecatalog,项目名称:oscm,代码行数:17,代码来源:BPLazyDataModel.java


示例3: get

import org.richfaces.component.SortOrder; //导入依赖的package包/类
@Override
public SortOrder get(Object key) {
    SortOrder value = super.get(key);
    if (value == null && key.toString().endsWith(DEFAULT_COLUM_SUFFIX)) {
        value = SortOrder.ascending;
    }
    return value;
}
 
开发者ID:servicecatalog,项目名称:oscm,代码行数:9,代码来源:TableState.java


示例4: init

import org.richfaces.component.SortOrder; //导入依赖的package包/类
@PostConstruct
public void init() {
    getColumnNamesMapping().put(PURCHASE_ORDER_NUMBER, TableColumns.PURCHASE_ORDER_NUMBER);
    getColumnNamesMapping().put(SERVICE_NAME, TableColumns.SERVICE_NAME);
    getColumnNamesMapping().put(SUBSCRIPTION_ID, TableColumns.SUBSCRIPTION_ID);
    getColumnNamesMapping().put(ACTIVATION, TableColumns.ACTIVATION_TIME);
    getColumnNamesMapping().put(STATUS, TableColumns.STATUS);

    getSortOrders().put(PURCHASE_ORDER_NUMBER, SortOrder.unsorted);
    getSortOrders().put(SERVICE_NAME, SortOrder.unsorted);
    getSortOrders().put(SUBSCRIPTION_ID, SortOrder.unsorted);
    getSortOrders().put(ACTIVATION, SortOrder.descending);
    getSortOrders().put(STATUS, SortOrder.unsorted);
}
 
开发者ID:servicecatalog,项目名称:oscm,代码行数:15,代码来源:MySubscriptionsLazyDataModel.java


示例5: init

import org.richfaces.component.SortOrder; //导入依赖的package包/类
@PostConstruct
public void init() {
    getColumnNamesMapping().put(USER_ID, TableColumns.USER_ID);
    getColumnNamesMapping().put(FIRST_NAME, TableColumns.FIRST_NAME);
    getColumnNamesMapping().put(LAST_NAME, TableColumns.LAST_NAME);
    getColumnNamesMapping().put(ROLE_IN_UNIT, TableColumns.ROLE_IN_UNIT);

    getSortOrders().put(USER_ID, SortOrder.unsorted);
    getSortOrders().put(FIRST_NAME, SortOrder.unsorted);
    getSortOrders().put(LAST_NAME, SortOrder.unsorted);
    getSortOrders().put(ROLE_IN_UNIT, SortOrder.unsorted);
}
 
开发者ID:servicecatalog,项目名称:oscm,代码行数:13,代码来源:UsersLazyDataModel.java


示例6: init

import org.richfaces.component.SortOrder; //导入依赖的package包/类
@PostConstruct
public void init() {
    getColumnNamesMapping().put(SUBSCRIPTION_ID,
            TableColumns.SUBSCRIPTION_ID);
    getColumnNamesMapping().put(ROLE_IN_SUB, TableColumns.ROLE_IN_SUB);

    getSortOrders().put(SUBSCRIPTION_ID, SortOrder.unsorted);
    getSortOrders().put(ROLE_IN_SUB, SortOrder.unsorted);
}
 
开发者ID:servicecatalog,项目名称:oscm,代码行数:10,代码来源:UserSubscriptionsLazyDataModel.java


示例7: testColumnSortingMap_Default

import org.richfaces.component.SortOrder; //导入依赖的package包/类
@Test
public void testColumnSortingMap_Default() {
    String key = CLIENTID
            + TableState.ColumnSortingMap.DEFAULT_COLUM_SUFFIX;
    ColumnSortingMap map = new TableState.ColumnSortingMap();

    assertEquals(SortOrder.ascending, map.get(key));
}
 
开发者ID:servicecatalog,项目名称:oscm,代码行数:9,代码来源:TableStateTest.java


示例8: 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


示例9: bug11725

import org.richfaces.component.SortOrder; //导入依赖的package包/类
@Test
public void bug11725() {
    //given
    //when
    model.init();
    //then
    assertEquals(SortOrder.descending, model.getSortOrders().get(model.getACTIVATION()));
}
 
开发者ID:servicecatalog,项目名称:oscm,代码行数:9,代码来源:MySubscriptionsLazyDataModelTest.java


示例10: bug11725

import org.richfaces.component.SortOrder; //导入依赖的package包/类
@Test
public void bug11725() {
    //given
    //when
    beanUnderTheTest.init();
    //then
    assertEquals(SortOrder.descending, beanUnderTheTest.getSortOrders().get(beanUnderTheTest.getACTIVATION()));
}
 
开发者ID:servicecatalog,项目名称:oscm,代码行数:9,代码来源:SubscriptionListsLazyDataModelTest.java


示例11: 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


示例12: 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


示例13: 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


示例14: 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


示例15: 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


示例16: 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


示例17: 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


示例18: 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


示例19: 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


示例20: 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类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java TiltExerciseVoCollection类代码示例发布时间:2022-05-15
下一篇:
Java JavaCommenter类代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap