本文整理了Java中com.smartgwt.client.widgets.Window.setShowMaximizeButton()
方法的一些代码示例,展示了Window.setShowMaximizeButton()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Window.setShowMaximizeButton()
方法的具体详情如下:
包路径:com.smartgwt.client.widgets.Window
类名称:Window
方法名:setShowMaximizeButton
[英]If true, show a maximize button in the header - clicking it maximizes the Window Dynamically update com.smartgwt.client.widgets.Window#getShowMaximizeButton to show / hide the maximizeButton
[中]如果为true,则在标题中显示一个最大化按钮-单击该按钮可使窗口最大化并动态更新com。smartgwt。客户小部件。窗口#getShowMaximizeButton可显示/隐藏maximizeButton
代码示例来源:origin: org.n52.sensorweb/sensorwebclient-ui
private void getToasterWindow() {
if (this.toasterWindow == null) {
this.toasterWindow = new Window();
this.layout = new VLayout();
this.layout.setTabIndex( -1);
this.toasterWindow.setParentElement(this.parentElem);
this.toasterWindow.setAnimateFadeTime(fadeout);
this.toasterWindow.setHeight(this.height);
this.toasterWindow.setWidth(this.width);
this.toasterWindow.setTitle(this.title);
this.toasterWindow.setAutoSize(new Boolean(false));
this.toasterWindow.setOverflow(Overflow.AUTO);
this.left = this.toasterWindow.getParentElement().getWidth().intValue() - this.width - 10;
this.top = this.toasterWindow.getParentElement().getHeight().intValue() - this.height - 30;
this.toasterWindow.setLeft(this.left);
this.toasterWindow.setTop(this.top);
this.toasterWindow.setCanDragResize(true);
this.toasterWindow.setShowMaximizeButton(true);
this.toasterWindow.setID(this.id);
this.toasterWindow.addItem(this.layout);
this.toasterWindow.addCloseClickHandler(new CloseClickHandler() {
public void onCloseClick(CloseClickEvent event) {
hide();
}
});
}
}
代码示例来源:origin: com.github.livesense/org.liveSense.jcr.explorer
private Window createRemoteWindow(String title, String url) {
Window remoteWindow = new Window();
HTMLPane htmlPane = new HTMLPane();
htmlPane.setContentsURL(url);
htmlPane.setContentsType(ContentsType.PAGE);
remoteWindow.addItem(htmlPane);
remoteWindow.setTitle(title);
remoteWindow.setShowMaximizeButton(true);
remoteWindow.setCanDragReposition(true);
remoteWindow.setCanDragResize(true);
remoteWindow.setHeight("40%");
remoteWindow.setWidth("40%");
remoteWindow.setAutoCenter(true);
remoteWindow.setShowResizeBar(true);
remoteWindow.setDefaultResizeBars(LayoutResizeBarPolicy.MARKED);
remoteWindow.show();
return remoteWindow;
}
代码示例来源:origin: com.github.livesense/org.liveSense.jcr.explorer
private Window createBinaryImgWindow(String title, String path, String mimeType) {
Window binaryWindow = new Window();
Img img = new Img(BINARY_SERVLET_PATH + path);
img.setImageType(ImageStyle.STRETCH);
img.setHeight100();
img.setWidth100();
binaryWindow.addItem(img);
binaryWindow.setTitle(title);
binaryWindow.setShowMaximizeButton(true);
binaryWindow.setCanDragReposition(true);
binaryWindow.setCanDragResize(true);
binaryWindow.setHeight("40%");
binaryWindow.setWidth("40%");
binaryWindow.setAutoCenter(true);
binaryWindow.setShowResizeBar(true);
//binaryWindow.setDefaultResizeBars(LayoutResizeBarPolicy.MARKED);
binaryWindow.show();
return binaryWindow;
}
内容来源于网络,如有侵权,请联系作者删除!