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

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

?? optionlistmodel.java

?? JAVA的一些源碼 JAVA2 STANDARD EDITION DEVELOPMENT KIT 5.0
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
                                 int setMin, int setMax, boolean clearFirst) {        for(int i = Math.min(setMin, clearMin); i <= Math.max(setMax, clearMax); i++) {            boolean shouldClear = contains(clearMin, clearMax, i);            boolean shouldSet = contains(setMin, setMax, i);            if (shouldSet && shouldClear) {                if (clearFirst) {                    shouldClear = false;                }                else {                    shouldSet = false;                }            }            if (shouldSet) {                set(i);            }            if (shouldClear) {                clear(i);            }        }        fireValueChanged();    }   /*   Change the selection with the effect of first clearing the values    *   in the inclusive range [clearMin, clearMax] then setting the values    *   in the inclusive range [setMin, setMax]. Do this in one pass so    *   that no values are cleared if they would later be set.    */    private void changeSelection(int clearMin, int clearMax, int setMin, int setMax) {        changeSelection(clearMin, clearMax, setMin, setMax, true);    }    public void clearSelection() {	removeSelectionInterval(minIndex, maxIndex);    }    public void setSelectionInterval(int index0, int index1) {        if (index0 == -1 || index1 == -1) {            return;        }        if (getSelectionMode() == SINGLE_SELECTION) {            index0 = index1;        }        updateLeadAnchorIndices(index0, index1);        int clearMin = minIndex;        int clearMax = maxIndex;	int setMin = Math.min(index0, index1);	int setMax = Math.max(index0, index1);        changeSelection(clearMin, clearMax, setMin, setMax);    }    public void addSelectionInterval(int index0, int index1)    {        if (index0 == -1 || index1 == -1) {            return;        }        if (getSelectionMode() != MULTIPLE_INTERVAL_SELECTION) {            setSelectionInterval(index0, index1);            return;        }        updateLeadAnchorIndices(index0, index1);        int clearMin = MAX;        int clearMax = MIN;	int setMin = Math.min(index0, index1);	int setMax = Math.max(index0, index1);        changeSelection(clearMin, clearMax, setMin, setMax);    }    public void removeSelectionInterval(int index0, int index1)    {        if (index0 == -1 || index1 == -1) {            return;        }        updateLeadAnchorIndices(index0, index1);	int clearMin = Math.min(index0, index1);	int clearMax = Math.max(index0, index1);	int setMin = MAX;	int setMax = MIN;        changeSelection(clearMin, clearMax, setMin, setMax);    }    private void setState(int index, boolean state) {        if (state) {	    set(index); 	}	else {	    clear(index); 	}    }    /**     * Insert length indices beginning before/after index. If the value      * at index is itself selected, set all of the newly inserted      * items, otherwise leave them unselected. This method is typically     * called to sync the selection model with a corresponding change     * in the data model.     */    public void insertIndexInterval(int index, int length, boolean before)    {	/* The first new index will appear at insMinIndex and the last	 * one will appear at insMaxIndex	 */	int insMinIndex = (before) ? index : index + 1;	int insMaxIndex = (insMinIndex + length) - 1;	/* Right shift the entire bitset by length, beginning with	 * index-1 if before is true, index+1 if it's false (i.e. with	 * insMinIndex).	 */	for(int i = maxIndex; i >= insMinIndex; i--) {	    setState(i + length, value.get(i)); 	}	/* Initialize the newly inserted indices.	 */       	boolean setInsertedValues = value.get(index); 	for(int i = insMinIndex; i <= insMaxIndex; i++) { 	    setState(i, setInsertedValues); 	}    }    /**     * Remove the indices in the interval index0,index1 (inclusive) from     * the selection model.  This is typically called to sync the selection     * model width a corresponding change in the data model.  Note     * that (as always) index0 can be greater than index1.     */    public void removeIndexInterval(int index0, int index1)    {	int rmMinIndex = Math.min(index0, index1);	int rmMaxIndex = Math.max(index0, index1);	int gapLength = (rmMaxIndex - rmMinIndex) + 1;	/* Shift the entire bitset to the left to close the index0, index1	 * gap.	 */	for(int i = rmMinIndex; i <= maxIndex; i++) {	    setState(i, value.get(i + gapLength)); 	}    }    public void setValueIsAdjusting(boolean isAdjusting) {	if (isAdjusting != this.isAdjusting) {	    this.isAdjusting = isAdjusting;	    this.fireValueChanged(isAdjusting);	}    }    public String toString() {	String s =  ((getValueIsAdjusting()) ? "~" : "=") + value.toString();	return getClass().getName() + " " + Integer.toString(hashCode()) + " " + s;    }    /**     * Returns a clone of the receiver with the same selection.     * <code>listenerLists</code> are not duplicated.     *     * @return a clone of the receiver     * @exception CloneNotSupportedException if the receiver does not     *    both (a) implement the <code>Cloneable</code> interface     *    and (b) define a <code>clone</code> method     */    public Object clone() throws CloneNotSupportedException {	OptionListModel clone = (OptionListModel)super.clone();	clone.value = (BitSet)value.clone();	clone.listenerList = new EventListenerList();	return clone;    }    public int getAnchorSelectionIndex() {        return anchorIndex;    }    public int getLeadSelectionIndex() {        return leadIndex;    }    /**     * Set the anchor selection index, leaving all selection values unchanged.      *     * @see #getAnchorSelectionIndex          * @see #setLeadSelectionIndex     */       public void setAnchorSelectionIndex(int anchorIndex) {        this.anchorIndex = anchorIndex;    }    /**     * Set the lead selection index, ensuring that values between the      * anchor and the new lead are either all selected or all deselected.      * If the value at the anchor index is selected, first clear all the      * values in the range [anchor, oldLeadIndex], then select all the values      * values in the range [anchor, newLeadIndex], where oldLeadIndex is the old      * leadIndex and newLeadIndex is the new one.      * <p>      * If the value at the anchor index is not selected, do the same thing in reverse,      * selecting values in the old range and deslecting values in the new one.      * <p>     * Generate a single event for this change and notify all listeners.      * For the purposes of generating minimal bounds in this event, do the      * operation in a single pass; that way the first and last index inside the      * ListSelectionEvent that is broadcast will refer to cells that actually      * changed value because of this method. If, instead, this operation were      * done in two steps the effect on the selection state would be the same      * but two events would be generated and the bounds around the changed values      * would be wider, including cells that had been first cleared and only      * to later be set.      * <p>     * This method can be used in the mouseDragged() method of a UI class      * to extend a selection.       *     * @see #getLeadSelectionIndex          * @see #setAnchorSelectionIndex     */       public void setLeadSelectionIndex(int leadIndex) {        int anchorIndex = this.anchorIndex;        if (getSelectionMode() == SINGLE_SELECTION) {            anchorIndex = leadIndex;        }        int oldMin = Math.min(this.anchorIndex, this.leadIndex);;        int oldMax = Math.max(this.anchorIndex, this.leadIndex);;	int newMin = Math.min(anchorIndex, leadIndex);	int newMax = Math.max(anchorIndex, leadIndex);        if (value.get(this.anchorIndex)) {            changeSelection(oldMin, oldMax, newMin, newMax);        }        else {            changeSelection(newMin, newMax, oldMin, oldMax, false);        }        this.anchorIndex = anchorIndex;        this.leadIndex = leadIndex;    }    /**     * This method is responsible for storing the state     * of the initial selection.  If the selectionMode     * is the default, i.e allowing only for SINGLE_SELECTION,     * then the very last OPTION that has the selected     * attribute set wins.     */    public void setInitialSelection(int i) {	if (initialValue.get(i)) {	    return;	}	if (selectionMode == SINGLE_SELECTION) {	    // reset to empty	    initialValue.and(new BitSet());	}	initialValue.set(i);    }    /**     * Fetches the BitSet that represents the initial     * set of selected items in the list.     */    public BitSet getInitialSelection() {	return initialValue;    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日本一不卡视频| 精品视频123区在线观看| 一本色道久久综合亚洲精品按摩| 在线观看成人小视频| 久久久三级国产网站| 亚洲成人先锋电影| 97精品久久久午夜一区二区三区| 欧美精品精品一区| 亚洲老妇xxxxxx| 国产91丝袜在线播放九色| 欧美一区二区精品在线| 亚洲一区二区三区四区五区中文| 国产精品综合二区| 日韩理论片中文av| caoporn国产一区二区| www精品美女久久久tv| 首页欧美精品中文字幕| 色婷婷av一区二区三区大白胸| 欧美国产成人在线| 国产一区二区三区国产| 日韩视频在线观看一区二区| 亚洲制服丝袜在线| 在线一区二区视频| 一区二区三区中文免费| 99这里只有久久精品视频| 国产偷国产偷精品高清尤物 | 一区二区在线观看av| 国产成人免费在线视频| 精品av久久707| 国内外精品视频| 2024国产精品视频| 国产激情精品久久久第一区二区 | 欧美一区二区观看视频| 婷婷久久综合九色综合绿巨人 | 国产成人h网站| 久久久影院官网| 高清免费成人av| 中文字幕一区二区三区精华液 | 欧美成人aa大片| 麻豆精品在线播放| 综合久久久久久| 99久久精品免费| 亚洲午夜视频在线| 91麻豆精品国产91久久久更新时间| 日韩在线卡一卡二| 日韩欧美在线综合网| 激情文学综合插| 国产网站一区二区三区| 91蝌蚪porny| 性做久久久久久免费观看 | 色88888久久久久久影院按摩| 亚洲靠逼com| 欧美日韩免费高清一区色橹橹| 午夜av一区二区三区| 欧美一区二区三区免费| 国产suv精品一区二区三区| 中文幕一区二区三区久久蜜桃| 99国产精品视频免费观看| 成人免费一区二区三区视频| 欧美性极品少妇| 日韩av在线发布| 国产欧美精品一区| 欧美网站一区二区| 久草这里只有精品视频| 亚洲欧洲日产国产综合网| 欧美日韩精品是欧美日韩精品| 国内欧美视频一区二区| 亚洲人快播电影网| 久久综合一区二区| 欧美日韩一区二区三区在线 | 日本韩国欧美一区二区三区| 亚洲成人你懂的| 国产精品毛片高清在线完整版 | 91亚洲精品久久久蜜桃网站| 日韩中文字幕亚洲一区二区va在线 | 色婷婷av一区二区三区gif| 日本中文字幕一区二区视频 | 国产日韩亚洲欧美综合| 在线观看亚洲一区| 国产成人免费在线观看不卡| 视频一区欧美日韩| 国产精品盗摄一区二区三区| 欧美不卡一区二区三区四区| 99久久精品免费| 国产福利一区二区三区| 日本不卡1234视频| 亚洲动漫第一页| 中文字幕一区在线| 国产女同性恋一区二区| 4438亚洲最大| 欧美午夜精品久久久| 岛国精品一区二区| 精品亚洲国内自在自线福利| 亚洲成人你懂的| 亚洲欧美另类在线| 国产精品免费av| 精品国产一区二区亚洲人成毛片| 欧美日韩在线播放三区| 日本道精品一区二区三区| 国产成人在线电影| 国内一区二区视频| 精品在线播放免费| 美腿丝袜在线亚洲一区| 青青草91视频| 日韩黄色免费电影| 亚洲国产日韩av| 亚洲电影中文字幕在线观看| 亚洲一级电影视频| 亚洲午夜久久久久| 亚洲一二三四在线| 午夜日韩在线电影| 亚洲sss视频在线视频| 夜夜嗨av一区二区三区中文字幕| 亚洲三级理论片| 亚洲视频电影在线| 日韩一区欧美小说| 亚洲精品视频观看| 午夜私人影院久久久久| 午夜激情一区二区三区| 午夜精品福利一区二区三区蜜桃| 亚洲国产欧美在线人成| 午夜精品久久久久久久99樱桃| 亚洲成av人影院在线观看网| 午夜精品久久久久影视| 男女男精品网站| 国产精品一区二区三区99| 国产成人精品一区二区三区四区 | 国产精品视频第一区| 欧美激情在线看| 一区二区三区免费网站| 五月婷婷综合在线| 狠狠色2019综合网| 不卡av免费在线观看| 在线观看中文字幕不卡| 欧美日韩高清在线播放| 精品国产一区二区在线观看| 中文字幕欧美国产| 一区二区免费视频| 激情av综合网| 91亚洲永久精品| 欧美一级二级在线观看| 日本一区二区三区四区| 一区二区成人在线| 国产一区二区影院| 色视频成人在线观看免| 日韩欧美国产综合| 亚洲色图自拍偷拍美腿丝袜制服诱惑麻豆| 亚洲情趣在线观看| 韩国中文字幕2020精品| 91美女在线观看| 日韩精品专区在线| 亚洲曰韩产成在线| 国内精品伊人久久久久av一坑| 99久久国产综合精品女不卡 | 欧美日韩中文字幕一区二区| 日韩欧美精品在线视频| 国产精品久久久久精k8| 日本成人超碰在线观看| 成人avav在线| 日韩欧美一级片| 亚洲女人的天堂| 国产在线一区观看| 欧美网站一区二区| 中文字幕日韩一区| 国产东北露脸精品视频| 欧美福利视频导航| 国产精品国产三级国产普通话99| 免费精品视频在线| 欧美日韩www| 亚洲视频免费在线观看| 国产精品一区二区在线看| 制服.丝袜.亚洲.另类.中文| 亚洲欧美视频在线观看| 成人夜色视频网站在线观看| 精品日韩在线观看| 婷婷综合在线观看| 欧美伊人久久久久久午夜久久久久| 国产日韩亚洲欧美综合| 久久不见久久见免费视频7| 欧美日韩夫妻久久| 夜夜亚洲天天久久| 91社区在线播放| 中文字幕在线不卡国产视频| 国产高清成人在线| 国产亚洲欧美中文| 国产成人一级电影| 久久精品在线观看| 国产激情一区二区三区四区| 26uuu精品一区二区在线观看| 日本美女视频一区二区| 91麻豆精品久久久久蜜臀| 亚洲国产一区二区三区| 色婷婷综合久久久中文字幕| 1区2区3区国产精品| 99久久久免费精品国产一区二区| 日本一二三不卡| 成人午夜视频免费看| 国产精品欧美一区喷水| 99久久99久久久精品齐齐| 自拍偷拍欧美精品|