<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);
    }

     
    主站蜘蛛池模板: 亚洲国产超清无码专区| 免费女人18毛片a级毛片视频| 国产精品福利片免费看| 三上悠亚在线观看免费| 99视频免费在线观看| 久久久久av无码免费网| 成人免费男女视频网站慢动作| 免费v片视频在线观看视频| MM1313亚洲精品无码久久| 久久精品免费观看| 成年女人视频网站免费m| 性xxxx黑人与亚洲| 男人扒开添女人下部免费视频| 午夜网站在线观看免费完整高清观看 | 日本免费一二区在线电影| 亚洲色婷婷综合久久| 亚洲国产最大av| 在线日韩av永久免费观看| 日本中文字幕免费看| 亚洲欧洲精品无码AV| 2020因为爱你带字幕免费观看全集 | 亚洲一区爱区精品无码| 日本zzzzwww大片免费| 亚洲精品无码成人片久久不卡 | 精品亚洲456在线播放| 84pao强力永久免费高清| 曰韩亚洲av人人夜夜澡人人爽| 亚洲AV无码一区二区三区牛牛| 成人免费视频国产| 中文字幕乱理片免费完整的| 亚洲毛片一级带毛片基地| 国产精品免费一区二区三区四区| 亚洲成?Ⅴ人在线观看无码| 伊人久久五月丁香综合中文亚洲| 2019中文字幕免费电影在线播放 | 久久99青青精品免费观看| 国产成人亚洲综合网站不卡| 国产成人精品久久亚洲高清不卡 | 一级做a爰黑人又硬又粗免费看51社区国产精品视 | 免费福利资源站在线视频| 亚洲精品免费视频|