亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? rowsorter.java

?? dispalytag的源碼
?? JAVA
字號:
/** * Licensed under the Artistic License; you may not use this file * except in compliance with the License. * You may obtain a copy of the License at * *      http://displaytag.sourceforge.net/license.html * * THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. */package org.displaytag.model;import java.util.Comparator;import org.apache.commons.lang.builder.EqualsBuilder;import org.apache.commons.lang.builder.HashCodeBuilder;import org.displaytag.decorator.TableDecorator;import org.displaytag.exception.ObjectLookupException;import org.displaytag.exception.RuntimeLookupException;import org.displaytag.util.LookupUtil;/** * Comparator for rows. * @author Fabrizio Giustina * @version $Revision: 1139 $ ($Author: fgiust $) */public class RowSorter implements Comparator{    /**     * name of the property in bean.     */    private String property;    /**     * table decorator.     */    private TableDecorator decorator;    /**     * sort order ascending?     */    private boolean ascending;    /**     * Index of the sorted column.     */    private int columnIndex;    /**     * Comparator used for comparisons.     */    private Comparator comparator;    /**     * Initialize a new RowSorter.     * @param sortedColumnIndex index of the sorted column     * @param beanProperty name of the property. If pProperty is null column index is used to get a static cell value     * from the row object     * @param tableDecorator TableDecorator instance     * @param ascendingOrder boolean ascending order?     * @param compar the comparator to use     */    public RowSorter(        int sortedColumnIndex,        String beanProperty,        TableDecorator tableDecorator,        boolean ascendingOrder,        Comparator compar)    {        this.columnIndex = sortedColumnIndex;        this.property = beanProperty;        this.decorator = tableDecorator;        this.ascending = ascendingOrder;        this.comparator = compar;        if (compar == null)        {            throw new IllegalArgumentException(                "A null comparator has been passed to RowSorter. A comparator instance is required");        }    }    /**     * Compares two objects by first fetching a property from each object and then comparing that value. If there are     * any errors produced while trying to compare these objects then a RunTimeException will be thrown as any error     * found here will most likely be a programming error that needs to be quickly addressed (like trying to compare     * objects that are not comparable, or trying to read a property from a bean that is invalid, etc...)     * @param object1 Object     * @param object2 Object     * @return int     * @see java.util.Comparator#compare(Object, Object)     */    public final int compare(Object object1, Object object2)    {        Object obj1 = null;        Object obj2 = null;        // if property is null compare using two static cell objects        if (this.property == null)        {            if (object1 instanceof Row)            {                obj1 = ((Row) object1).getCellList().get(this.columnIndex);            }            if (object2 instanceof Row)            {                obj2 = ((Row) object2).getCellList().get(this.columnIndex);            }            return checkNullsAndCompare(obj1, obj2);        }        if (object1 instanceof Row)        {            obj1 = ((Row) object1).getObject();        }        if (object2 instanceof Row)        {            obj2 = ((Row) object2).getObject();        }        try        {            Object result1;            Object result2;            // If they have supplied a decorator, then make sure and use it for the sorting as well            if (this.decorator != null && this.decorator.hasGetterFor(this.property))            {                // set the row before sending to the decorator                this.decorator.initRow(obj1, 0, 0);                result1 = LookupUtil.getBeanProperty(this.decorator, this.property);                // set the row before sending to the decorator                this.decorator.initRow(obj2, 0, 0);                result2 = LookupUtil.getBeanProperty(this.decorator, this.property);            }            else            {                result1 = LookupUtil.getBeanProperty(obj1, this.property);                result2 = LookupUtil.getBeanProperty(obj2, this.property);            }            return checkNullsAndCompare(result1, result2);        }        catch (ObjectLookupException e)        {            throw new RuntimeLookupException(getClass(), this.property, e);        }    }    /**     * Compares two given objects, and handles the case where nulls are present.     * @param object1 first object to compare     * @param object2 second object to compare     * @return int result     */    private int checkNullsAndCompare(Object object1, Object object2)    {        int returnValue;        if (object1 == null && object2 != null)        {            returnValue = -1;        }        else if (object1 != null && object2 == null)        {            returnValue = 1;        }        else if (object1 == null && object2 == null)        {            // both null            returnValue = 0;        }        else        {            returnValue = comparator.compare(object1, object2);        }        int ascendingInt = this.ascending ? 1 : -1;        return ascendingInt * returnValue;    }    /**     * Is this Comparator the same as another one?     * @param object Object     * @return boolean     * @see java.util.Comparator#equals(Object)     */    public final boolean equals(Object object)    {        if (object instanceof RowSorter)        {            return new EqualsBuilder().append(this.property, ((RowSorter) object).property).append(                this.columnIndex,                ((RowSorter) object).columnIndex).isEquals();        }        return false;    }    /**     * @see java.lang.Object#hashCode()     */    public final int hashCode()    {        return new HashCodeBuilder(31, 33).append(this.property).append(this.columnIndex).toHashCode();    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩国产欧美在线视频| 香蕉乱码成人久久天堂爱免费| 亚洲午夜激情av| 日韩一区二区三区三四区视频在线观看 | 国产精品视频看| 欧美曰成人黄网| 亚洲成人动漫在线观看| 欧美va亚洲va在线观看蝴蝶网| 粉嫩久久99精品久久久久久夜| 亚洲欧洲av另类| 日韩欧美一卡二卡| 欧美一级欧美三级在线观看| 精品国产精品网麻豆系列| 国产麻豆精品一区二区| 最新国产精品久久精品| 7777精品伊人久久久大香线蕉的 | 国产日韩综合av| 91在线看国产| 国产美女精品一区二区三区| 国产性做久久久久久| 欧洲在线/亚洲| 成人深夜视频在线观看| 久久精品理论片| 亚洲美女偷拍久久| 国产丝袜欧美中文另类| 韩国视频一区二区| 91精品国产麻豆国产自产在线 | 日本精品一区二区三区高清| 激情欧美日韩一区二区| 午夜精品久久久久久久久| 国产精品少妇自拍| 国产三级三级三级精品8ⅰ区| 精品三级在线观看| 精品日产卡一卡二卡麻豆| 91视频91自| 国产一区二区三区国产| 日韩高清一区二区| 视频一区欧美日韩| 日本系列欧美系列| 蜜桃av噜噜一区| 成人三级在线视频| 91亚洲精品久久久蜜桃网站| 色综合欧美在线| 欧美日韩精品一区二区三区| 欧美电影在哪看比较好| 337p日本欧洲亚洲大胆精品 | 欧美精品久久久久久久久老牛影院| 91小视频免费看| 欧美一区二区大片| 亚洲日本欧美天堂| 色呦呦国产精品| 无吗不卡中文字幕| 美女免费视频一区二区| 国产一区二区三区精品视频| 色综合一个色综合| 日韩免费观看高清完整版| 久久精品视频在线免费观看| 一区二区三区精品| 成人激情动漫在线观看| 91精品国产入口| 日韩av一级片| 在线观看免费成人| 久久综合久久综合久久综合| 午夜私人影院久久久久| 99精品国产91久久久久久| 精品国产一区二区三区四区四 | 99久久婷婷国产综合精品| 欧美一级二级三级乱码| 亚洲欧美日韩国产一区二区三区| 激情偷乱视频一区二区三区| 日韩一区二区高清| 久久99精品网久久| 欧美精三区欧美精三区| 亚洲视频在线一区二区| 成人激情开心网| 亚洲人成小说网站色在线| 大白屁股一区二区视频| 久久久亚洲午夜电影| 国产精品99久| 伊人色综合久久天天人手人婷| av成人动漫在线观看| 亚洲图片欧美激情| 欧美日韩免费在线视频| 亚洲男同1069视频| 91精品国产综合久久久蜜臀粉嫩| 亚洲欧美日韩成人高清在线一区| 99久久久久久| 性做久久久久久免费观看欧美| 日韩一二三区不卡| 国产一区二区三区久久久| 国产精品区一区二区三| 91污在线观看| 久久超碰97人人做人人爱| 国产精品私人影院| 欧美日韩成人一区| 国产成人自拍高清视频在线免费播放| 国产精品五月天| 日韩一区二区高清| 一区二区三区 在线观看视频| 91在线一区二区| 青青草国产成人99久久| 亚洲欧洲av色图| 国产视频911| 日韩欧美久久一区| 欧美视频一区二| 不卡av免费在线观看| 日韩综合一区二区| 日韩电影网1区2区| 亚洲成av人片一区二区梦乃| 中文字幕亚洲区| 国产精品每日更新| 久久久久国产一区二区三区四区| 欧美人与性动xxxx| 精品视频在线免费| 欧美四级电影网| 日本韩国视频一区二区| 99国产精品久久久久| 国产成人免费av在线| 国产伦精品一区二区三区免费迷| 国产资源在线一区| 久久91精品久久久久久秒播| 黄页网站大全一区二区| 国产成人精品综合在线观看| www.激情成人| 欧美精品在线观看播放| 精品国产一区二区在线观看| 中文一区在线播放| 亚洲一区国产视频| 六月丁香综合在线视频| thepron国产精品| 欧美日韩精品专区| 久久精品视频免费| 亚洲精品成a人| 国产美女一区二区| 欧美欧美午夜aⅴ在线观看| 26uuu精品一区二区| 亚洲精品国产成人久久av盗摄| 国产在线视视频有精品| 欧美揉bbbbb揉bbbbb| 中文av一区特黄| 精品一区二区免费在线观看| 欧美少妇bbb| 中文字幕亚洲成人| 福利视频网站一区二区三区| 欧美一区二区三区免费观看视频| 日韩毛片高清在线播放| 激情深爱一区二区| 欧美偷拍一区二区| 成人免费一区二区三区视频 | 99re热这里只有精品视频| 欧美电影免费观看高清完整版在| 欧美日韩一区二区三区不卡| 亚洲成人手机在线| 91丨porny丨首页| 国产精品美女久久久久久| 国产69精品久久777的优势| 欧美成人精品二区三区99精品| 亚洲va韩国va欧美va精品| 在线视频你懂得一区| 亚洲成人动漫精品| 欧美日韩国产a| 激情欧美日韩一区二区| 精品嫩草影院久久| 高清国产一区二区三区| 精品三级av在线| 国产精品白丝av| 久久综合五月天婷婷伊人| 成人黄色小视频在线观看| 欧美国产在线观看| 欧美日韩精品欧美日韩精品一 | 亚洲精品在线观| 国产精品夜夜嗨| 国产精品大尺度| 欧美男女性生活在线直播观看| 五月天中文字幕一区二区| 日韩免费高清电影| www.亚洲国产| 免费精品视频在线| 一区二区三区日韩| 亚洲第一搞黄网站| 91精品中文字幕一区二区三区| 麻豆免费看一区二区三区| 国产欧美一区二区精品婷婷| 99久久777色| 在线观看日韩av先锋影音电影院| 色综合久久中文字幕| 91福利国产成人精品照片| 在线观看不卡视频| 欧美精品乱人伦久久久久久| 91精品国产色综合久久久蜜香臀| 日韩一区二区高清| 久久69国产一区二区蜜臀| 精品少妇一区二区三区日产乱码| 丁香激情综合五月| 一级中文字幕一区二区| 欧美大胆人体bbbb| 色综合视频一区二区三区高清| 亚洲超丰满肉感bbw| 精品久久久久久久久久久久久久久 | 一区二区三区四区精品在线视频|