本文整理了Java中com.smartgwt.client.widgets.Window.setIsModal()
方法的一些代码示例,展示了Window.setIsModal()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Window.setIsModal()
方法的具体详情如下:
包路径:com.smartgwt.client.widgets.Window
类名称:Window
方法名:setIsModal
[英]If true, when shown this Window will intercept and block events to all other existing components on the page.
Use com.smartgwt.client.widgets.Window#getShowModalMask to darken all other elements on the screen when a modal dialog is showing.
Chained modal windows - that is, modal windows that launch other modal windows - are allowed. You can accomplish this by simply creating a second modal Window while a modal Window is showing.
Note only top-level Windows (Windows without parents) can be modal.
[中]如果为true,当显示此窗口时,将拦截并阻止页面上所有其他现有组件的事件。
使用com。smartgwt。客户小部件。Window#getShowModalMask可在显示模式对话框时使屏幕上的所有其他元素变暗。
允许使用链式模态窗口,即启动其他模态窗口的模态窗口。只需在模式窗口显示时创建第二个模式窗口,即可实现这一点。
注意:只有顶级窗口(没有父窗口)可以是模态的。
代码示例来源:origin: org.geomajas.widget/geomajas-widget-searchandfilter-gwt
private void showWindow() {
if (window == null) {
window = createWindow();
if (isModalSearch()) {
window.setIsModal(true);
window.setShowModalMask(true);
}
}
window.show();
}
代码示例来源: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.setTitle(MESSAGES.rolesWindowaskRoleWindowTitle());
winModal.setShowMinimizeButton(false);
winModal.setIsModal(true);
winModal.setShowModalMask(true);
winModal.centerInPage();
代码示例来源: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: com.github.livesense/org.liveSense.jcr.explorer
addMixinTypeWindow.setIsModal(true);
addMixinTypeWindow.setShowModalMask(true);
代码示例来源:origin: org.n52.sensorweb/sensorwebclient-ui
this.styleChanger.setWidth(250);
this.styleChanger.setHeight(280);
this.styleChanger.setIsModal(true);
this.styleChanger.centerInPage();
this.styleChanger.setCanDragResize(true);
代码示例来源:origin: com.github.livesense/org.liveSense.jcr.explorer
private Window createPossibleIconsWindow(ListGrid listGrid) {
Window changeNodeTypeWindow = new Window();
changeNodeTypeWindow.setShowMinimizeButton(false);
changeNodeTypeWindow.setIsModal(true);
changeNodeTypeWindow.setShowModalMask(true);
changeNodeTypeWindow.setTitle("Change Node Type Icon");
代码示例来源:origin: org.geomajas.widget/geomajas-widget-searchandfilter-gwt
addWindow.setAutoCenter(true);
addWindow.setShowMinimizeButton(false);
addWindow.setIsModal(true);
addWindow.setKeepInParentRect(true);
代码示例来源:origin: com.github.livesense/org.liveSense.jcr.explorer
public Window addNewNodeBox(JcrExplorer jackrabbitExplorer) {
final Window addNewNodeWindow = new Window();
addNewNodeWindow.setShowMinimizeButton(false);
addNewNodeWindow.setIsModal(true);
addNewNodeWindow.setShowModalMask(true);
代码示例来源:origin: org.n52.sensorweb/sensorwebclient-ui
this.expertsWindow.setIsModal(true);
代码示例来源:origin: com.github.livesense/org.liveSense.jcr.explorer
editPropertyWindow.setIsModal(true);
editPropertyWindow.setShowModalMask(true);
editPropertyWindow.centerInPage();
内容来源于网络,如有侵权,请联系作者删除!