<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    我的評(píng)論

    re: [Dengues] 關(guān)于如何配置GEF中的Palette 小張飛刀(Dengues Studio) 2007-10-26 11:24  
    補(bǔ)充一下其實(shí)說(shuō)白了,在Graphical Editor的getPalettePreference方法里返回一個(gè)FlyoutPreferences對(duì)象就可以了,它是一個(gè)寫在FlyoutPaletteComposite里的接口,源代碼如下:


    /**
    * FlyoutPreferences is used to save/load the preferences for the flyout palette.
    *
    * @author Pratik Shah
    * @since 3.0
    */
    public interface FlyoutPreferences {
    /**
    * Should return {@link PositionConstants#EAST} or {@link PositionConstants#WEST}.
    * Any other int will be ignored and the default dock location (EAST) will be
    * used instead.
    * @return the saved dock location of the Palette
    */
    int getDockLocation();
    /**
    * When there is no saved state, this method can return any non-positive int (which
    * will result in the palette using the default state -- collapsed), or
    * {@link FlyoutPaletteComposite#STATE_COLLAPSED}, or
    * {@link FlyoutPaletteComposite#STATE_PINNED_OPEN}
    * @return the saved state of the palette
    */
    int getPaletteState();
    /**
    * When there is no saved width, this method can return any int (preferrably a
    * non-positive int). Returning a non-positive int will cause the palette to be
    * sized to the default size, whereas returning a postive int will find the
    * closest match in the valid range (>= minimum and <= maximum)
    * @return the saved width of the flyout palette
    */
    int getPaletteWidth();
    /**
    * This method is invoked when the flyout palette's dock location is changed. The
    * provided dock location should be persisted and returned in
    * {@link #getDockLocation()}.
    * @param location {@link PositionConstants#EAST} or {@link PositionConstants#WEST}
    */
    void setDockLocation(int location);
    /**
    * This method is invoked when the flyout palette's state is changed (the new state
    * becomes the default). The provided state should be persisted and returned in
    * {@link #getPaletteState()}.
    * @param state {@link FlyoutPaletteComposite#STATE_COLLAPSED} or
    * {@link FlyoutPaletteComposite#STATE_PINNED_OPEN}
    */
    void setPaletteState(int state);
    /**
    * This method is invoked when the flyout palette is resized. The provided width
    * should be persisted and returned in {@link #getPaletteWidth()}.
    * @param width the new size of the flyout palette
    */
    void setPaletteWidth(int width);
    }

     
    主站蜘蛛池模板: 免费看的黄色大片| 亚洲AⅤ视频一区二区三区| 亚洲精品无码专区在线在线播放| 国产精品久久亚洲一区二区| 日韩免费观看的一级毛片| 亚洲日产乱码一二三区别| 最近免费中文字幕4| 亚洲日韩国产一区二区三区在线| 搡女人真爽免费视频大全| 亚洲精品女同中文字幕| 免费看大美女大黄大色| 美女裸免费观看网站| 114级毛片免费观看| 2020年亚洲天天爽天天噜| 妞干网在线免费视频| 黄床大片30分钟免费看| 久久久久亚洲精品中文字幕| 国产午夜成人免费看片无遮挡| 亚洲爆乳无码专区| 免费观看无遮挡www的视频| 亚洲www77777| 亚洲AV日韩精品一区二区三区| 国产精品免费久久久久久久久 | 亚洲综合久久1区2区3区| 最近最新MV在线观看免费高清 | fc2成年免费共享视频网站| 亚洲综合在线另类色区奇米| 久久国产乱子伦精品免费强| 涩涩色中文综合亚洲| 亚洲国产精品人人做人人爱| 青青草原1769久久免费播放| 亚洲成综合人影院在院播放| 国产一区二区三区在线免费| 国产情侣久久久久aⅴ免费| 亚洲偷自精品三十六区| 亚洲精品成a人在线观看| 三年片在线观看免费观看大全动漫 | 在线视频精品免费| 日韩精品视频在线观看免费| 99亚洲精品高清一二区| 日韩激情淫片免费看|