• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java ResizedEvent类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中com.smartgwt.client.widgets.events.ResizedEvent的典型用法代码示例。如果您正苦于以下问题:Java ResizedEvent类的具体用法?Java ResizedEvent怎么用?Java ResizedEvent使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



ResizedEvent类属于com.smartgwt.client.widgets.events包,在下文中一共展示了ResizedEvent类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: CkEditor

import com.smartgwt.client.widgets.events.ResizedEvent; //导入依赖的package包/类
/**
 * Constructor for {@link CkEditor}. Handles necessary {@link Canvas}
 * parameters and adds a {@link ResizeHandler} which handles resizes of the
 * canvas
 */
/*
 * this.setRedrawOnResize is necessary since every redraw would destroy the
 * current CKEditor instance Therefore the ResizedHandler is necessary to
 * fit the size of the editor to its encapsulating canvas
 */
public CkEditor(boolean showToolbar,
		CkEditorInitListener... initListeners) {
	this.ck_id = this.getID() + "_ckEditor";
	this.showToolbar = showToolbar;
	this.initListeners = initListeners;
	this.setRedrawOnResize(false);
	this.setOverflow(Overflow.HIDDEN);
	this.addResizedHandler(new ResizedHandler() {

		@Override
		public void onResized(ResizedEvent event) {
			if (CkEditor.this.isDrawn())
				ckEditorJsObj.resize(getInnerContentWidth(),
						getInnerContentHeight());
		}
	});
}
 
开发者ID:UKPLab,项目名称:naacl-bea2016-writing-study,代码行数:28,代码来源:CkEditor.java


示例2: initializeWindow

import com.smartgwt.client.widgets.events.ResizedEvent; //导入依赖的package包/类
protected void initializeWindow() {
        setShowModalMask(true);
        setIsModal(true);
        setTitle(i18n.login());
        setWidth(WIDTH);
        setHeight(HEIGHT);
        centerInPage();
        setCanDragResize(true);
        setShowMaximizeButton(true);
        setShowMinimizeButton(false);
//        setMargin(10);
        addResizedHandler(new ResizedHandler() {
            @Override
            public void onResized(ResizedEvent event) {
                WIDTH = LoginWindow.this.getWidth();
                HEIGHT = LoginWindow.this.getHeight();
            }
        });
    }
 
开发者ID:52North,项目名称:SensorWebClient,代码行数:20,代码来源:LoginWindow.java


示例3: initializeWindow

import com.smartgwt.client.widgets.events.ResizedEvent; //导入依赖的package包/类
private void initializeWindow() {
      setID(COMPONENT_ID);
      setOverflow(HIDDEN);
      setShowModalMask(true);
      setIsModal(true);
      setTitle(i18n.pickStation());
      setWidth(WIDTH);
      setHeight(HEIGHT);
      centerInPage();
      setCanDragResize(true);
      setShowMaximizeButton(true);
      setShowMinimizeButton(false);
      addResizedHandler(new ResizedHandler() {
	@Override
	public void onResized(ResizedEvent event) {
		WIDTH = StationSelector.this.getWidth();
		HEIGHT = StationSelector.this.getHeight();
		setSelectionMenuButtonPosition();
		setSelectionMenuWindowPosition();
		setStationLoadingSpinnerPosition();
		setInfoWindowPosition();
	}
});
  }
 
开发者ID:52North,项目名称:SensorWebClient,代码行数:25,代码来源:StationSelector.java


示例4: SearchPanel

import com.smartgwt.client.widgets.events.ResizedEvent; //导入依赖的package包/类
/**
 * The only constructor.
 * 
 * @param mapModel
 *            The map's model. It knows what layers we can search in.
 * @param parent
 *            The map's parent widget. We use this to attach the search layout to.
 */
