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

Java Window类代码示例

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

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



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

import com.smartgwt.client.widgets.Window; //导入依赖的package包/类
private void build() {

        buildCatalogUrl();

        initRootPage(); // ------------ root page of the window
        initSelectWfPart(); // -------- Select workflow Panel
        initVarsPart(); // ------------ Fill workflow variables Panel
        initSubmitAtPart(); // -------- Submit at given time Panel
        initMessagesPart(); // --------- loading and error messages
        initButtonsPart(); // --------- Close and Submit buttons

        setEnabledStartAtPart(false);

        this.window = new Window();
        this.window.setTitle("Submit a new job");
        this.window.setShowMinimizeButton(false);
        this.window.setIsModal(true);
        this.window.setShowModalMask(true);
        this.window.addItem(rootPage);
        this.window.setWidth(this.width);
        this.window.setHeight(this.height);
        this.window.centerInPage();
        this.window.setCanDragResize(true);
    }
 
开发者ID:ow2-proactive,项目名称:scheduling-portal,代码行数:25,代码来源:SubmitWindow.java


示例3: createWindow

import com.smartgwt.client.widgets.Window; //导入依赖的package包/类
private Window createWindow(DynamicForm form) {
    VLayout container = new VLayout();
    container.setMembers(form, createButtons());
    container.setMargin(15);
    Window window = new Window();
    window.setAutoCenter(true);
    window.setAutoSize(true);
    window.setIsModal(true);
    window.addItem(container);
    window.setTitle(i18nSgwt.dialog_LoginTitle());
    window.setShowCloseButton(false);
    window.setShowMinimizeButton(false);
    window.setKeepInParentRect(true);
    window.setShowModalMask(true);
    window.setCanDragReposition(false);
    return window;
}
 
开发者ID:proarc,项目名称:proarc,代码行数:18,代码来源:LoginWindow.java


示例4: buildWidget

import com.smartgwt.client.widgets.Window; //导入依赖的package包/类
private void buildWidget() {
	setAutoSize(true);
	setTitle(MESSAGES.nearbyFeaturesWindowTitle());
	setCanDragReposition(true);
	setCanDragResize(true);
	setWidth("250px");
	setMinWidth(250);
	setKeepInParentRect(true);

	featuresList = new MultiLayerFeaturesList(mapWidget, new FeatureClickHandler() {

		public void onClick(Feature feature, Layer layer) {
			Window window = FeatureDetailWidgetFactory.createFeatureDetailWindow(feature, layer, false);
			window.setPageTop(mapWidget.getAbsoluteTop() + 25);
			window.setPageLeft(mapWidget.getAbsoluteLeft() + 25);
			window.setKeepInParentRect(true);
			window.draw();
		}

	});
	addItem(featuresList);
}
 
开发者ID:geomajas,项目名称:geomajas-project-client-gwt,代码行数:23,代码来源:MultiLayerFeatureInfoWindow.java


示例5: openRemoteVisuServlet

import com.smartgwt.client.widgets.Window; //导入依赖的package包/类
private void openRemoteVisuServlet(RemoteHint hint) {
    String url = GWT.getModuleBaseURL() + "visu?";
    url += "&codebase=" + GWT.getHostPageBaseURL();
    url += "&apptype=" + hint.type;
    url += "&argument=" + hint.argument;
    com.google.gwt.user.client.Window.open(url, "_blank", "");
}
 
开发者ID:ow2-proactive,项目名称:scheduling-portal,代码行数:8,代码来源:TasksListGrid.java


示例6: openResult

import com.smartgwt.client.widgets.Window; //导入依赖的package包/类
private void openResult(String pid, String token) {
    if (pid == null) {
        throw new IllegalArgumentException("pid");
    }
    StringBuilder sb = new StringBuilder();
    sb.append(RestConfig.URL_EXPORT_DESA);
    sb.append('?').append(ExportResourceApi.DESA_PID_PARAM).append('=').append(pid);
    sb.append('&').append(ExportResourceApi.RESULT_TOKEN).append('=').append(token);
    com.google.gwt.user.client.Window.open(sb.toString(), "_blanc", "");
}
 
开发者ID:proarc,项目名称:proarc,代码行数:11,代码来源:DesaExportAction.java


示例7: showWindow

