当前位置: 首页>>代码示例>>Java>>正文


Java Window.setCanDragResize方法代码示例

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


在下文中一共展示了Window.setCanDragResize方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: buildWindow

import com.smartgwt.client.widgets.Window; //导入方法依赖的package包/类
private Window buildWindow() {
    
    Window window = new Window();
    window.setTitle("About OSWf Simulator");
    window.setWidth(400);
    window.setHeight(225);
    window.setIsModal(true);
    window.setShowModalMask(true);
    window.centerInPage();

    window.setShowMinimizeButton(false);
    window.setShowResizer(false);
    window.setShowStatusBar(true);
    window.setShowMaximizeButton(false);
    window.setCanDragResize(true);  

    return window;
}
 
开发者ID:will-gilbert,项目名称:OSWf-OSWorkflow-fork,代码行数:19,代码来源:AboutBoxView.java

示例2: createFullImageWindow

import com.smartgwt.client.widgets.Window; //导入方法依赖的package包/类
private Window createFullImageWindow(Canvas content) {
    final Window window = new Window();
    window.setWidth(Page.getWidth() - 200);
    window.setHeight(Page.getHeight() - 40);
    window.setAutoCenter(true);
    window.setMaximized(true);
    window.setCanDragResize(true);
    window.setCanDragReposition(true);
    window.setIsModal(true);
    window.setDismissOnEscape(true);
    window.setDismissOnOutsideClick(true);
    window.setKeepInParentRect(true);
    window.setShowMaximizeButton(true);
    window.setShowMinimizeButton(false);

    window.setModalMaskOpacity(10);
    window.setShowModalMask(true);

    window.setShowResizer(true);
    window.setTitle(i18n.DigitalObjectPreview_Window_Title());
    window.setBodyColor(BACKGROUND_COLOR);
    window.setCanFocus(true);
    window.addItem(content);

    window.setHeaderControls(HeaderControls.HEADER_ICON, HeaderControls.HEADER_LABEL,
            getWindowZoomer(), HeaderControls.MAXIMIZE_BUTTON, HeaderControls.CLOSE_BUTTON);

    window.addCloseClickHandler(new CloseClickHandler() {

        @Override
        public void onCloseClick(CloseClickEvent event) {
            event.cancel();
            window.close();
            onWindowClose();
        }
    });

    return window;
}
 
开发者ID:proarc,项目名称:proarc,代码行数:40,代码来源:DigitalObjectPreview.java

示例3: createFeatureDetailWindow

import com.smartgwt.client.widgets.Window; //导入方法依赖的package包/类
public Window createFeatureDetailWindow(Feature feature, boolean editingAllowed) {
	Window w = new Window();
	w.setAutoSize(true);
	w.setTitle(I18nProvider.getAttribute().getAttributeWindowTitle(feature.getLabel()));
	w.setCanDragReposition(true);
	w.setCanDragResize(true);
	w.addItem(new CustomCountriesFeatureInfoCanvas(feature));
	return w;
}
 
开发者ID:geomajas,项目名称:geomajas-project-client-gwt,代码行数:10,代码来源:CustomCountriesFeatureInfoCanvasBuilder.java

示例4: createWindow

import com.smartgwt.client.widgets.Window; //导入方法依赖的package包/类
private Window createWindow(String subtitle) {
	Window w = new Window();
	w.setWidth(windowWidth);
	w.setHeight(windowHeight);
	w.setTitle(I18nProvider.getAttribute().getAttributeWindowTitle(subtitle));
	w.setCanDragReposition(true);
	w.setCanDragResize(true);
	w.setAutoCenter(true);
	w.setKeepInParentRect(true);
	return w;
}
 
开发者ID:geomajas,项目名称:geomajas-project-client-gwt,代码行数:12,代码来源:UrlFeatureDetailWidgetBuilder.java

示例5: createWindow

import com.smartgwt.client.widgets.Window; //导入方法依赖的package包/类
private void createWindow() {
	window = new Window();
	window.hide();
	label = new HTMLFlow(infoProvider.getHtml(editService.getGeometry(), null, null, null));
	label.setAlign(Alignment.LEFT);
	window.setTitle(infoProvider.getTitle());
	window.setAutoSize(true);
	window.setCanDragReposition(true);
	window.setCanDragResize(true);
	window.addItem(label);
	window.setTop(25);
	window.setLeft(25);
	map.addChild(window);
}
 
开发者ID:geomajas,项目名称:geomajas-project-client-gwt,代码行数:15,代码来源:InfoDragLineHandlerShowingWindow.java

示例6: showFiles

import com.smartgwt.client.widgets.Window; //导入方法依赖的package包/类
private void showFiles(Map<String, String> fileContents) {
	Window sourceWindow = new Window();
	sourceWindow.setTitle(MESSAGES.generalSourceTitle());
	sourceWindow.setHeaderIcon(WidgetLayout.iconGeomajas, 16, 16);
	sourceWindow.setKeepInParentRect(true);
	sourceWindow.setWidth(640);
	sourceWindow.setHeight(480);
	sourceWindow.setTop(100);
	sourceWindow.setLeft(100);
	sourceWindow.setMembersMargin(5);
	sourceWindow.setCanDragReposition(true);
	sourceWindow.setCanDragResize(true);

	TabSet tabs = new TabSet();
	tabs.setTabBarPosition(Side.TOP);
	tabs.setWidth100();
	tabs.setHeight100();

	addSourceTab(tabs, fileContents.get(getSourceFileName()));

	for (Entry<String, String> entry : fileContents.entrySet()) {
		if (!entry.getKey().equals(getSourceFileName())) {
			VLayout resourceLayout = new VLayout();
			HTMLPane tabPane = new HTMLPane();
			tabPane.setWidth100();
			tabPane.setHeight100();
			tabPane.setContents("<pre style='color:#000000;'>" + XmlParser.parseXML(entry.getValue()) + "</pre>");
			tabPane.setContentsType(ContentsType.PAGE);

			Label resourceLabel = new Label(MESSAGES.generalFile() + ": <b>"
					+ entry.getKey() + "</b>");
			resourceLabel.setHeight(30);
			resourceLabel.setPadding(5);
			resourceLayout.addMember(resourceLabel);

			VLayout paneLayout = new VLayout();
			paneLayout.setBorder("1px solid #C0C0C0");
			paneLayout.addMember(tabPane);

			resourceLayout.addMember(paneLayout);

			String tabTitle = entry.getKey();
			int pos = tabTitle.lastIndexOf('/');
			tabTitle = tabTitle.substring(pos + 1);

			Tab tab = new Tab(tabTitle, "[ISOMORPHIC]/geomajas/example/image/silk/script_go.png");
			tab.setPane(resourceLayout);
			tabs.addTab(tab);
		}
	}

	sourceWindow.addItem(tabs);
	addChild(sourceWindow);
	sourceWindow.show();
}
 
开发者ID:geomajas,项目名称:geomajas-project-client-gwt,代码行数:56,代码来源:SamplePanel.java


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