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

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

?? element.java

?? 是離開的肌膚了卡機是離開的就富利卡及是了的開發及拉考試及的福利科技阿斯利康的肌膚萊卡及時的離開福建阿斯頓發
?? JAVA
字號:
// ========================================================================// $Id: Element.java,v 1.10 2005/08/13 00:01:23 gregwilkins Exp $// Copyright 1996-2004 Mort Bay Consulting Pty. Ltd.// ------------------------------------------------------------------------// Licensed under the Apache License, Version 2.0 (the "License");// you may not use this file except in compliance with the License.// You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0// Unless required by applicable law or agreed to in writing, software// distributed under the License is distributed on an "AS IS" BASIS,// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.// See the License for the specific language governing permissions and// limitations under the License.// ========================================================================package org.mortbay.html;import java.io.IOException;import java.io.OutputStream;import java.io.OutputStreamWriter;import java.io.StringWriter;import java.io.Writer;import java.util.Enumeration;import java.util.Hashtable;import org.mortbay.log.Log;/* -------------------------------------------------------------------- *//** HTML Element. * <p>This abstract class is the base for all HTML Elements. * The feature of an abstract HTML Element is that it can be added to * HTML Pages, HTML Composites and several other HTML Elements derivations. * Elements may also have attributes set, which are handled by the derived * Element. * @deprecated Unless somebody steps forward to update and maintain this package * @see Page * @see Composite * @version $Id: Element.java,v 1.10 2005/08/13 00:01:23 gregwilkins Exp $ * @author Greg Wilkins*/public abstract class Element{    /* ----------------------------------------------------------------- */    public static final String        noAttributes="",        ALIGN="align",        LEFT="left",        RIGHT="right",        CENTER="center",        VALIGN="valign",        TOP="top",        BOTTOM="bottom",        MIDDLE="middle",        WIDTH="width",        HEIGHT="height",        SIZE="size",        COLOR="color",        BGCOLOR="bgcolor",        STYLE="style",        CLASS="class",        ID="id";                    /* ----------------------------------------------------------------- */    /** Dimensions >=0 if set*/    private int width=-1;    private int height=-1;    private int size=-1;    /* ----------------------------------------------------------------- */    /** The space separated string of HTML element attributes.     */    private String attributes=null;    protected Hashtable attributeMap=null;    /* ----------------------------------------------------------------- */    /** Default constructor.     */    public Element(){}    /* ----------------------------------------------------------------- */    /** Construct with attributes.     * @param attributes The initial attributes of the element     */    public Element(String attributes)    {        attribute(attributes);    }    /* ----------------------------------------------------------------- */    /** Write element to a Writer.     * This abstract method is called by the Page or other containing     * Element to write the HTML for this element. This must be implemented     * by the derived Element classes.     * @param out Writer to write the element to.     */    public abstract void write(Writer out)         throws IOException;    /* ----------------------------------------------------------------- */    /** Write Element to an OutputStream.     * Calls print(Writer) and checks errors     * Elements that override this method should also override     * write(Writer) to avoid infinite recursion.     * @param out OutputStream to write the element to.     */    public void write(OutputStream out)         throws IOException    {        Writer writer = new OutputStreamWriter(out);        write(writer);        writer.flush();    }        /* ----------------------------------------------------------------- */    /** Write Element to an OutputStream.     * Calls print(Writer) and checks errors     * Elements that override this method should also override     * write(Writer) to avoid infinite recursion.     * @param out OutputStream to write the element to.     */    public void write(OutputStream out, String encoding)         throws IOException    {        Writer writer = new OutputStreamWriter(out,encoding);        write(writer);        writer.flush();    }    /* ----------------------------------------------------------------- */    public String attributes()    {        if (attributes==null && attributeMap==null)            return noAttributes;        StringBuffer buf = new StringBuffer(128);        synchronized(buf)        {            if (attributeMap!=null)            {                Enumeration e = attributeMap.keys();                while (e.hasMoreElements())                {                    buf.append(' ');                    String a = (String)e.nextElement();                    buf.append(a);                    buf.append('=');                    buf.append(attributeMap.get(a).toString());                }            }                        if(attributes!=null && attributes.length()>0)            {                if (!attributes.startsWith(" "))                    buf.append(' ');                buf.append(attributes);            }        }        return buf.toString();    }    /* ----------------------------------------------------------------- */    /** Add element Attributes.     * The attributes are added to the Element attributes (separated with     * a space). The attributes are available to the derived class in the     * protected member String <I>attributes</I>     * @deprecated Use attribute(String).     * @param attributes String of HTML attributes to add to the element.     * @return This Element so calls can be chained.     */    public Element attributes(String attributes)    {        if (attributes==null)        {            this.attributes=null;            return this;        }                if (attributes==noAttributes)            return this;                if (this.attributes==null)            this.attributes=attributes;        else            this.attributes += ' '+attributes;        return this;    }    /* ------------------------------------------------------------ */    /** Set attributes from another Element.     * @param e Element     * @return This Element     */    public Element setAttributesFrom(Element e)    {        attributes=e.attributes;        attributeMap=(Hashtable)e.attributeMap.clone();        return this;    }        /* ----------------------------------------------------------------- */    /** Add element Attributes.     * The attributes are added to the Element attributes (separated with     * a space). The attributes are available to the derived class in the     * protected member String <I>attributes</I>     * @param attributes String of HTML attributes to add to the element.     * A null attribute clears the current attributes.     * @return This Element so calls can be chained.     */    public Element attribute(String attributes)    {        if (attributes==null ||            this.attributes==null ||            this.attributes==noAttributes ||            this.attributes.length()==0)            this.attributes=attributes;        else            this.attributes += ' '+attributes;        return this;    }        /* ----------------------------------------------------------------- */    /** Add quoted element Attributes and value.     * @param attribute String of HTML attribute tag     * @param value String value of the attribute to be quoted     * @return This Element so calls can be chained.     */    public Element attribute(String attribute, Object value)    {        if (attributeMap==null)            attributeMap=new Hashtable(10);                if (value!=null)        {            if (value instanceof String && ((String)value).indexOf('"')!=-1)            {                String s=(String)value;                int q=0;                while((q=s.indexOf('"',q))>=0)                {                    s=s.substring(0,q)+"&quot;"+s.substring(++q);                    q+=6;                }                value=s;            }                        attributeMap.put(attribute,"\""+value+'"');        }        return this;    }        /* ----------------------------------------------------------------- */    /** Add quoted element Attributes and value.     * @param attribute String of HTML attribute tag     * @param value String value of the attribute to be quoted     * @return This Element so calls can be chained.     */    public Element attribute(String attribute, long value)    {        if (attributeMap==null)            attributeMap=new Hashtable(10);                attributeMap.put(attribute,Long.toString(value));        return this;    }    /* ----------------------------------------------------------------- */    /** Convert Element to String.     * Uses write() to convert the HTML Element to a string.     * @return String of the HTML element     */    public String toString()    {        try{            StringWriter out = new StringWriter();            write(out);            out.flush();            return out.toString();        }        catch(IOException e){            Log.ignore(e);        }        return null;        }        /* ----------------------------------------------------------------- */    /** left justify.     * Convenience method equivalent to attribute("align","left"). Not     * applicable to all Elements.     */    public Element left()    {        return attribute(ALIGN,LEFT);    }        /* ----------------------------------------------------------------- */    /** right justify.     * Convenience method equivalent to attribute("align","right"). Not     * applicable to all Elements.     */    public Element right()    {        return attribute(ALIGN,RIGHT);    }        /* ----------------------------------------------------------------- */    /** Center.     * Convenience method equivalent to attribute("align","center"). Not     * applicable to all Elements.     */    public Element center()    {        return attribute(ALIGN,CENTER);    }        /* ----------------------------------------------------------------- */    /** Top align.     * Convenience method equivalent to attribute("valign","top"). Not     * applicable to all Elements.     */    public Element top()    {        return attribute(VALIGN,TOP);    }        /* ----------------------------------------------------------------- */    /** Bottom align.     * Convenience method equivalent to attribute("valign","bottom"). Not     * applicable to all Elements.     */    public Element bottom()    {        return attribute(VALIGN,BOTTOM);    }        /* ----------------------------------------------------------------- */    /** Middle align.     * Convenience method equivalent to attribute("valign","middle"). Not     * applicable to all Elements.     */    public Element middle()    {        return attribute(VALIGN,MIDDLE);    }        /* ----------------------------------------------------------------- */    /** set width.     * Convenience method equivalent to attribute("width",w). Not     * applicable to all Elements.     */    public Element width(int w)    {        width=w;        return attribute(WIDTH,w);    }        /* ----------------------------------------------------------------- */    /** set width.     * Convenience method equivalent to attribute("width",w). Not     * applicable to all Elements.     */    public Element width(String w)    {        width=-1;        return attribute(WIDTH,w);    }        /* ----------------------------------------------------------------- */    public int width()    {        return width;    }        /* ----------------------------------------------------------------- */    /** set height.     * Convenience method equivalent to attribute("height",h). Not     * applicable to all Elements.     */    public Element height(int h)    {        height=h;        return attribute(HEIGHT,h);    }        /* ----------------------------------------------------------------- */    /** set height.     * Convenience method equivalent to attribute("height",h). Not     * applicable to all Elements.     */    public Element height(String h)    {        height=-1;        return attribute(HEIGHT,h);    }        /* ----------------------------------------------------------------- */    public int height()    {        return height;    }        /* ----------------------------------------------------------------- */    /** set size.     * Convenience method equivalent to attribute("size",s). Not     * applicable to all Elements.     */    public Element size(int s)    {        size=s;        return attribute(SIZE,s);    }        /* ----------------------------------------------------------------- */    /** set size.     * Convenience method equivalent to attribute("size",s). Not     * applicable to all Elements.     */    public Element size(String s)    {        size=-1;        return attribute(SIZE,s);    }        /* ----------------------------------------------------------------- */    public int size()    {        return size;    }        /* ----------------------------------------------------------------- */    /** set color.     * Convenience method equivalent to attribute("color",color). Not     * applicable to all Elements.     */    public Element color(String color)    {        return attribute(COLOR,color);    }        /* ----------------------------------------------------------------- */    /** set BGCOLOR.     * Convenience method equivalent to attribute("bgcolor",color). Not     * applicable to all Elements.     */    public Element bgColor(String color)    {        return attribute(BGCOLOR,color);    }        /* ----------------------------------------------------------------- */    /** set CSS CLASS.     */    public Element cssClass(String c)    {        return attribute(CLASS,c);    }        /* ----------------------------------------------------------------- */    /** set CSS ID.     * Convenience method equivalent to attribute("id",id).     */    public Element cssID(String id)    {        return attribute(ID,id);    }        /* ----------------------------------------------------------------- */    /** set Style.     * Convenience method equivalent to attribute("style",style).     */    public Element style(String style)    {        return attribute(STYLE,style);    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产在线播放一区三区四| 无码av中文一区二区三区桃花岛| 日韩午夜在线播放| 欧美一级xxx| 午夜免费久久看| 精品一区二区三区免费播放 | 亚洲综合成人在线视频| 夜夜精品视频一区二区| 亚洲一线二线三线久久久| 日韩极品在线观看| 国产乱码一区二区三区| 大白屁股一区二区视频| 91久久精品国产91性色tv| 欧美一区二区三区日韩| 精品国产123| 亚洲免费在线视频一区 二区| 亚洲免费视频中文字幕| 国内一区二区视频| 在线一区二区视频| 国产精品美女久久久久久久久| 亚洲男人的天堂一区二区 | 波多野结衣亚洲一区| 欧美狂野另类xxxxoooo| 国产精品久久久久久久久久免费看 | 欧美成人video| 亚洲另类在线视频| 成人性色生活片免费看爆迷你毛片| 在线成人小视频| 亚洲精品国产精品乱码不99| 国产在线一区二区| 久久精品日产第一区二区三区高清版| 亚洲在线视频网站| 欧洲国产伦久久久久久久| 国产精品人妖ts系列视频| 国产成人在线视频播放| 国产欧美日韩三区| 国产乱子伦一区二区三区国色天香| 欧美一区二区三区小说| 青青草成人在线观看| 精品少妇一区二区三区视频免付费| 日韩在线卡一卡二| 91精品国产综合久久久久| 日本欧美肥老太交大片| 日韩欧美的一区二区| 精品系列免费在线观看| 国产精品毛片无遮挡高清| 99re成人在线| 日韩精品一区第一页| 久久久亚洲高清| 国产 日韩 欧美大片| 一区二区三区免费在线观看| 欧美日韩免费不卡视频一区二区三区 | 国产91精品一区二区麻豆网站| 亚洲精品在线观看视频| 国产永久精品大片wwwapp | 亚洲福中文字幕伊人影院| 日韩一区二区在线免费观看| 国产精品白丝av| 一级特黄大欧美久久久| 日韩免费在线观看| av在线不卡免费看| 亚洲 欧美综合在线网络| 国产午夜亚洲精品羞羞网站| 色综合久久久久| 国产一区二区三区在线观看免费视频| 中文字幕制服丝袜一区二区三区 | 激情小说欧美图片| 亚洲欧美电影一区二区| 久久久久久久久久久电影| 欧美午夜片在线看| 成人深夜视频在线观看| 日韩不卡手机在线v区| 亚洲综合自拍偷拍| 国产欧美一区二区在线| 日韩一区二区中文字幕| 在线观看不卡一区| 99久久久久久| 极品少妇xxxx偷拍精品少妇| 亚洲国产日韩a在线播放性色| 国产精品电影一区二区| 中文字幕在线不卡一区二区三区| 亚洲精品在线电影| 精品久久免费看| 日韩欧美中文字幕一区| 精品国产精品网麻豆系列 | 亚洲成在人线在线播放| 一区二区三区在线视频观看| 亚洲精品久久久久久国产精华液| 国产精品视频免费| 亚洲欧美色一区| 一区二区三区不卡在线观看| 国产精品国产成人国产三级| 中文字幕色av一区二区三区| 亚洲欧洲日本在线| 婷婷久久综合九色综合伊人色| 亚洲成a人片综合在线| 日韩不卡一区二区| 成人app网站| 欧美丝袜第三区| 2019国产精品| 国产精品毛片久久久久久| 久久先锋资源网| 中文字幕一区二区三区在线观看| 韩国av一区二区三区| 91首页免费视频| 欧美日产国产精品| 中文av字幕一区| 亚洲天堂免费看| 青椒成人免费视频| 日本视频一区二区三区| 国内外成人在线| 在线一区二区三区四区| 欧美一区二区三区成人| wwwwxxxxx欧美| 黑人巨大精品欧美黑白配亚洲| 色婷婷av久久久久久久| 中文字幕制服丝袜成人av | 欧美日韩中字一区| 久久精品免视看| 婷婷开心激情综合| 成人av电影免费在线播放| 欧美一区二区三区四区久久| 一区二区三区丝袜| 91蜜桃婷婷狠狠久久综合9色| 亚洲国产成人午夜在线一区 | 在线观看国产精品网站| 中文字幕精品一区二区精品绿巨人 | 国产精品免费久久久久| 老司机午夜精品| 精品国产乱码久久久久久夜甘婷婷| 自拍偷在线精品自拍偷无码专区| 国产精品系列在线观看| 国产精品私房写真福利视频| 国产美女精品在线| 日韩天堂在线观看| 国产**成人网毛片九色| 亚洲日本在线看| 欧美日韩五月天| 国产精品自拍在线| 一色屋精品亚洲香蕉网站| 日本高清不卡在线观看| 婷婷六月综合网| 日韩网站在线看片你懂的| 国产酒店精品激情| 亚洲黄色av一区| 欧美一区二区大片| eeuss国产一区二区三区| 国产精品一区二区免费不卡| 性做久久久久久免费观看| 2021中文字幕一区亚洲| 欧美在线一区二区| 高清不卡一二三区| 日本欧美肥老太交大片| 亚洲精品写真福利| 久久网站最新地址| 在线电影一区二区三区| 成人免费毛片片v| 久久97超碰色| 亚洲第一福利视频在线| 国产亚洲午夜高清国产拍精品 | 精品国产免费人成在线观看| 一本久久a久久免费精品不卡| 国产精品一区二区在线看| 免费高清成人在线| 亚洲mv在线观看| 一区二区三区不卡在线观看| 日本一区二区三区电影| 精品国产免费视频| 日韩精品在线一区| 日韩精品一区二区三区中文不卡 | 亚洲欧洲中文日韩久久av乱码| 91精品国产综合久久香蕉麻豆| 欧美日韩国产成人在线免费| 99精品久久久久久| 91视频免费看| 色88888久久久久久影院野外| 色综合久久综合网97色综合| 色婷婷国产精品| 69精品人人人人| 日韩无一区二区| 亚洲国产精品ⅴa在线观看| 国产精品久久毛片a| 玉米视频成人免费看| 青青草成人在线观看| 成人一区二区三区视频在线观看 | 欧美videos大乳护士334| 国产乱码一区二区三区| 亚洲国产va精品久久久不卡综合| 日韩你懂的在线播放| 91在线精品一区二区三区| 亚洲国产日韩精品| 中文字幕一区在线观看| 精品精品欲导航| 99国产精品国产精品久久| 久久精品久久久精品美女| 国产午夜精品理论片a级大结局| 一本大道久久a久久综合| 日韩中文字幕区一区有砖一区| 国产精品久久久久久久第一福利| 欧美一区二区三区日韩视频|