本文整理了Java中com.smartgwt.client.widgets.Window.centerInPage()
方法的一些代码示例,展示了Window.centerInPage()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Window.centerInPage()
方法的具体详情如下:
包路径:com.smartgwt.client.widgets.Window
类名称:Window
方法名:centerInPage
[英]Centers the Window in the page. This is called automatically in window.show() if Window.autoCenter is true. Note - if the Window is a child of another widget, we center in the parent widget rather than centering in the page.
[中]使窗口在页面中居中。这是在窗口中自动调用的。显示()if窗口。autoCenter是真的。注意——如果窗口是另一个小部件的子部件,我们将以父部件为中心,而不是以页面为中心。
代码示例来源:origin: org.n52.sensorweb/sensorwebclient-ui
public void onClick(ClickEvent event) {
DataControlsTimeSeries.this.expertsWindow.centerInPage();
DataControlsTimeSeries.this.expertsWindow.show();
}
});
代码示例来源:origin: org.geomajas.plugin/geomajas-plugin-print-gwt
@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();
}
代码示例来源:origin: org.geomajas.plugin/geomajas-plugin-printing-gwt
/** {@inheritDoc} */
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();
}
代码示例来源:origin: org.n52.sensorweb/sensorwebclient-ui
private void createInformationWindow() {
informationWindow = new Window();
informationWindow.setTitle(LegendEntryTimeSeries.this.getTimeSeries().getTimeSeriesLabel());
informationWindow.setWidth(450);
informationWindow.setHeight(500);
informationWindow.setShowMinimizeButton(false);
informationWindow.centerInPage();
HTMLPane htmlPane = new HTMLPane();
htmlPane.setContentsURL(LegendEntryTimeSeries.this
.getTimeSeries().getMetadataUrl());
htmlPane.setContentsType(ContentsType.PAGE);
informationWindow.addItem(htmlPane);
}
代码示例来源:origin: org.n52.sensorweb/sensorwebclient-ui
public void onClick(ClickEvent event) {
com.smartgwt.client.widgets.Window w = new com.smartgwt.client.widgets.Window();
w.setTitle(i18n.Impressum());
w.setWidth(450);
w.setHeight(460);
w.centerInPage();
w.setIsModal(true);
VLayout layout = new VLayout();
HTMLPane pane = new HTMLPane();
pane.setContentsURL(i18n.imprintPath());
layout.setStyleName("n52_sensorweb_client_imprint_content");
layout.addMember(pane);
w.addItem(layout);
w.show();
}
});
代码示例来源:origin: org.geomajas/geomajas-project-deskmanager-gwt
/**
* Show the window.
*/
public void show() {
final Window winModal = new Window();
winModal.setWidth(500);
winModal.setHeight(300);
winModal.setTitle(MESSAGES.rolesWindowUnauthorizedWindowTitle());
winModal.setShowMinimizeButton(false);
winModal.setIsModal(true);
winModal.setShowModalMask(true);
winModal.centerInPage();
winModal.setShowCloseButton(false);
winModal.setZIndex(GdmLayout.roleSelectZindex);
HTMLPane pane = new HTMLPane();
pane.setContents("<br/><br/><center>" + MESSAGES.rolesWindowInsufficientRightsForDesk() + "</center>");
winModal.addItem(pane);
winModal.show();
}
}
代码示例来源:origin: org.geomajas/geomajas-project-deskmanager-gwt
winModal.setIsModal(true);
winModal.setShowModalMask(true);
winModal.centerInPage();
winModal.setShowCloseButton(false);
winModal.setZIndex(2000);
代码示例来源:origin: org.geomajas/geomajas-project-deskmanager-gwt
private void createWindow() {
window = new Window();
window.setWidth(500);
window.setHeight(300);
window.setShowMinimizeButton(false);
window.setIsModal(true);
window.setShowModalMask(true);
window.centerInPage();
window.setShowCloseButton(true);
window.setZIndex(2000);
VLayout layout = new VLayout();
layout.setLayoutMargin(25);
layout.setMembersMargin(10);
fileUploadForm = new GenericUploadForm();
button = new IButton();
layout.setLayoutMargin(25);
layout.addMember(fileUploadForm);
layout.addMember(button);
window.addItem(layout);
}
代码示例来源:origin: org.n52.sensorweb/sensorwebclient-ui
this.styleChanger.setHeight(280);
this.styleChanger.setIsModal(true);
this.styleChanger.centerInPage();
this.styleChanger.setCanDragResize(true);
this.styleChanger.setShowCloseButton(true);
代码示例来源:origin: org.geomajas.widget/geomajas-widget-searchandfilter-gwt
lay.setAutoHeight();
window.addItem(lay);
window.centerInPage();
window.setAutoSize(true);
window.show();
代码示例来源:origin: org.n52.sensorweb/sensorwebclient-ui
window.setCanDragReposition(true);
window.setCanDragResize(true);
window.centerInPage();
代码示例来源:origin: org.n52.sensorweb/sensorwebclient-ui
window.setCanDragReposition(true);
window.setCanDragResize(true);
window.centerInPage();
EditUserWindow.window = window;
代码示例来源:origin: com.github.livesense/org.liveSense.jcr.explorer
editPropertyWindow.setIsModal(true);
editPropertyWindow.setShowModalMask(true);
editPropertyWindow.centerInPage();
if (isNew)
editPropertyWindow.setTitle("Add New Property");
内容来源于网络,如有侵权,请联系作者删除!