import com.smartgwt.client.widgets.Window; //导入依赖的package包/类
public void showWindow(DigitalObject dobj, BooleanCallback callback) {
    this.dobj = dobj;
    this.windowCallback = callback;
    form.setAutoHeight();

    window = new Window();
    window.setAutoSize(true);
    window.setAutoCenter(true);
    window.setIsModal(true);
    window.setTitle(i18n.DigitalObjectEditor_MediaEditor_Uploader_Title());
    window.setShowMinimizeButton(false);
    window.setShowModalMask(true);
    window.addCloseClickHandler(new CloseClickHandler() {

        @Override
        public void onCloseClick(CloseClickEvent event) {
            closeWindow();
        }
    });

    VLayout winContent = new VLayout(4);
    winContent.setWidth(400);
    winContent.setPadding(5);
    winContent.addMember(createBrowseCanvas());
    winContent.addMember(form);
    winContent.addMember(createProgressBar());
    winContent.addMember(createButtons());
    window.addItem(winContent);

    window.show();
}
 
开发者ID:proarc,项目名称:proarc,代码行数:32,代码来源:UploadFile.java


示例8: 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


示例9: showAlert

import com.smartgwt.client.widgets.Window; //导入依赖的package包/类
public static void showAlert() {
    Window w = new Window();
    w.setWidth(525);
    w.setHeight(275);
    w.setIsModal(true);
    w.setShowModalMask(true);
    w.setAutoCenter(true);
    w.show();
    HTMLPane pane = new HTMLPane();
    pane.setContents(matrixCollectionDisplay.getRichText());
    w.addItem(pane);
    w.setTitle(matrixCollectionDisplay.getTitle());
}
 
开发者ID:WELTEN,项目名称:dojo-ibl,代码行数:14,代码来源:MatrixCollectionCRSDisplay.java


示例10: showAlert

import com.smartgwt.client.widgets.Window; //导入依赖的package包/类
public static void showAlert() {
    Window w = new Window();
    w.setWidth(525);
    w.setHeight(275);
    w.setIsModal(true);
    w.setShowModalMask(true);
    w.setAutoCenter(true);
    w.show();
    HTMLPane pane = new HTMLPane();
    pane.setContents(objectCollectionDisplay.getRichText());
    w.addItem(pane);
    w.setTitle(objectCollectionDisplay.getTitle());
}
 
开发者ID:WELTEN,项目名称:dojo-ibl,代码行数:14,代码来源:ObjectCollectionCRSDisplay.java


示例11: addContact

import com.smartgwt.client.widgets.Window; //导入依赖的package包/类
public void addContact(final String addContactToken) {
	CollaborationClient.getInstance().confirmAddContact(addContactToken, new JsonCallback(){
		public void onJsonReceived(JSONValue jsonValue) {
			com.google.gwt.user.client.Window.open("/index.html", "_self", "");
		}
	});
}
 
开发者ID:WELTEN,项目名称:dojo-ibl,代码行数:8,代码来源:AddContactPage.java


示例12: SessionTimeout

import com.smartgwt.client.widgets.Window; //导入依赖的package包/类
public SessionTimeout() {
	setWidth(200);
	setHeight(150);
	setTitle(constants.timeOut());
	setIsModal(true);
	setShowModalMask(true);
	centerInPage();
	
	Label l = new Label(constants.sessionTimeout());
	l.setHeight(50);
	
	final IButton submitButton = new IButton(constants.reload());
	submitButton.addClickHandler(new ClickHandler() {
		public void onClick(ClickEvent event) {
			com.google.gwt.user.client.Window.Location.reload();
			SessionTimeout.this.destroy();
		}
	});
	
	HLayout buttonLayout = new HLayout();
	buttonLayout.setAlign(Alignment.CENTER);
	buttonLayout.setLayoutMargin(6);
	buttonLayout.setMembersMargin(6);
	buttonLayout.addMember(submitButton);
	buttonLayout.setHeight(50);
	
	addItem(l);
	addItem(buttonLayout);
}
 
开发者ID:WELTEN,项目名称:dojo-ibl,代码行数:30,代码来源:SessionTimeout.java


示例13: createWindow

import com.smartgwt.client.widgets.Window; //导入依赖的package包/类
private Window createWindow() {
	VLayout layout = new VLayout(5);
	layout.setLayoutAlign(Alignment.CENTER);
	layout.setAlign(Alignment.CENTER);
	layout.setWidth100();
	Label label = new Label(messages.searchControllerSearchingMessage());
	label.setWidth100();
	label.setHeight(30);
	label.setAlign(Alignment.CENTER);
	layout.addMember(label);

	HTMLPane img = new HTMLPane();
	img.setLayoutAlign(Alignment.CENTER);
	img.setAlign(Alignment.CENTER);
	img.setWidth(20);
	img.setHeight(20);
	img.setOverflow(Overflow.HIDDEN);
	img.setContents("<img src=\"" + Geomajas.getIsomorphicDir()
			+ "/geomajas/ajax-loader.gif\" width=\"18\" height=\"18\" />");
	layout.addMember(img);
	Window w = new DockableWindow();
	w.setTitle(messages.searchControllerSearchingTitle());
	w.setAlign(Alignment.CENTER);
	w.setPadding(5);
	w.setHeight(100);
	w.setWidth(300);
	w.addItem(layout);
	w.setShowMinimizeButton(false);
	w.setShowCloseButton(false);
	w.setKeepInParentRect(true);
	w.setAutoCenter(true);
	return w;
}
 
