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

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

?? stylesheet.java

?? JAVA的一些源碼 JAVA2 STANDARD EDITION DEVELOPMENT KIT 5.0
?? JAVA
?? 第 1 頁 / 共 5 頁
字號:
     */    public void removeStyleSheet(StyleSheet ss) {	synchronized(this) {	    if (linkedStyleSheets != null) {		int index = linkedStyleSheets.indexOf(ss);		if (index != -1) {		    linkedStyleSheets.removeElementAt(index);		    unlinkStyleSheet(ss, index);		    if (index == 0 && linkedStyleSheets.size() == 0) {			linkedStyleSheets = null;		    }		}	    }	}    }    //    // The following is used to import style sheets.    //    /**     * Returns an array of the linked StyleSheets. Will return null     * if there are no linked StyleSheets.     *     * @since 1.3     */    public StyleSheet[] getStyleSheets() {	StyleSheet[] retValue;	synchronized(this) {	    if (linkedStyleSheets != null) {		retValue = new StyleSheet[linkedStyleSheets.size()];		linkedStyleSheets.copyInto(retValue);	    }	    else {		retValue = null;	    }	}	return retValue;    }    /**     * Imports a style sheet from <code>url</code>. The resulting rules     * are directly added to the receiver. If you do not want the rules     * to become part of the receiver, create a new StyleSheet and use     * addStyleSheet to link it in.     *     * @since 1.3     */    public void importStyleSheet(URL url) {	try {	    InputStream is;	    is = url.openStream();	    Reader r = new BufferedReader(new InputStreamReader(is));	    CssParser parser = new CssParser();	    parser.parse(url, r, false, true);	    r.close();	    is.close();	} catch (Throwable e) {	    // on error we simply have no styles... the html	    // will look mighty wrong but still function.	}    }    /**     * Sets the base. All import statements that are relative, will be     * relative to <code>base</code>.     *     * @since 1.3     */    public void setBase(URL base) {	this.base = base;    }    /**     * Returns the base.     *     * @since 1.3     */    public URL getBase() {	return base;    }    /**     * Adds a CSS attribute to the given set.     *     * @since 1.3     */    public void addCSSAttribute(MutableAttributeSet attr, CSS.Attribute key,				String value) {	css.addInternalCSSValue(attr, key, value);    }    /**     * Adds a CSS attribute to the given set.     *     * @since 1.3     */    public boolean addCSSAttributeFromHTML(MutableAttributeSet attr,					   CSS.Attribute key, String value) {	Object iValue = css.getCssValue(key, value);	if (iValue != null) {	    attr.addAttribute(key, iValue);	    return true;	}	return false;    }    // ---- Conversion functionality ---------------------------------    /**     * Converts a set of HTML attributes to an equivalent     * set of CSS attributes.     *     * @param htmlAttrSet AttributeSet containing the HTML attributes.     */    public AttributeSet translateHTMLToCSS(AttributeSet htmlAttrSet) {	AttributeSet cssAttrSet = css.translateHTMLToCSS(htmlAttrSet);	MutableAttributeSet cssStyleSet = addStyle(null, null);	cssStyleSet.addAttributes(cssAttrSet);	return cssStyleSet;    }    /**     * Adds an attribute to the given set, and returns     * the new representative set.  This is reimplemented to     * convert StyleConstant attributes to CSS prior to forwarding     * to the superclass behavior.  The StyleConstants attribute     * has no corresponding CSS entry, the StyleConstants attribute     * is stored (but will likely be unused).     *     * @param old the old attribute set     * @param key the non-null attribute key     * @param value the attribute value     * @return the updated attribute set     * @see MutableAttributeSet#addAttribute     */    public AttributeSet addAttribute(AttributeSet old, Object key,				     Object value) {	if (css == null) {	    // supers constructor will call this before returning,	    // and we need to make sure CSS is non null.	    css = new CSS();	}	if (key instanceof StyleConstants) {            HTML.Tag tag = HTML.getTagForStyleConstantsKey(                                (StyleConstants)key);            if (tag != null && old.isDefined(tag)) {                old = removeAttribute(old, tag);            }	    Object cssValue = css.styleConstantsValueToCSSValue		              ((StyleConstants)key, value);	    if (cssValue != null) {		Object cssKey = css.styleConstantsKeyToCSSKey		                    ((StyleConstants)key);		if (cssKey != null) {		    return super.addAttribute(old, cssKey, cssValue);		}	    }	}	return super.addAttribute(old, key, value);    }    /**     * Adds a set of attributes to the element.  If any of these attributes     * are StyleConstants attributes, they will be converted to CSS prior     * to forwarding to the superclass behavior.     *     * @param old the old attribute set     * @param attr the attributes to add     * @return the updated attribute set     * @see MutableAttributeSet#addAttribute     */    public AttributeSet addAttributes(AttributeSet old, AttributeSet attr) {        if (!(attr instanceof HTMLDocument.TaggedAttributeSet)) {            old = removeHTMLTags(old, attr);        }	return super.addAttributes(old, convertAttributeSet(attr));    }    /**     * Removes an attribute from the set.  If the attribute is a StyleConstants     * attribute, the request will be converted to a CSS attribute prior to      * forwarding to the superclass behavior.     *     * @param old the old set of attributes     * @param key the non-null attribute name     * @return the updated attribute set     * @see MutableAttributeSet#removeAttribute     */    public AttributeSet removeAttribute(AttributeSet old, Object key) {	if (key instanceof StyleConstants) {            HTML.Tag tag = HTML.getTagForStyleConstantsKey(                                   (StyleConstants)key);            if (tag != null) {                old = super.removeAttribute(old, tag);            }	    Object cssKey = css.styleConstantsKeyToCSSKey((StyleConstants)key);	    if (cssKey != null) {		return super.removeAttribute(old, cssKey);	    }	}        return super.removeAttribute(old, key);    }    /**     * Removes a set of attributes for the element.  If any of the attributes     * is a StyleConstants attribute, the request will be converted to a CSS      * attribute prior to forwarding to the superclass behavior.     *     * @param old the old attribute set     * @param names the attribute names     * @return the updated attribute set     * @see MutableAttributeSet#removeAttributes     */    public AttributeSet removeAttributes(AttributeSet old, Enumeration<?> names) {        // PENDING: Should really be doing something similar to         // removeHTMLTags here, but it is rather expensive to have to        // clone names        return super.removeAttributes(old, names);    }    /**     * Removes a set of attributes. If any of the attributes     * is a StyleConstants attribute, the request will be converted to a CSS      * attribute prior to forwarding to the superclass behavior.     *     * @param old the old attribute set     * @param attrs the attributes     * @return the updated attribute set     * @see MutableAttributeSet#removeAttributes     */    public AttributeSet removeAttributes(AttributeSet old, AttributeSet attrs) {        if (old != attrs) {            old = removeHTMLTags(old, attrs);        }	return super.removeAttributes(old, convertAttributeSet(attrs));    }    /**     * Creates a compact set of attributes that might be shared.     * This is a hook for subclasses that want to alter the      * behavior of SmallAttributeSet.  This can be reimplemented     * to return an AttributeSet that provides some sort of     * attribute conversion.     *     * @param a The set of attributes to be represented in the     *  the compact form.     */    protected SmallAttributeSet createSmallAttributeSet(AttributeSet a) {	return new SmallConversionSet(a);    }    /**     * Creates a large set of attributes that should trade off     * space for time.  This set will not be shared.  This is     * a hook for subclasses that want to alter the behavior     * of the larger attribute storage format (which is      * SimpleAttributeSet by default).   This can be reimplemented     * to return a MutableAttributeSet that provides some sort of     * attribute conversion.     *     * @param a The set of attributes to be represented in the     *  the larger form.     */    protected MutableAttributeSet createLargeAttributeSet(AttributeSet a) {        return new LargeConversionSet(a);    }    /**     * For any StyleConstants key in attr that has an associated HTML.Tag,     * it is removed from old. The resulting AttributeSet is then returned.     */    private AttributeSet removeHTMLTags(AttributeSet old, AttributeSet attr) {        if (!(attr instanceof LargeConversionSet) &&            !(attr instanceof SmallConversionSet)) {            Enumeration names = attr.getAttributeNames();            while (names.hasMoreElements()) {                Object key = names.nextElement();                if (key instanceof StyleConstants) {                    HTML.Tag tag = HTML.getTagForStyleConstantsKey(                        (StyleConstants)key);                    if (tag != null && old.isDefined(tag)) {                        old = super.removeAttribute(old, tag);                    }                }            }        }	return old;    }    /**     * Converts a set of attributes (if necessary) so that     * any attributes that were specified as StyleConstants     * attributes and have a CSS mapping, will be converted     * to CSS attributes.     */    AttributeSet convertAttributeSet(AttributeSet a) {	if ((a instanceof LargeConversionSet) || 	    (a instanceof SmallConversionSet)) {	    // known to be converted.	    return a;	}	// in most cases, there are no StyleConstants attributes	// so we iterate the collection of keys to avoid creating	// a new set.	Enumeration names = a.getAttributeNames();	while (names.hasMoreElements()) {	    Object name = names.nextElement();	    if (name instanceof StyleConstants) {		// we really need to do a conversion, iterate again		// building a new set.		MutableAttributeSet converted = new LargeConversionSet();		Enumeration keys = a.getAttributeNames();		while (keys.hasMoreElements()) {		    Object key = keys.nextElement();		    Object cssValue = null;		    if (key instanceof StyleConstants) {			// convert the StyleConstants attribute if possible			Object cssKey = css.styleConstantsKeyToCSSKey			                    ((StyleConstants)key);			if (cssKey != null) {			    Object value = a.getAttribute(key);			    cssValue = css.styleConstantsValueToCSSValue				           ((StyleConstants)key, value);			    if (cssValue != null) {				converted.addAttribute(cssKey, cssValue);			    }			}		    }		    if (cssValue == null) {			converted.addAttribute(key, a.getAttribute(key));		    }		}		return converted;            }	}	return a;    }    /**     * Large set of attributes that does conversion of requests     * for attributes of type StyleConstants.     */    class LargeConversionSet extends SimpleAttributeSet {	/**	 * Creates a new attribute set based on a supplied set of attributes.	 *	 * @param source the set of attributes	 */        public LargeConversionSet(AttributeSet source) {	    super(source);	}        public LargeConversionSet() {	    super();	}        /**         * Checks whether a given attribute is defined.         *         * @param key the attribute key         * @return true if the attribute is defined         * @see AttributeSet#isDefined         */        public boolean isDefined(Object key) {	    if (key instanceof StyleConstants) {		Object cssKey = css.styleConstantsKeyToCSSKey		                    ((StyleConstants)key);		if (cssKey != null) {		    return super.isDefined(cssKey);		}	    }	    return super.isDefined(key);	}        /**         * Gets the value of an attribute.         *         * @param key the attribute name         * @return the attribute value         * @see AttributeSet#getAttribute         */        public Object getAttribute(Object key) {	    if (key instanceof StyleConstants) {

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久精品一区二区三区四区| 久久精品久久综合| 天天爽夜夜爽夜夜爽精品视频| 国产麻豆91精品| 欧美老肥妇做.爰bbww视频| 中文字幕一区二区三区在线不卡| 午夜婷婷国产麻豆精品| 在线影视一区二区三区| 中文字幕亚洲综合久久菠萝蜜| 久久99久国产精品黄毛片色诱| 欧美日韩国产精品自在自线| 国产精品国产自产拍高清av| 国产成人在线免费观看| 国产日本亚洲高清| 不卡在线视频中文字幕| 国产精品成人免费| 94色蜜桃网一区二区三区| 国产精品激情偷乱一区二区∴| 成人免费毛片嘿嘿连载视频| 国产精品久久一卡二卡| 97久久超碰国产精品电影| 亚洲三级在线免费观看| 欧美色电影在线| 奇米影视在线99精品| 2020国产成人综合网| 成人一区二区三区视频 | 亚洲一区二区四区蜜桃| 欧美性欧美巨大黑白大战| 蜜臀久久99精品久久久久久9 | 亚洲影院在线观看| 日韩欧美在线观看一区二区三区| 久久精品国产久精国产爱| 国产女同性恋一区二区| 91麻豆国产香蕉久久精品| 欧美日韩国产片| 午夜视频在线观看一区| 在线国产电影不卡| 日韩国产欧美在线播放| 91片黄在线观看| 国内外成人在线视频| 亚洲欧美日韩成人高清在线一区| 欧美日韩精品一区二区| 国内精品在线播放| 视频一区在线播放| 精品在线免费视频| 国产欧美日韩另类一区| 欧美日韩在线一区二区| 狠狠色狠狠色综合| 亚洲精品国产一区二区三区四区在线| 欧美精品在线观看一区二区| 99这里只有精品| 国产福利电影一区二区三区| 中文字幕中文字幕在线一区| 日韩精品一区国产麻豆| 在线观看三级视频欧美| 99久久免费国产| 成人一级视频在线观看| 日韩高清一级片| 香蕉成人啪国产精品视频综合网 | 国产a精品视频| 国产a视频精品免费观看| 亚洲一区二区四区蜜桃| 亚洲欧美一区二区久久| 久久看人人爽人人| 中文字幕不卡在线| 亚洲精品成人少妇| 久久国产三级精品| 99久久99久久精品国产片果冻| 在线观看日产精品| 亚洲精品一线二线三线无人区| 国产欧美日韩亚州综合| 免费观看一级特黄欧美大片| 国产成人精品在线看| 欧美日韩在线电影| 国产精品每日更新| 国模套图日韩精品一区二区 | 韩国视频一区二区| 欧美日韩你懂得| 国产精品嫩草99a| 久久国产欧美日韩精品| 色8久久精品久久久久久蜜| 亚洲精品一区二区三区影院 | 亚洲一区二区三区四区五区中文| 国产精品18久久久| 久久综合色8888| 麻豆精品一区二区三区| 精品1区2区3区| 亚洲在线一区二区三区| 色综合天天狠狠| 亚洲国产电影在线观看| 成人一级片在线观看| 久久精品一区二区| 成人看片黄a免费看在线| 国产日本亚洲高清| 丁香另类激情小说| 自拍偷拍亚洲欧美日韩| 99视频精品在线| 亚洲老司机在线| 在线欧美一区二区| 亚洲成a人片综合在线| 欧美高清视频一二三区| 日本91福利区| 国产欧美日韩综合精品一区二区| 国产精品资源在线看| 国产蜜臀97一区二区三区| 国产ts人妖一区二区| 亚洲视频一区在线观看| 欧美日韩亚洲综合在线 欧美亚洲特黄一级| 欧美性xxxxxx少妇| 精彩视频一区二区三区| 国产精品天美传媒沈樵| 色成年激情久久综合| 丝袜亚洲精品中文字幕一区| 日韩欧美电影在线| jlzzjlzz国产精品久久| 亚洲第一av色| 国产精品美日韩| 欧美伦理电影网| 国产91精品一区二区麻豆亚洲| 亚洲欧美日韩久久| 欧美成人精品3d动漫h| 国产传媒欧美日韩成人| 午夜伊人狠狠久久| 国产日韩av一区| 欧美不卡在线视频| 欧美四级电影在线观看| 国产一区二区三区在线观看精品 | 亚洲国产一区二区三区青草影视| 日韩精品专区在线影院重磅| 在线视频你懂得一区二区三区| 国产精品国产三级国产aⅴ入口| 国产suv精品一区二区883| 免费的成人av| 石原莉奈一区二区三区在线观看| 欧美激情一区在线观看| 日韩欧美在线影院| 欧美一区二区三区视频免费| 91麻豆精品在线观看| 福利91精品一区二区三区| 青娱乐精品在线视频| 奇米精品一区二区三区在线观看| 亚洲精品欧美在线| 亚洲蜜臀av乱码久久精品蜜桃| 欧美国产乱子伦 | 欧美一卡在线观看| 欧美日韩国产一二三| 欧美日韩国产天堂| 欧美高清视频在线高清观看mv色露露十八| 91在线精品一区二区| 欧美在线免费播放| 欧美一级一区二区| 精品欧美一区二区三区精品久久 | 欧美一级在线视频| www激情久久| 亚洲日本青草视频在线怡红院| 国产精品进线69影院| 一区二区三区高清不卡| 日本三级亚洲精品| 国产成人午夜片在线观看高清观看 | 成人一级片网址| 欧美日韩一级黄| 欧美精品一区二区三区蜜臀| 国产香蕉久久精品综合网| 亚洲欧洲在线观看av| 日本不卡一区二区三区| 国产剧情av麻豆香蕉精品| 色综合久久久久久久久| 欧美高清视频一二三区| 国产精品高潮呻吟| 日韩av电影免费观看高清完整版 | 免费的国产精品| 色婷婷激情久久| 国产亚洲精品久| 蜜桃视频在线观看一区| 色婷婷精品久久二区二区蜜臂av | 久久er精品视频| 欧美亚洲国产一区在线观看网站| 精品国产亚洲一区二区三区在线观看| 久久久久久久av麻豆果冻| 亚洲va韩国va欧美va精品| www.爱久久.com| 国产日本欧美一区二区| 日韩电影免费在线看| 欧美色图在线观看| 一区二区三区日韩在线观看| 精品一区二区三区在线视频| 在线日韩国产精品| 最新中文字幕一区二区三区| 免费不卡在线观看| 经典三级在线一区| 精品久久免费看| 久久精品国产精品亚洲综合| 欧美一区二区在线看| 亚洲午夜电影在线观看| 欧美综合一区二区| 日韩一区在线免费观看| 91在线免费看| 亚洲制服丝袜av| 欧美一级黄色片| 韩日精品视频一区|