本文整理了Java中org.fujion.component.Window.setSizable()
方法的一些代码示例,展示了Window.setSizable()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Window.setSizable()
方法的具体详情如下:
包路径:org.fujion.component.Window
类名称:Window
方法名:setSizable
[英]Sets the window's sizable property. A window that is sizable has borders that may be dragged to change its dimensions. If the #setMode(Mode) is Mode#INLINE, this property has no effect.
[中]设置窗口的大小属性。较大的窗口有边框,可以通过拖动边框来更改其尺寸。如果#setMode(Mode)是Mode#INLINE,则此属性无效。
代码示例来源:origin: org.carewebframework/org.carewebframework.ui.core
window.setSizable(sizable);
代码示例来源:origin: org.carewebframework/org.carewebframework.shell
/**
* Initializes the property grid.
*
* @param comp The root component.
*/
@Override
public void afterInitialized(BaseComponent comp) {
window = (Window) comp;
changeEvent = new ChangeEvent(window, null);
@SuppressWarnings("rawtypes")
IModelAndView<Row, PropertyEditorBase> mv = gridProperties.getRows().getModelAndView(PropertyEditorBase.class);
mv.setRenderer(rowRenderer);
mv.setModel(model);
comp.setAttribute("controller", this);
this.embedded = comp.getAttribute("embedded", false);
setTarget(comp.getAttribute("target", ElementBase.class));
if (window.getParent() != null) {
window.setClosable(false);
window.setWidth("100%");
window.setHeight("100%");
window.setSizable(false);
window.addClass("cwf-propertygrid-embedded");
toolbar.setVisible(embedded);
}
btnOK.setVisible(!embedded);
btnCancel.setVisible(!embedded);
}
代码示例来源:origin: org.carewebframework/org.carewebframework.help.core
root.setWidth(proxied ? "100%" : lastWidth + "px");
root.setHeight(proxied ? "100%" : lastHeight + "px");
root.setSizable(!proxied);
root.setClosable(!proxied);
root.setMaximizable(!proxied);
内容来源于网络,如有侵权,请联系作者删除!