本文整理了Java中com.vaadin.ui.Panel.setSizeFull()
方法的一些代码示例,展示了Panel.setSizeFull()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Panel.setSizeFull()
方法的具体详情如下:
包路径:com.vaadin.ui.Panel
类名称:Panel
方法名:setSizeFull
暂无
代码示例来源:origin: org.ikasan/ikasan-dashboard-jar
protected void init()
{
this.tabsheetPanel = new Panel();
this.tabsheetPanel.addStyleName(ValoTheme.PANEL_BORDERLESS);
this.tabsheetPanel.setSizeFull();
super.setSizeFull();
}
代码示例来源:origin: OpenNMS/opennms
private void initContentPanel() {
contentPanel = new Panel();
contentPanel.setSizeFull();
}
代码示例来源:origin: org.opennms.features/vaadin-jmxconfiggenerator
private void initContentPanel() {
contentPanel = new Panel();
contentPanel.setSizeFull();
}
代码示例来源:origin: eclipse/hawkbit
private Panel buildContent() {
final Panel content = new Panel();
content.setSizeFull();
content.setStyleName("view-content");
return content;
}
代码示例来源:origin: org.eclipse.hawkbit/hawkbit-ui
private Panel buildContent() {
final Panel content = new Panel();
content.setSizeFull();
content.setStyleName("view-content");
return content;
}
代码示例来源:origin: uk.q3c.krail/krail
@Override
public void doBuild(ViewChangeBusMessage busMessage) {
Panel p = new Panel("Logged out");
p.setSizeFull();
getLayout().addComponent(p);
}
代码示例来源:origin: OpenNMS/opennms
private Panel createPanel(Component content, String caption) {
Panel panel = new Panel();
panel.setSizeFull();
panel.setCaption(caption);
panel.setContent(content);
panel.addStyleName("novscroll");
return panel;
}
}
代码示例来源:origin: KrailOrg/krail
@Override
public void doBuild() {
super.doBuild();
Panel p = new Panel("Logged out");
p.setSizeFull();
getLayout().addComponent(p);
}
代码示例来源: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: org.opennms.features/jmxconfiggenerator.webui
private void initContentPanel() {
contentPanel = new Panel();
contentPanel.setContent(new VerticalLayout());
contentPanel.getContent().setSizeFull();
contentPanel.setSizeFull();
}
代码示例来源:origin: uk.q3c.krail/krail
/**
* used wqhen nav tree not required, and split panel also therefore not required
*/
protected void nonSplitPanel() {
if (nonSplitPanel == null) {
nonSplitPanel = new Panel();
nonSplitPanel.setSizeFull();
}
if (!option.get(optionNavTreeVisible)) {
nonSplitPanel.setContent(mainArea);
nonSplitPanel.setVisible(true);
} else {
nonSplitPanel.setVisible(false);
}
}
代码示例来源:origin: KrailOrg/krail
/**
* used wqhen nav tree not required, and split panel also therefore not required
*/
protected void nonSplitPanel() {
if (nonSplitPanel == null) {
nonSplitPanel = new Panel();
nonSplitPanel.setSizeFull();
}
if (!option.get(optionNavTreeVisible)) {
nonSplitPanel.setContent(mainArea);
nonSplitPanel.setVisible(true);
} else {
nonSplitPanel.setVisible(false);
}
}
代码示例来源:origin: de.mhus.lib/mhu-lib-vaadin
public AbstractSectionsPanel() {
selector = new SectionsSelector();
this.addComponent(selector);
content = new Panel();
this.addComponent(content);
content.setSizeFull();
setExpandRatio(content, 1.0f);
selector.eventHandler().register(this);
}
代码示例来源:origin: de.mhus.lib/mhu-lib-vaadin6
public AbstractSectionsPanel() {
selector = new SectionsSelector();
this.addComponent(selector);
content = new Panel();
this.addComponent(content);
content.setSizeFull();
setExpandRatio(content, 1.0f);
selector.eventHandler().register(this);
}
代码示例来源:origin: org.activiti/activiti-explorer
protected void initInformationPanel() {
Panel infoPanel = new Panel();
infoPanel.addStyleName(Reindeer.PANEL_LIGHT);
infoPanel.setSizeFull();
profilePanelLayout.addComponent(infoPanel);
profilePanelLayout.setExpandRatio(infoPanel, 1.0f); // info panel should take all the remaining width available
// All the information sections are put under each other in a vertical layout
this.infoPanelLayout = new VerticalLayout();
infoPanel.setContent(infoPanelLayout);
initAboutSection();
initContactSection();
}
代码示例来源:origin: peholmst/vaadin4spring
@Override
public void createSection(Accordion compositionRoot, SideBarSectionDescriptor descriptor, Collection<SideBarItemDescriptor> itemDescriptors) {
final Panel panel = new Panel();
panel.addStyleName(SIDE_BAR_SECTION_STYLE);
panel.setSizeFull();
final VerticalLayout layout = new VerticalLayout();
panel.setContent(layout);
for (SideBarItemDescriptor item : itemDescriptors) {
layout.addComponent(itemComponentFactory.createItemComponent(item));
}
compositionRoot.addTab(panel, descriptor.getCaption());
}
}
代码示例来源:origin: org.opennms.features/jmxconfiggenerator.webui
private Panel wrapToPanel(Component component) {
Panel panel = new Panel(component.getCaption());
panel.setSizeFull();
VerticalLayout layout = new VerticalLayout();
layout.setMargin(false);
layout.setSpacing(false);
layout.setSizeFull();
layout.addComponent(component);
panel.setContent(layout);
component.setCaption(null);
return panel;
}
代码示例来源:origin: kingbbode/spring-boot-ehcache-monitor
private void init(CacheManager cacheManager) {
VerticalLayout content = new VerticalLayout();
content.addComponent(createTitleBar());
content.addComponent(createCacheGrid(cacheManager));
Panel panel = new Panel();
panel.setSizeFull();
panel.setContent(createCacheCharts(cacheManager));
content.addComponent(panel);
setCompositionRoot(content);
}
代码示例来源:origin: vaadin/spring-tutorial
@Override
protected void init(VaadinRequest request) {
final VerticalLayout root = new VerticalLayout();
root.setSizeFull();
setContent(root);
final CssLayout navigationBar = new CssLayout();
navigationBar.addStyleName(ValoTheme.LAYOUT_COMPONENT_GROUP);
navigationBar.addComponent(createNavigationButton("UI Scoped View",
UIScopedView.VIEW_NAME));
navigationBar.addComponent(createNavigationButton("View Scoped View",
ViewScopedView.VIEW_NAME));
root.addComponent(navigationBar);
springViewDisplay = new Panel();
springViewDisplay.setSizeFull();
root.addComponent(springViewDisplay);
root.setExpandRatio(springViewDisplay, 1.0f);
}
代码示例来源:origin: org.activiti/activiti-explorer
public DetailPanel() {
setSizeFull();
addStyleName(ExplorerLayout.STYLE_DETAIL_PANEL);
setMargin(true);
CssLayout cssLayout = new CssLayout(); // Needed for rounded corners
cssLayout.addStyleName(ExplorerLayout.STYLE_DETAIL_PANEL);
cssLayout.setSizeFull();
super.addComponent(cssLayout);
mainPanel = new Panel();
mainPanel.addStyleName(Reindeer.PANEL_LIGHT);
mainPanel.setSizeFull();
cssLayout.addComponent(mainPanel);
// Use default layout
VerticalLayout verticalLayout = new VerticalLayout();
verticalLayout.setWidth(100, UNITS_PERCENTAGE);
verticalLayout.setMargin(true);
mainPanel.setContent(verticalLayout);
}
内容来源于网络,如有侵权,请联系作者删除!