public SearchPanel(final MapModel mapModel, final Canvas parent) {
	// Set some parameters:
	setTop(TOP_OFFSET);
	setLeft(parent.getWidth() - BTN_WIDTH - 8);
	setWidth(BTN_WIDTH);
	setHeight(BTN_WIDTH + BTN_WIDTH + 8);
	setStyleName("search_panel_buttons");

	// Create the button GUI:
	createButtonGui();

	// Create the 2 panels:
	panelLayout = new VLayout();
	panelLayout.setBackgroundColor("${symbol_pound}647386");
	panelLayout.setTop(TOP_OFFSET);
	panelLayout.setLeft(parent.getWidth() - PANEL_WIDTH);
	panelLayout.setHeight(PANEL_HEIGHT);
	panelLayout.setWidth(PANEL_WIDTH);
	panelLayout.setStyleName("search_panel");
	panelLayout.setVisible(false);

	gridPanel = createGridPanel(mapModel);
	searchPanel = createSearchPanel(mapModel);
	panelLayout.addChild(searchPanel);
	panelLayout.addChild(gridPanel);

	parent.addChild(panelLayout);

	// Add a handler that makes sure this widget is placed at the correct location when the parent widget resizes:
	parent.addResizedHandler(new ResizedHandler() {

		public void onResized(ResizedEvent event) {
			setTop(TOP_OFFSET);
			setLeft(parent.getWidth() - BTN_WIDTH - 8);
			panelLayout.setLeft(parent.getWidth() - PANEL_WIDTH);
		}
	});
}
 
开发者ID:geomajas,项目名称:geomajas-project-client-gwt,代码行数:47,代码来源:SearchPanel.java


示例5: SearchPanel

import com.smartgwt.client.widgets.events.ResizedEvent; //导入依赖的package包/类
/**
 * The only constructor.
 * 
 * @param mapModel
 *            The map's model. It knows what layers we can search in.
 * @param parent
 *            The map's parent widget. We use this to attach the search layout to.
 */
public SearchPanel(final MapModel mapModel, final Canvas parent) {
	// Set some parameters:
	setTop(TOP_OFFSET);
	setLeft(parent.getWidth() - BTN_WIDTH - 8);
	setWidth(BTN_WIDTH);
	setHeight(BTN_WIDTH + BTN_WIDTH + 8);
	setStyleName("search_panel_buttons");

	// Create the button GUI:
	createButtonGui();

	// Create the 2 panels:
	panelLayout = new VLayout();
	panelLayout.setBackgroundColor("#647386");
	panelLayout.setTop(TOP_OFFSET);
	panelLayout.setLeft(parent.getWidth() - PANEL_WIDTH);
	panelLayout.setHeight(PANEL_HEIGHT);
	panelLayout.setWidth(PANEL_WIDTH);
	panelLayout.setStyleName("search_panel");
	panelLayout.setVisible(false);

	gridPanel = createGridPanel(mapModel);
	searchPanel = createSearchPanel(mapModel);
	panelLayout.addChild(searchPanel);
	panelLayout.addChild(gridPanel);

	parent.addChild(panelLayout);

	// Add a handler that makes sure this widget is placed at the correct location when the parent widget resizes:
	parent.addResizedHandler(new ResizedHandler() {

		public void onResized(ResizedEvent event) {
			setTop(TOP_OFFSET);
			setLeft(parent.getWidth() - BTN_WIDTH - 8);
			panelLayout.setLeft(parent.getWidth() - PANEL_WIDTH);
		}
	});
}
 
开发者ID:geomajas,项目名称:geomajas-project-client-gwt,代码行数:47,代码来源:SearchPanel.java


示例6: insertModalIntoCanvas

import com.smartgwt.client.widgets.events.ResizedEvent; //导入依赖的package包/类
private void insertModalIntoCanvas() {
	if (!canvas.contains(parent)) {
		canvas.addChild(parent);
		canvas.addResizedHandler(new ResizedHandler() {
			public void onResized(ResizedEvent event) {
				parent.setWidth(canvas.getWidth());
				parent.setHeight(canvas.getHeight());
			}
		});
	}
}
 
开发者ID:SHARP-HTP,项目名称:phenotype-portal,代码行数:12,代码来源:ModalWindow.java


示例7: onResized

import com.smartgwt.client.widgets.events.ResizedEvent; //导入依赖的package包/类
@Override
public void onResized(ResizedEvent event) {
    ClientUtils.fine(LOG, "image onResized: %s", image.getUrl());
    scheduleForRender();
}
 
开发者ID:proarc,项目名称:proarc,代码行数:6,代码来源:DigitalObjectPreview.java


示例8: onResized

import com.smartgwt.client.widgets.events.ResizedEvent; //导入依赖的package包/类
public void onResized(ResizedEvent event) {
	// try resize
	resizeIfReady();
}
 
开发者ID:geomajas,项目名称:geomajas-project-client-gwt,代码行数:5,代码来源:GraphicsWidget.java



注:本文中的com.smartgwt.client.widgets.events.ResizedEvent类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java JRPrintHyperlink类代码示例发布时间:2022-05-22
下一篇:
Java ErrorHandler类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap