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

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

?? tablemodel.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.ArrayList;import java.util.Collections;import java.util.List;import javax.servlet.jsp.PageContext;import org.apache.commons.lang.builder.ToStringBuilder;import org.apache.commons.lang.builder.ToStringStyle;import org.apache.commons.logging.Log;import org.apache.commons.logging.LogFactory;import org.displaytag.decorator.TableDecorator;import org.displaytag.properties.MediaTypeEnum;import org.displaytag.properties.TableProperties;/** * Table Model. Holds table data for presentation. * @author Fabrizio Giustina * @version $Revision: 1125 $ ($Author: fgiust $) */public class TableModel{    /**     * logger.     */    private static Log log = LogFactory.getLog(TableModel.class);    /**     * list of HeaderCell.     */    private List headerCellList;    /**     * full list (contains Row objects).     */    private List rowListFull;    /**     * list of data to be displayed in page.     */    private List rowListPage;    /**     * Name of the column currently sorted (only used when sort=external).     */    private String sortedColumnName;    /**     * sort order = ascending?     */    private boolean sortOrderAscending = true;    /**     * sort full List? (false sort only displayed page).     */    private boolean sortFullTable = true;    /**     * index of the sorted column (-1 if the table is not sorted).     */    private int sortedColumn = -1;    /**     * Table decorator.     */    private TableDecorator tableDecorator;    /**     * id inherited from the TableTag (needed only for logging).     */    private String id;    /**     * configurable table properties.     */    private TableProperties properties;    /**     * Starting offset for elements in the viewable list.     */    private int pageOffset;    /**     * Response encoding.     */    private String encoding;    /**     * Are we sorting locally? (Default True)     */    private boolean localSort = true;    /**     * Table caption.     */    private String caption;    /**     * Table footer.     */    private String footer;    /**     * Jsp page context.     */    private PageContext pageContext;    /**     * Current media.     */    private MediaTypeEnum media;    /**     * Uses post for links.     */    private String form;    /**     * Constructor for TableModel.     * @param tableProperties table properties     * @param charEncoding response encoding     */    public TableModel(TableProperties tableProperties, String charEncoding, PageContext pageContext)    {        this.rowListFull = new ArrayList(20);        this.headerCellList = new ArrayList(20);        this.properties = tableProperties;        this.encoding = charEncoding;        this.pageContext = pageContext;    }    /**     * Returns the jsp page context.     * @return page context     */    protected PageContext getPageContext()    {        return this.pageContext;    }    /**     * Gets the current media type.     * @return current media (html, pdf ...)     */    public MediaTypeEnum getMedia()    {        return this.media;    }    /**     * sets the current media type.     * @param media current media (html, pdf ...)     */    public void setMedia(MediaTypeEnum media)    {        this.media = media;    }    /**     * Sets whether the table performs local in memory sorting of the data.     * @param localSort     */    public void setLocalSort(boolean localSort)    {        this.localSort = localSort;    }    /**     * @return sorting in local memory     */    public boolean isLocalSort()    {        return localSort;    }    /**     * Getter for <code>form</code>.     * @return Returns the form.     */    public String getForm()    {        return this.form;    }    /**     * Setter for <code>form</code>.     * @param form The form to set.     */    public void setForm(String form)    {        this.form = form;    }    /**     * Sets the starting offset for elements in the viewable list.     * @param offset The page offset to set.     */    public void setPageOffset(int offset)    {        this.pageOffset = offset;    }    /**     * Setter for the tablemodel id.     * @param tableId same id of table tag, needed for logging     */    public void setId(String tableId)    {        this.id = tableId;    }    /**     * get the table id.     * @return table id     */    public String getId()    {        return this.id;    }    /**     * get the full list.     * @return the full list containing Row objects     */    public List getRowListFull()    {        return this.rowListFull;    }    /**     * gets the partial (paginated) list.     * @return the partial list to display in page (contains Row objects)     */    public List getRowListPage()    {        return this.rowListPage;    }    /**     * adds a Row object to the table.     * @param row Row     */    public void addRow(Row row)    {        row.setParentTable(this);        if (log.isDebugEnabled())        {            log.debug("[" + this.id + "] adding row " + row);        }        this.rowListFull.add(row);    }    /**     * sets the name of the currently sorted column     * @param sortedColumnName     */    public void setSortedColumnName(String sortedColumnName)    {        this.sortedColumnName = sortedColumnName;    }    /**     * sets the sort full table property. If true the full list is sorted, if false sorting is applied only to the     * displayed sublist.     * @param sortFull boolean     */    public void setSortFullTable(boolean sortFull)    {        this.sortFullTable = sortFull;    }    /**     * return the sort full table property.     * @return boolean true if sorting is applied to the full list     */    public boolean isSortFullTable()    {        return this.sortFullTable;    }    /**     * return the sort order of the page.     * @return true if sort order is ascending     */    public boolean isSortOrderAscending()    {        return this.sortOrderAscending;    }    /**     * set the sort order of the list.     * @param isSortOrderAscending true to sort in ascending order     */    public void setSortOrderAscending(boolean isSortOrderAscending)    {        this.sortOrderAscending = isSortOrderAscending;    }    /**     * @param rowList - the new value for this.rowListPage     */    public void setRowListPage(List rowList)    {        this.rowListPage = rowList;    }    /**     * getter for the Table Decorator.     * @return TableDecorator     */    public TableDecorator getTableDecorator()    {        return this.tableDecorator;    }    /**     * setter for the table decorator.     * @param decorator - the TableDecorator object     */    public void setTableDecorator(TableDecorator decorator)    {        this.tableDecorator = decorator;    }    /**     * returns true if the table is sorted.     * @return boolean true if the table is sorted     */    public boolean isSorted()    {        return this.sortedColumn != -1;    }    /**     * returns the HeaderCell for the sorted column.     * @return HeaderCell     */    public HeaderCell getSortedColumnHeader()    {        if (this.sortedColumn < 0 || (this.sortedColumn > (this.headerCellList.size() - 1)))        {            return null;        }        return (HeaderCell) this.headerCellList.get(this.sortedColumn);    }    /**     * return the number of columns in the table.     * @return int number of columns     */    public int getNumberOfColumns()    {        return this.headerCellList.size();    }    /**     * return true is the table has no columns.     * @return boolean     */    public boolean isEmpty()    {        return this.headerCellList.size() == 0;    }    /**     * return the index of the sorted column.     * @return index of the sorted column or -1 if the table is not sorted     */    public int getSortedColumnNumber()    {        return this.sortedColumn;    }    /**     * set the sorted column index.     * @param sortIndex - the index of the sorted column     */    public void setSortedColumnNumber(int sortIndex)    {        this.sortedColumn = sortIndex;    }    /**     * Adds a column header (HeaderCell object).     * @param headerCell HeaderCell     */    public void addColumnHeader(HeaderCell headerCell)    {        if (this.sortedColumnName == null)        {            if (this.sortedColumn == this.headerCellList.size())            {                headerCell.setAlreadySorted();            }        }        else        {            // the sorted parameter was a string so try and find that column name and set it as sorted            if (this.sortedColumnName.equals(headerCell.getSortName()))            {                headerCell.setAlreadySorted();            }        }        headerCell.setColumnNumber(this.headerCellList.size());        this.headerCellList.add(headerCell);    }    /**     * List containing headerCell objects.     * @return List containing headerCell objects     */    public List getHeaderCellList()    {        return this.headerCellList;    }    /**     * returns a RowIterator on the requested (full|page) list.     * @return RowIterator     * @param full if <code>true</code> returns an iterator on te full list, if <code>false</code> only on the     * viewable part.     * @see org.displaytag.model.RowIterator     */    public RowIterator getRowIterator(boolean full)    {        RowIterator iterator = new RowIterator(            full ? this.rowListFull : this.rowListPage,            this.headerCellList,            this.tableDecorator,            this.pageOffset);        // copy id for logging        iterator.setId(this.id);        return iterator;    }    /**     * sorts the given list of Rows. The method is called internally by sortFullList() and sortPageList().     * @param list List     */    private void sortRowList(List list)    {        if (isSorted())        {            HeaderCell sortedHeaderCell = getSortedColumnHeader();            if (sortedHeaderCell != null)            {                // If it is an explicit value, then sort by that, otherwise sort by the property...                if (sortedHeaderCell.getBeanPropertyName() != null                    || (this.sortedColumn != -1 && this.sortedColumn < this.headerCellList.size()))                {                    String sorted = (sortedHeaderCell.getSortProperty() != null)                        ? sortedHeaderCell.getSortProperty()                        : sortedHeaderCell.getBeanPropertyName();                    Collections.sort(list, new RowSorter(                        this.sortedColumn,                        sorted,                        getTableDecorator(),                        this.sortOrderAscending,                        sortedHeaderCell.getComparator()));                }            }        }    }    /**     * sort the list displayed in page.     */    public void sortPageList()    {        if (log.isDebugEnabled())        {            log.debug("[" + this.id + "] sorting page list");        }        sortRowList(this.rowListPage);    }    /**     * sort the full list of data.     */    public void sortFullList()    {        if (log.isDebugEnabled())        {            log.debug("[" + this.id + "] sorting full data");        }        sortRowList(this.rowListFull);    }    /**     * Returns the table properties.     * @return the configured table properties.     */    public TableProperties getProperties()    {        return this.properties;    }    /**     * Getter for character encoding.     * @return Returns the encoding used for response.     */    public String getEncoding()    {        return encoding;    }    /**     * Obtain this table's caption.     * @return This table's caption.     */    public String getCaption()    {        return this.caption;    }    /**     * Set this table's caption.     * @param caption This table's caption.     */    public void setCaption(String caption)    {        this.caption = caption;    }    /**     * Obtain this table's footer.     * @return This table's footer.     */    public String getFooter()    {        return this.footer;    }    /**     * Set this table's footer.     * @param footer This table's footer.     */    public void setFooter(String footer)    {        this.footer = footer;    }    /**     * @see java.lang.Object#toString()     */    public String toString()    {        return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE) //            .append("rowListFull", this.rowListFull) //$NON-NLS-1$            .append("rowListPage", this.rowListPage) //$NON-NLS-1$            .append("properties", this.properties) //$NON-NLS-1$            .append("empty", this.isEmpty()) //$NON-NLS-1$            .append("encoding", this.encoding) //$NON-NLS-1$            .append("numberOfColumns", this.getNumberOfColumns()) //$NON-NLS-1$            .append("headerCellList", this.headerCellList) //$NON-NLS-1$            .append("sortFullTable", this.sortFullTable) //$NON-NLS-1$            .append("sortedColumnNumber", this.getSortedColumnNumber()) //$NON-NLS-1$            .append("sortOrderAscending", this.sortOrderAscending) //$NON-NLS-1$            .append("sortedColumnHeader", this.getSortedColumnHeader()) //$NON-NLS-1$            .append("sorted", this.isSorted()) //$NON-NLS-1$            .append("tableDecorator", this.tableDecorator) //$NON-NLS-1$            .append("caption", this.caption) //$NON-NLS-1            .append("footer", this.footer) //$NON-NLS-1            .append("media", this.media) //$NON-NLS-1            .toString();    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久成人免费日本黄色| 亚洲成人777| 欧美日韩一级黄| 国产一区二区三区蝌蚪| 亚洲午夜视频在线| 亚洲国产成人一区二区三区| 欧美美女喷水视频| 不卡的av电影| 国产精品正在播放| 奇米影视在线99精品| 亚洲激情成人在线| 国产精品丝袜91| 2020国产精品| 日韩欧美一卡二卡| 欧美嫩在线观看| 91蝌蚪国产九色| 成人一区二区三区视频在线观看| 免费的成人av| 丝袜亚洲另类丝袜在线| 一区二区三区高清| 亚洲欧美综合另类在线卡通| 久久久美女艺术照精彩视频福利播放| 欧美日韩精品一区二区| 色综合婷婷久久| 99热这里都是精品| 成人性生交大合| 国产99久久精品| 国产成人在线影院| 丁香亚洲综合激情啪啪综合| 黄页视频在线91| 精品一区二区在线观看| 免播放器亚洲一区| 免费在线观看一区| 蜜臀久久久久久久| 麻豆91精品91久久久的内涵| 视频一区视频二区在线观看| 亚洲成人先锋电影| 性做久久久久久免费观看| 亚洲综合图片区| 亚洲国产日韩在线一区模特 | 一本色道久久综合精品竹菊| 高清在线不卡av| 国产99久久久国产精品免费看 | 亚洲老妇xxxxxx| 亚洲日本va午夜在线影院| 国产精品麻豆一区二区| 中文字幕一区二区三区四区不卡| 国产精品美日韩| 亚洲女同一区二区| 亚洲第一搞黄网站| 日本欧美大码aⅴ在线播放| 久久成人av少妇免费| 精品一二三四区| 高清国产一区二区三区| caoporen国产精品视频| 色香蕉成人二区免费| 欧美日韩亚洲综合| 日韩精品一区二区三区四区| 精品91自产拍在线观看一区| 国产欧美日韩在线观看| 亚洲色图欧洲色图婷婷| 亚洲午夜影视影院在线观看| 日本一不卡视频| 懂色av一区二区三区蜜臀| 91蜜桃视频在线| 制服丝袜亚洲播放| 久久人人爽人人爽| 亚洲免费av观看| 美女性感视频久久| av在线不卡免费看| 717成人午夜免费福利电影| 精品国产百合女同互慰| 国产精品你懂的| 午夜精品久久一牛影视| 激情图片小说一区| av高清不卡在线| 91精品国产色综合久久| 中文字幕欧美日本乱码一线二线| 亚洲一区二区三区影院| 激情久久久久久久久久久久久久久久| av在线这里只有精品| 欧美精品vⅰdeose4hd| 国产三级精品视频| 午夜成人在线视频| 成人在线综合网站| 欧美精品v国产精品v日韩精品| 日本一区二区三区国色天香 | 一区免费观看视频| 日韩电影一区二区三区| 97久久精品人人做人人爽| 91麻豆精品国产91| 最新热久久免费视频| 麻豆国产精品777777在线| 色婷婷av久久久久久久| 国产亚洲精品福利| 日韩在线一二三区| 色婷婷综合久久| 久久欧美一区二区| 日产国产高清一区二区三区| 99re视频精品| 久久久www免费人成精品| 日韩电影在线看| 在线免费不卡视频| 久久精品欧美日韩精品| 美女网站视频久久| 欧美三区在线观看| 亚洲欧洲制服丝袜| jvid福利写真一区二区三区| 精品国产三级a在线观看| 性做久久久久久久久| 91久久一区二区| 中文字幕在线不卡视频| 国产中文字幕精品| 日韩亚洲欧美在线| 亚洲成人精品影院| 日本国产一区二区| 亚洲图片另类小说| 波多野结衣亚洲| 久久久久成人黄色影片| 精一区二区三区| 日韩一级免费一区| 全部av―极品视觉盛宴亚洲| 欧美性色欧美a在线播放| 亚洲色图一区二区| 色综合久久中文综合久久97| 亚洲国产精品传媒在线观看| 国产美女精品在线| 久久午夜电影网| 国产精品一区二区久久精品爱涩| 日韩一区二区在线观看| 蜜臀精品久久久久久蜜臀 | 欧美午夜电影网| 一区二区三区自拍| 色婷婷激情一区二区三区| 一区二区三区成人| 在线精品视频小说1| 亚洲精品视频在线观看网站| 97国产一区二区| 亚洲免费观看高清完整版在线观看| www.欧美日韩| 综合自拍亚洲综合图不卡区| 91在线观看美女| 一级日本不卡的影视| 欧美少妇性性性| 日韩福利电影在线| 精品剧情在线观看| 国产乱子伦视频一区二区三区| 久久蜜桃一区二区| 99re视频这里只有精品| 一区二区三区中文字幕电影| 欧美日韩免费观看一区三区| 日本欧美一区二区| www精品美女久久久tv| 成人国产电影网| 亚洲最色的网站| 91麻豆精品国产91久久久| 狂野欧美性猛交blacked| 日韩vs国产vs欧美| 国产色91在线| 在线精品视频免费观看| 男人的天堂久久精品| 久久久精品一品道一区| 色欧美日韩亚洲| 日本午夜一本久久久综合| 精品国产乱码久久久久久牛牛 | 欧美亚洲一区二区在线观看| 婷婷国产v国产偷v亚洲高清| 日韩免费高清电影| 99re这里都是精品| 日韩精品乱码av一区二区| 久久午夜免费电影| 日本韩国一区二区三区视频| 琪琪久久久久日韩精品| 国产精品色婷婷| 欧美另类久久久品| 国产精品系列在线播放| 亚洲在线视频免费观看| 精品国产一区久久| 色成年激情久久综合| 韩国精品免费视频| 一级女性全黄久久生活片免费| 精品福利一区二区三区| 91黄视频在线观看| 国产一区二区三区在线观看精品| 一区二区三区中文在线| 久久久精品日韩欧美| 777午夜精品免费视频| av综合在线播放| 狠狠色丁香婷综合久久| 亚洲综合丁香婷婷六月香| 精品国产sm最大网站免费看| 欧美性猛片aaaaaaa做受| 国产精品自拍在线| 午夜日韩在线观看| 中文字幕亚洲成人| 欧美精品一区二区三| 欧美日本一区二区三区| 91在线国内视频| 国产九色sp调教91| 日韩中文字幕1|