本文整理了Java中com.vaadin.ui.Panel.getParent()
方法的一些代码示例,展示了Panel.getParent()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Panel.getParent()
方法的具体详情如下:
包路径:com.vaadin.ui.Panel
类名称:Panel
方法名:getParent
暂无
代码示例来源:origin: uk.q3c.krail/krail
/**
* Uses the {@link #screenLayout} defined by sub-class implementations of {@link #screenLayout()}, expands it to
* full size, and sets the View display panel to take up all spare space.
*/
protected void doLayout() {
if (screenLayout == null) {
screenLayout = screenLayout();
}
screenLayout.setSizeFull();
if (viewDisplayPanel == null || viewDisplayPanel.getParent() == null) {
String msg = "Your implementation of ScopedUI.screenLayout() must include getViewDisplayPanel(). AS a "
+ "minimum this could be 'return new VerticalLayout(getViewDisplayPanel())'";
log.error(msg);
throw new ConfigurationException(msg);
}
viewDisplayPanel.setSizeFull();
setContent(screenLayout);
}
代码示例来源:origin: KrailOrg/krail
/**
* Uses the {@link #screenLayout} defined by sub-class implementations of {@link #screenLayout()}, expands it to
* full size, and sets the View display panel to take up all spare space.
*/
protected void doLayout() {
if (screenLayout == null) {
screenLayout = screenLayout();
}
screenLayout.setSizeFull();
if (viewDisplayPanel == null || viewDisplayPanel.getParent() == null) {
String msg = "Your implementation of ScopedUI.screenLayout() must include getViewDisplayPanel(). AS a "
+ "minimum this could be 'return new VerticalLayout(getViewDisplayPanel())'";
log.error(msg);
throw new ConfigurationException(msg);
}
if (viewDisplayPanelSizeFull) {
viewDisplayPanel.setSizeFull();
}
setContent(screenLayout);
}
内容来源于网络,如有侵权,请联系作者删除!