开发者ID:geomajas,项目名称:geomajas-project-client-gwt,代码行数:34,代码来源:SearchController.java


示例14: onClick

import com.smartgwt.client.widgets.Window; //导入依赖的package包/类
@Override
public void onClick(ClickEvent event) {
	PrintPreferencesCanvas canvas = new PrintPreferencesCanvas(mapWidget);
	canvas.setMargin(WidgetLayout.marginSmall);
	Window window = new KeepInScreenWindow();
	window.setTitle(MESSAGES.printPrefsTitle());
	window.addItem(canvas);
	window.centerInPage();
	window.setAutoSize(true);
	window.show();
}
 
开发者ID:geomajas,项目名称:geomajas-project-client-gwt,代码行数:12,代码来源:PrintingAction.java


示例15: 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


示例16: createFeatureDetailWindow

import com.smartgwt.client.widgets.Window; //导入依赖的package包/类
public static Window createFeatureDetailWindow(Feature feature, Layer<?> layer, boolean editingAllowed) {
	FeatureDetailWidgetBuilder customBuilder = getCustomBuilder(layer);
	if (customBuilder != null) {
		Window w = customBuilder.createFeatureDetailWindow(feature, editingAllowed);
		if (!(w instanceof DockableWindow)) {
			DockableWindow.mixin(w);
		}
		return w;
	} else {
		return createDefaultFeatureDetailWindow(feature, layer, editingAllowed);
	}
}
 
开发者ID:geomajas,项目名称:geomajas-project-client-gwt,代码行数:13,代码来源:FeatureDetailWidgetFactory.java


示例17: createDefaultFeatureDetailWindow

import com.smartgwt.client.widgets.Window; //导入依赖的package包/类
/**
 * Overrule configuration and create Geomajas default FeatureAttributeWindow.
 * 
 * @param feature
 * @param editingAllowed
 * @return
 */
public static Window createDefaultFeatureDetailWindow(Feature feature, Layer<?> layer, boolean editingAllowed) {
	if (layer instanceof VectorLayer) {
		FeatureAttributeWindow w = new FeatureAttributeWindow(feature, editingAllowed);
		customize(w, feature);
		return w;
	} else {
		return new RasterLayerAttributeWindow(feature);
	}
}
 
开发者ID:geomajas,项目名称:geomajas-project-client-gwt,代码行数:17,代码来源:FeatureDetailWidgetFactory.java


示例18: 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


示例19: 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


示例20: keepWindowInScreen

import com.smartgwt.client.widgets.Window; //导入依赖的package包/类
/**
 * Try to force a window to stay within the screen bounds.
 *
 * @param window window to affect
 */
public static void keepWindowInScreen(Window window) {
	window.setKeepInParentRect(true);
	if (null != window.getHeightAsString()) {
		int screenHeight = com.google.gwt.user.client.Window.getClientHeight();
		int windowHeight = window.getViewportHeight();
		window.setMaxHeight(screenHeight - WidgetLayout.windowOffset * 2);
		if (windowHeight + window.getAbsoluteTop() > screenHeight) {
			int top = screenHeight - windowHeight;
			if (top >= 0) {
				window.setPageTop(top);
			} else {
				window.setHeight(screenHeight - WidgetLayout.windowOffset);
				window.setPageTop(WidgetLayout.windowOffset);
			}
		}
	}
	if (null != window.getWidthAsString()) {
		int screenWidth = com.google.gwt.user.client.Window.getClientWidth();
		int windowWidth = window.getViewportWidth();
		window.setMaxWidth(screenWidth - WidgetLayout.windowOffset * 2);
		if (windowWidth + window.getAbsoluteLeft() > screenWidth) {
			int left = screenWidth - windowWidth;
			if (left >= 0) {
				window.setPageLeft(left);
			} else {
				window.setWidth(screenWidth - WidgetLayout.windowOffset);
				window.setPageLeft(WidgetLayout.windowOffset);
			}
		}
	}
}
 
开发者ID:geomajas,项目名称:geomajas-project-client-gwt,代码行数:37,代码来源:WidgetLayout.java



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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