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

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

?? cardlayout.java

?? This is a resource based on j2me embedded,if you dont understand,you can connection with me .
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
                if (d.width > w) {                    w = d.width;                }                if (d.height > h) {                    h = d.height;                }            }            return new Dimension(insets.left + insets.right + w + hgap*2,                                 insets.top + insets.bottom + h + vgap*2);        }    }    /**     * Returns the maximum dimensions for this layout given the components     * in the specified target container.     * @param target the component which needs to be laid out     * @see Container     * @see #minimumLayoutSize     * @see #preferredLayoutSize     */    public Dimension maximumLayoutSize(Container target) {	return new Dimension(Integer.MAX_VALUE, Integer.MAX_VALUE);    }    /**     * Returns the alignment along the x axis.  This specifies how     * the component would like to be aligned relative to other     * components.  The value should be a number between 0 and 1     * where 0 represents alignment along the origin, 1 is aligned     * the furthest away from the origin, 0.5 is centered, etc.     */    public float getLayoutAlignmentX(Container parent) {	return 0.5f;    }    /**     * Returns the alignment along the y axis.  This specifies how     * the component would like to be aligned relative to other     * components.  The value should be a number between 0 and 1     * where 0 represents alignment along the origin, 1 is aligned     * the furthest away from the origin, 0.5 is centered, etc.     */    public float getLayoutAlignmentY(Container parent) {	return 0.5f;    }    /**     * Invalidates the layout, indicating that if the layout manager     * has cached information it should be discarded.     */    public void invalidateLayout(Container target) {    }    /**     * Lays out the specified container using this card layout.     * <p>     * Each component in the <code>parent</code> container is reshaped     * to be the size of the container, minus space for surrounding     * insets, horizontal gaps, and vertical gaps.     *     * @param     parent the name of the parent container     *                             in which to do the layout.     * @see       java.awt.Container#doLayout     */    public void layoutContainer(Container parent) {        synchronized (parent.getTreeLock()) {            Insets insets = parent.getInsets();            int ncomponents = parent.getComponentCount();            Component comp = null;            boolean currentFound = false;            for (int i = 0 ; i < ncomponents ; i++) {                comp = parent.getComponent(i);                comp.setBounds(hgap + insets.left, vgap + insets.top,                               parent.width - (hgap*2 + insets.left + insets.right),                               parent.height - (vgap*2 + insets.top + insets.bottom));                if (comp.isVisible()) {                    currentFound = true;                }            }            if (!currentFound && ncomponents > 0) {                parent.getComponent(0).setVisible(true);            }        }    }    /**     * Make sure that the Container really has a CardLayout installed.     * Otherwise havoc can ensue!     */    void checkLayout(Container parent) {	if (parent.getLayout() != this) {	    throw new IllegalArgumentException("wrong parent for CardLayout");	}    }    /**     * Flips to the first card of the container.     * @param     parent   the name of the parent container     *                          in which to do the layout.     * @see       java.awt.CardLayout#last     */    public void first(Container parent) {	synchronized (parent.getTreeLock()) {	    checkLayout(parent);            int ncomponents = parent.getComponentCount();            for (int i = 0 ; i < ncomponents ; i++) {                Component comp = parent.getComponent(i);                if (comp.isVisible()) {                    comp.setVisible(false);                    break;                }            }            if (ncomponents > 0) {                currentCard = 0;                parent.getComponent(0).setVisible(true);                parent.validate();            }	}    }    /**     * Flips to the next card of the specified container. If the     * currently visible card is the last one, this method flips to the     * first card in the layout.     * @param     parent   the name of the parent container     *                          in which to do the layout.     * @see       java.awt.CardLayout#previous     */    public void next(Container parent) {	synchronized (parent.getTreeLock()) {	    checkLayout(parent);            int ncomponents = parent.getComponentCount();            for (int i = 0 ; i < ncomponents ; i++) {                Component comp = parent.getComponent(i);                if (comp.isVisible()) {                    comp.setVisible(false);                    currentCard = (i + 1) % ncomponents;                    comp = parent.getComponent(currentCard);                    comp.setVisible(true);                    parent.validate();                    return;                }            }            showDefaultComponent(parent);	}    }    /**     * Flips to the previous card of the specified container. If the     * currently visible card is the first one, this method flips to the     * last card in the layout.     * @param     parent   the name of the parent container     *                          in which to do the layout.     * @see       java.awt.CardLayout#next     */    public void previous(Container parent) {	synchronized (parent.getTreeLock()) {	    checkLayout(parent);            int ncomponents = parent.getComponentCount();            for (int i = 0 ; i < ncomponents ; i++) {                Component comp = parent.getComponent(i);                if (comp.isVisible()) {                    comp.setVisible(false);                    currentCard = ((i > 0) ? i-1 : ncomponents-1);                    comp = parent.getComponent(currentCard);                    comp.setVisible(true);                    parent.validate();                    return;                }            }            showDefaultComponent(parent);	}    }    void showDefaultComponent(Container parent) {        if (parent.getComponentCount() > 0) {            currentCard = 0;            parent.getComponent(0).setVisible(true);            parent.validate();        }    }    /**     * Flips to the last card of the container.     * @param     parent   the name of the parent container     *                          in which to do the layout.     * @see       java.awt.CardLayout#first     */    public void last(Container parent) {	synchronized (parent.getTreeLock()) {	    checkLayout(parent);            int ncomponents = parent.getComponentCount();            for (int i = 0 ; i < ncomponents ; i++) {                Component comp = parent.getComponent(i);                if (comp.isVisible()) {                    comp.setVisible(false);                    break;                }            }            if (ncomponents > 0) {                currentCard = ncomponents - 1;                parent.getComponent(currentCard).setVisible(true);                parent.validate();            }	}    }    /**     * Flips to the component that was added to this layout with the     * specified <code>name</code>, using <code>addLayoutComponent</code>.     * If no such component exists, then nothing happens.     * @param     parent   the name of the parent container     *                     in which to do the layout.     * @param     name     the component name.     * @see       java.awt.CardLayout#addLayoutComponent(java.awt.Component, java.lang.Object)     */    public void show(Container parent, String name) {	synchronized (parent.getTreeLock()) {	    checkLayout(parent);            Component next = null;            int ncomponents = vector.size();            for (int i = 0; i < ncomponents; i++) {                Card card = (Card)vector.get(i);                if (card.name.equals(name)) {                    next = card.comp;                    currentCard = i;                    break;                }            }            if ((next != null) && !next.isVisible()) {                ncomponents = parent.getComponentCount();                for (int i = 0; i < ncomponents; i++) {                    Component comp = parent.getComponent(i);                    if (comp.isVisible()) {                        comp.setVisible(false);                        break;                    }                }                next.setVisible(true);                parent.validate();            }	}    }    /**     * Returns a string representation of the state of this card layout.     * @return    a string representation of this card layout.     */    public String toString() {	return getClass().getName() + "[hgap=" + hgap + ",vgap=" + vgap + "]";    }    /**     * Reads serializable fields from stream.     */    private void readObject(ObjectInputStream s)	throws ClassNotFoundException, IOException    {        ObjectInputStream.GetField f = s.readFields();        hgap = f.get("hgap", 0);        vgap = f.get("vgap", 0);        if (f.defaulted("vector")) {              //  pre-1.4 stream            Hashtable tab = (Hashtable)f.get("tab", null);            vector = new Vector();            if (tab != null && !tab.isEmpty()) {                for (Enumeration e = tab.keys() ; e.hasMoreElements() ; ) {                    String key = (String)e.nextElement();                    Component comp = (Component)tab.get(key);                    vector.add(new Card(key, comp));                    if (comp.isVisible()) {                        currentCard = vector.size() - 1;                    }                }            }        } else {            vector = (Vector)f.get("vector", null);            currentCard = f.get("currentCard", 0);        }    }    /**     * Writes serializable fields to stream.     */    private void writeObject(ObjectOutputStream s)        throws IOException    {        Hashtable tab = new Hashtable();        int ncomponents = vector.size();        for (int i = 0; i < ncomponents; i++) {            Card card = (Card)vector.get(i);            tab.put(card.name, card.comp);        }        ObjectOutputStream.PutField f = s.putFields();        f.put("hgap", hgap);        f.put("vgap", vgap);        f.put("vector", vector);        f.put("currentCard", currentCard);        f.put("tab", tab);        s.writeFields();    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
色欧美88888久久久久久影院| 成人av电影在线| 一区二区在线观看免费| 国产精品毛片无遮挡高清| 久久久亚洲精品一区二区三区| 欧美一级高清片| 日韩欧美亚洲国产另类| 91精品国产高清一区二区三区蜜臀| 欧美日韩大陆一区二区| 欧美一区二区三级| 欧美成人精品1314www| 日韩三级.com| 久久精品综合网| 亚洲精品写真福利| 日韩av高清在线观看| 极品美女销魂一区二区三区| 久久aⅴ国产欧美74aaa| 懂色av中文一区二区三区| 91亚洲大成网污www| 欧美色视频在线| 91精品国产色综合久久ai换脸| 91精品国产综合久久香蕉麻豆| 欧美成人女星排行榜| 国产精品久久影院| 亚洲第一在线综合网站| 久久精品国产成人一区二区三区 | av不卡在线观看| 在线精品视频免费观看| 日韩欧美你懂的| 国产欧美日韩在线看| 亚洲精品成人精品456| 免费久久99精品国产| 国产精品亚洲成人| 欧美视频精品在线观看| 精品国产乱码久久久久久浪潮| 国产精品美女久久久久久| 亚洲成人久久影院| 高清国产一区二区| 欧美肥妇bbw| 国产精品麻豆网站| 奇米影视一区二区三区| 波多野结衣在线aⅴ中文字幕不卡| 欧美午夜影院一区| 国产欧美一区二区精品性| 三级影片在线观看欧美日韩一区二区 | 天天射综合影视| 国产a级毛片一区| 欧美一区二区三区免费在线看 | 波多野结衣精品在线| 欧美嫩在线观看| 亚洲免费观看视频| 国产美女精品在线| 欧美电影一区二区| 亚洲免费电影在线| 成人精品视频一区二区三区| 欧美丰满少妇xxxxx高潮对白| **网站欧美大片在线观看| 韩日av一区二区| 欧美一区二区免费视频| 亚洲高清不卡在线观看| 色综合中文字幕国产| 亚洲国产岛国毛片在线| 精久久久久久久久久久| 欧美一区二区三区人| 五月婷婷另类国产| 在线欧美日韩国产| 亚洲免费伊人电影| 色综合激情五月| 成人免费在线视频观看| 成人午夜av电影| 国产亚洲精品精华液| 国产乱码精品一区二区三| 精品福利在线导航| 看国产成人h片视频| 日韩一区国产二区欧美三区| 日韩电影在线免费观看| 91精品国产欧美一区二区成人| 午夜精品国产更新| 欧美精品乱码久久久久久| 亚洲高清免费一级二级三级| 91.com在线观看| 日本欧美一区二区| 日韩精品一区二区三区四区| 久久99精品久久久久婷婷| 久久综合av免费| 懂色av一区二区三区蜜臀| 国产精品久久福利| 色播五月激情综合网| 天堂va蜜桃一区二区三区漫画版| 欧美一区二区久久| 国产成人免费视频网站| 亚洲欧美在线视频观看| 欧美老女人在线| 国产一区二区中文字幕| 国产精品久久久久久一区二区三区| 91原创在线视频| 午夜国产精品一区| 久久亚洲综合色| 99视频精品全部免费在线| 亚洲电影激情视频网站| 欧美一区中文字幕| 成人免费精品视频| 亚洲chinese男男1069| 精品理论电影在线| 99久久婷婷国产| 日本v片在线高清不卡在线观看| 久久久91精品国产一区二区精品| 91亚洲精品久久久蜜桃网站| 免费成人你懂的| 一区二区视频在线| 2017欧美狠狠色| 91福利区一区二区三区| 国产在线精品一区在线观看麻豆| 亚洲精品水蜜桃| 久久人人97超碰com| 欧美写真视频网站| 国产成都精品91一区二区三 | 日韩精品一区二区三区在线观看| av在线不卡免费看| 久久99国内精品| 一区二区三区中文在线观看| 久久蜜桃一区二区| 欧美一区二区性放荡片| 一本一道综合狠狠老| 国产一区不卡精品| 日韩va欧美va亚洲va久久| 伊人婷婷欧美激情| 中文字幕一区二区三区在线播放| 日韩久久精品一区| 欧美撒尿777hd撒尿| jlzzjlzz亚洲日本少妇| 丰满少妇在线播放bd日韩电影| 日韩精品三区四区| 一区二区三区波多野结衣在线观看| 国产欧美日韩一区二区三区在线观看| 欧美日韩国产一级二级| 色综合久久久久网| 99精品视频一区二区三区| 粉嫩一区二区三区性色av| 久久不见久久见免费视频7| 三级亚洲高清视频| 日韩专区中文字幕一区二区| 一区二区三区四区精品在线视频| 国产精品久久精品日日| 国产精品久久午夜| 国产精品美女视频| 国产精品拍天天在线| 中文字幕的久久| 亚洲国产精品高清| 中文在线资源观看网站视频免费不卡| 久久伊人中文字幕| 久久先锋影音av鲁色资源网| 精品日韩在线一区| 久久精品一区二区三区不卡| 亚洲国产精品成人综合 | 亚洲高清免费一级二级三级| 亚洲一区在线观看视频| 亚洲国产精品久久一线不卡| 香蕉成人啪国产精品视频综合网| 亚洲一区二区精品久久av| 丝袜亚洲精品中文字幕一区| 日韩影院精彩在线| 蜜臀av一级做a爰片久久| 六月婷婷色综合| 国产麻豆精品在线观看| www.欧美.com| 欧美在线视频不卡| 日韩三级视频中文字幕| 久久精品欧美日韩精品| 国产精品国产三级国产有无不卡 | 成人av午夜电影| 91老师片黄在线观看| 欧美日韩1234| 欧美大片在线观看一区| 欧美国产精品专区| 亚洲自拍都市欧美小说| 美女在线观看视频一区二区| 国产精品一级在线| 色婷婷av一区二区三区软件| 91超碰这里只有精品国产| 久久人人爽爽爽人久久久| 亚洲欧美日韩在线| 久久精品国产第一区二区三区| 高清成人在线观看| 欧美日韩一级大片网址| 欧美变态凌虐bdsm| 亚洲精品一卡二卡| 经典三级在线一区| 99re亚洲国产精品| 制服.丝袜.亚洲.中文.综合| 久久精品一区四区| 午夜天堂影视香蕉久久| 国产成人99久久亚洲综合精品| 在线观看日韩国产| 国产日韩高清在线| 男女性色大片免费观看一区二区 | 日韩欧美一二三区| 尤物av一区二区| 国产成a人亚洲| 日韩三级.com|