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

? 歡迎來(lái)到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? column.java

?? dispalytag的源碼
?? JAVA
字號(hào):
/** * 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.io.UnsupportedEncodingException;import java.net.URLEncoder;import org.apache.commons.lang.ObjectUtils;import org.apache.commons.lang.StringUtils;import org.apache.commons.lang.UnhandledException;import org.apache.commons.lang.builder.ToStringBuilder;import org.apache.commons.lang.builder.ToStringStyle;import org.displaytag.decorator.DisplaytagColumnDecorator;import org.displaytag.exception.DecoratorException;import org.displaytag.exception.ObjectLookupException;import org.displaytag.util.Anchor;import org.displaytag.util.Href;import org.displaytag.util.HtmlAttributeMap;import org.displaytag.util.HtmlTagUtil;import org.displaytag.util.LookupUtil;import org.displaytag.util.TagConstants;/** * Represents a column in a table. * @author Fabrizio Giustina * @version $Revision: 1092 $ ($Author: rapruitt $) */public class Column{    /**     * Row this column belongs to.     */    private Row row;    /**     * Header of this column. The header cell contains all the attributes common to all cells in the same column     */    private HeaderCell header;    /**     * copy of the attribute map from the header cell. Needed to change attributes (title) in this cell only     */    private HtmlAttributeMap htmlAttributes;    /**     * contains the evaluated body value. Filled in getOpenTag.     */    private String stringValue;    /**     * Cell.     */    private Cell cell;    /**     * Constructor for Column.     * @param headerCell HeaderCell     * @param currentCell Cell     * @param parentRow Row     */    public Column(HeaderCell headerCell, Cell currentCell, Row parentRow)    {        this.header = headerCell;        this.row = parentRow;        this.cell = currentCell;        // also copy html attributes        this.htmlAttributes = headerCell.getHtmlAttributes();    }    /**     * Get the header cell for this column.     * @return the cell     */    public HeaderCell getHeaderCell()    {        return this.header;    }    /**     * Gets the value, after calling the table / column decorator is requested.     * @param decorated boolean     * @return Object will never be null if ShowNulls has been set to false     * @throws ObjectLookupException for errors in bean property lookup     * @throws DecoratorException if a column decorator is used and an exception is thrown during value decoration     */    public Object getValue(boolean decorated) throws ObjectLookupException, DecoratorException    {        Object object = null;        // a static value has been set?        if (this.cell.getStaticValue() != null)        {            object = this.cell.getStaticValue();        }        else if (this.header.getBeanPropertyName() != null)        {            // if a decorator has been set, and if decorator has a getter for the requested property only, check            // decorator            if (decorated                && this.row.getParentTable().getTableDecorator() != null                && this.row.getParentTable().getTableDecorator().hasGetterFor(this.header.getBeanPropertyName()))            {                object = LookupUtil.getBeanProperty(this.row.getParentTable().getTableDecorator(), this.header                    .getBeanPropertyName());            }            else            {                // else check underlining object                object = LookupUtil.getBeanProperty(this.row.getObject(), this.header.getBeanPropertyName());            }        }        DisplaytagColumnDecorator[] decorators = this.header.getColumnDecorators();        if (decorated)        {            for (int j = 0; j < decorators.length; j++)            {                object = decorators[j].decorate(object, row.getParentTable().getPageContext(), row                    .getParentTable()                    .getMedia());            }        }        if (object == null || "null".equals(object)) //$NON-NLS-1$        {            if (!this.header.getShowNulls())            {                object = TagConstants.EMPTY_STRING;            }        }        return object;    }    /**     * Generates the cell open tag.     * @return String td open tag     */    public String getOpenTag()    {        HtmlAttributeMap rowAttributes = cell.getPerRowAttributes();        HtmlAttributeMap atts = htmlAttributes;        if (rowAttributes != null)        {            atts = (HtmlAttributeMap) atts.clone();            atts.putAll(rowAttributes);        }        return HtmlTagUtil.createOpenTagString(TagConstants.TAGNAME_COLUMN, atts);    }    /**     * Initialize the cell value.     * @throws ObjectLookupException for errors in bean property lookup     * @throws DecoratorException if a column decorator is used and an exception is thrown during value decoration     * @throws DecoratorException     * @throws ObjectLookupException     */    public void initialize() throws DecoratorException, ObjectLookupException    {        if (this.stringValue == null)        {            this.stringValue = createChoppedAndLinkedValue();        }    }    /**     * Generates the cell close tag (&lt;/td>).     * @return String td closing tag     */    public String getCloseTag()    {        this.stringValue = null;        return this.header.getCloseTag();    }    /**     * Calculates the cell content, cropping or linking the value as needed.     * @return String     * @throws ObjectLookupException for errors in bean property lookup     * @throws DecoratorException if a column decorator is used and an exception is thrown during value decoration     */    public String createChoppedAndLinkedValue() throws ObjectLookupException, DecoratorException    {        String fullValue = ObjectUtils.toString(getValue(true));        String choppedValue;        // trim the string if a maxLength or maxWords is defined        if (this.header.getMaxLength() > 0)        {            choppedValue = HtmlTagUtil.abbreviateHtmlString(fullValue, this.header.getMaxLength(), false);        }        else if (this.header.getMaxWords() > 0)        {            choppedValue = HtmlTagUtil.abbreviateHtmlString(fullValue, this.header.getMaxWords(), true);        }        else        {            choppedValue = fullValue;        }        // chopped content? add the full content to the column "title" attribute        // note, simply checking that length is less than before can't be enough due to the "..." added if the string is        // cropped        if (!ObjectUtils.equals(fullValue, choppedValue))        {            // clone the attribute map, don't want to add title to all the columns            this.htmlAttributes = (HtmlAttributeMap) this.htmlAttributes.clone();            // add title            this.htmlAttributes.put(TagConstants.ATTRIBUTE_TITLE, HtmlTagUtil.stripHTMLTags(fullValue));        }        if (this.header.getHref() != null)        {            // generates the href for the link            Href colHref = getColumnHref(fullValue);            Anchor anchor = new Anchor(colHref, choppedValue);            choppedValue = anchor.toString();        }        return choppedValue;    }    /**     * Generates the href for the column using paramName/property/scope.     * @param columnContent column body     * @return generated Href     * @throws ObjectLookupException for errors in lookin up object properties     */    private Href getColumnHref(String columnContent) throws ObjectLookupException    {        // copy href        Href colHref = (Href) this.header.getHref().clone();        // do we need to add a param?        if (this.header.getParamName() != null)        {            Object paramValue;            if (this.header.getParamProperty() != null)            {                // different property, go get it                paramValue = LookupUtil.getBeanProperty(this.row.getObject(), this.header.getParamProperty());            }            else            {                // same property as content                paramValue = columnContent;            }            if (paramValue != null)            {                try                {                    colHref.addParameter(this.header.getParamName(), URLEncoder.encode(                        paramValue.toString(),                        StringUtils.defaultString(this.row.getParentTable().getEncoding(), "UTF8"))); //$NON-NLS-1$                }                catch (UnsupportedEncodingException e)                {                    throw new UnhandledException(e);                }            }        }        return colHref;    }    /**     * get the final value to be displayed in the table. This method can only be called after initialize(), where the     * content is evaluated     * @return String final value to be displayed in the table     */    public String getChoppedAndLinkedValue()    {        return this.stringValue;    }    /**     * @see java.lang.Object#toString()     */    public String toString()    {        return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE) //            .append("cell", this.cell) //$NON-NLS-1$            .append("header", this.header) //$NON-NLS-1$            .append("htmlAttributes", this.htmlAttributes) //$NON-NLS-1$            .append("stringValue", this.stringValue) //$NON-NLS-1$            .toString();    }}

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲三级在线免费| 国产一区二区三区在线观看免费 | 制服丝袜亚洲色图| 欧美色图12p| 欧美日韩一区二区在线观看 | 91麻豆6部合集magnet| 成人美女视频在线观看18| 丁香啪啪综合成人亚洲小说| 国产一区二区三区最好精华液| 国内成+人亚洲+欧美+综合在线| 久久国产生活片100| 国产真实精品久久二三区| 国产成人免费在线观看不卡| www.色综合.com| 91美女在线观看| 欧美色区777第一页| 在线成人av网站| 欧美大尺度电影在线| 久久日韩精品一区二区五区| 久久久久久久久久久久久久久99 | 久久网站最新地址| 国产欧美日韩在线观看| 中文字幕日韩av资源站| 一区二区三区小说| 婷婷综合久久一区二区三区| 精品一区二区三区免费观看 | 欧美影院一区二区| 欧美一区二区高清| 国产网站一区二区| 亚洲视频小说图片| 成人小视频免费在线观看| 99精品桃花视频在线观看| 欧美在线啊v一区| 欧美不卡一区二区三区| 国产精品毛片高清在线完整版| 亚洲已满18点击进入久久| 美女一区二区久久| 成人短视频下载| 欧美日韩电影在线播放| 26uuu色噜噜精品一区二区| 亚洲情趣在线观看| 美女诱惑一区二区| 91香蕉视频污| 精品国产免费人成在线观看| 成人免费一区二区三区在线观看| 婷婷久久综合九色综合伊人色| 精品一区二区三区免费毛片爱 | 欧美日本韩国一区二区三区视频| 欧美哺乳videos| 亚洲乱码一区二区三区在线观看| 麻豆国产欧美一区二区三区| yourporn久久国产精品| 91麻豆精品国产自产在线| 国产精品萝li| 激情六月婷婷久久| 欧美日韩在线观看一区二区| 欧美韩国日本综合| 午夜成人免费视频| 9l国产精品久久久久麻豆| 日韩欧美自拍偷拍| 亚洲国产视频网站| 成人听书哪个软件好| 欧美一级欧美三级| 伊人色综合久久天天| 国产福利一区在线观看| 欧美久久久久久久久| 中文字幕在线不卡视频| 黑人精品欧美一区二区蜜桃| 欧美在线你懂得| 国产精品久久久久久久蜜臀| 激情综合一区二区三区| 91麻豆精品国产| 亚洲尤物视频在线| a级高清视频欧美日韩| 久久综合九色综合97_久久久| 国产91在线|亚洲| 欧美videossexotv100| 亚洲成av人在线观看| 色综合天天综合网国产成人综合天| 国产亚洲成aⅴ人片在线观看 | 精品一区二区三区在线播放| 欧美日韩一区在线观看| 亚洲天堂福利av| 国产成人精品亚洲日本在线桃色| 日韩女优毛片在线| 婷婷成人激情在线网| 在线观看日韩av先锋影音电影院| 国产精品三级视频| 国产传媒一区在线| 久久婷婷国产综合精品青草| 裸体健美xxxx欧美裸体表演| 欧美剧在线免费观看网站| 亚洲一二三四久久| 在线精品视频免费观看| 亚洲欧美激情插| 色播五月激情综合网| 亚洲免费色视频| 色吊一区二区三区| 亚洲自拍偷拍综合| 在线免费不卡电影| 婷婷国产在线综合| 日韩一区二区免费高清| 免费不卡在线观看| 欧美大胆人体bbbb| 国产露脸91国语对白| 久久久久久久久蜜桃| 国产aⅴ精品一区二区三区色成熟| 26uuu色噜噜精品一区二区| 国产精品一区二区久久精品爱涩 | 一区二区三区日韩在线观看| 日本韩国一区二区三区| 亚洲午夜在线视频| 91精品国产综合久久精品| 日本va欧美va精品发布| 精品久久久久香蕉网| 国产美女精品在线| 亚洲欧洲日韩av| 91国产免费观看| 日韩精品亚洲专区| 久久婷婷国产综合精品青草| 成人福利视频网站| 亚洲无人区一区| 91精品在线观看入口| 国产精品456露脸| 专区另类欧美日韩| 欧美日韩亚洲综合在线| 麻豆成人免费电影| 国产精品国产三级国产aⅴ原创| 91在线精品一区二区三区| 亚洲资源在线观看| 日韩午夜精品视频| 成人av在线网站| 亚洲国产cao| 欧美va亚洲va在线观看蝴蝶网| 国产成人啪免费观看软件| 亚洲视频在线一区二区| 在线综合视频播放| 国产suv精品一区二区883| 一区二区三区四区高清精品免费观看 | 国产毛片精品国产一区二区三区| 中文字幕中文在线不卡住| 欧美午夜精品久久久| 国产乱理伦片在线观看夜一区| 国产美女视频91| 亚洲欧美日韩在线| 欧美成人在线直播| 色播五月激情综合网| 韩国在线一区二区| 亚洲欧美另类小说| 久久这里只有精品首页| 91丨porny丨国产| 蜜桃在线一区二区三区| 亚洲欧美综合网| 欧美电视剧免费观看| 91国在线观看| 高清不卡在线观看av| 午夜精品久久久久久久99水蜜桃 | 蜜桃视频在线观看一区| 国产精品盗摄一区二区三区| 欧美一区二区三区色| 91在线码无精品| 国产裸体歌舞团一区二区| 亚洲午夜免费电影| 国产精品美女一区二区三区| 日韩一级成人av| 91麻豆swag| 高清beeg欧美| 老司机午夜精品99久久| 亚洲国产视频a| 成人免费在线播放视频| 久久你懂得1024| 欧美一区二区三区在线观看视频| 99久久久免费精品国产一区二区| 青椒成人免费视频| 亚洲成人免费观看| 亚洲情趣在线观看| 国产精品久久久一本精品| 日韩手机在线导航| 51精品秘密在线观看| 一本色道a无线码一区v| 成人视屏免费看| 国产一区二区在线观看免费| 免费高清在线视频一区·| 亚洲免费毛片网站| 1024成人网色www| 国产婷婷精品av在线| 亚洲精品在线观| 日韩一区二区麻豆国产| 欧美一区二区在线看| 欧美午夜片在线看| 91成人国产精品| 色综合天天做天天爱| 一本久久综合亚洲鲁鲁五月天 | 99re这里只有精品首页| 岛国一区二区在线观看| 国内精品自线一区二区三区视频| 久久精品国产一区二区| 久久丁香综合五月国产三级网站| 成人app软件下载大全免费| 国产精品一区在线观看你懂的|