com.vaadin.ui.Panel.setSizeFull()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(6.8k)|赞(0)|评价(0)|浏览(205)

本文整理了Java中com.vaadin.ui.Panel.setSizeFull()方法的一些代码示例,展示了Panel.setSizeFull()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Panel.setSizeFull()方法的具体详情如下:
包路径:com.vaadin.ui.Panel
类名称:Panel
方法名:setSizeFull

Panel.setSizeFull介绍

暂无

代码示例

代码示例来源:origin: org.ikasan/ikasan-dashboard-jar

  1. protected void init()
  2. {
  3. this.tabsheetPanel = new Panel();
  4. this.tabsheetPanel.addStyleName(ValoTheme.PANEL_BORDERLESS);
  5. this.tabsheetPanel.setSizeFull();
  6. super.setSizeFull();
  7. }

代码示例来源:origin: OpenNMS/opennms

  1. private void initContentPanel() {
  2. contentPanel = new Panel();
  3. contentPanel.setSizeFull();
  4. }

代码示例来源:origin: org.opennms.features/vaadin-jmxconfiggenerator

  1. private void initContentPanel() {
  2. contentPanel = new Panel();
  3. contentPanel.setSizeFull();
  4. }

代码示例来源:origin: eclipse/hawkbit

  1. private Panel buildContent() {
  2. final Panel content = new Panel();
  3. content.setSizeFull();
  4. content.setStyleName("view-content");
  5. return content;
  6. }

代码示例来源:origin: org.eclipse.hawkbit/hawkbit-ui

  1. private Panel buildContent() {
  2. final Panel content = new Panel();
  3. content.setSizeFull();
  4. content.setStyleName("view-content");
  5. return content;
  6. }

代码示例来源:origin: uk.q3c.krail/krail

  1. @Override
  2. public void doBuild(ViewChangeBusMessage busMessage) {
  3. Panel p = new Panel("Logged out");
  4. p.setSizeFull();
  5. getLayout().addComponent(p);
  6. }

代码示例来源:origin: OpenNMS/opennms

  1. private Panel createPanel(Component content, String caption) {
  2. Panel panel = new Panel();
  3. panel.setSizeFull();
  4. panel.setCaption(caption);
  5. panel.setContent(content);
  6. panel.addStyleName("novscroll");
  7. return panel;
  8. }
  9. }

代码示例来源:origin: KrailOrg/krail

  1. @Override
  2. public void doBuild() {
  3. super.doBuild();
  4. Panel p = new Panel("Logged out");
  5. p.setSizeFull();
  6. getLayout().addComponent(p);
  7. }

代码示例来源:origin: uk.q3c.krail/krail

  1. /**
  2. * Uses the {@link #screenLayout} defined by sub-class implementations of {@link #screenLayout()}, expands it to
  3. * full size, and sets the View display panel to take up all spare space.
  4. */
  5. protected void doLayout() {
  6. if (screenLayout == null) {
  7. screenLayout = screenLayout();
  8. }
  9. screenLayout.setSizeFull();
  10. if (viewDisplayPanel == null || viewDisplayPanel.getParent() == null) {
  11. String msg = "Your implementation of ScopedUI.screenLayout() must include getViewDisplayPanel(). AS a "
  12. + "minimum this could be 'return new VerticalLayout(getViewDisplayPanel())'";
  13. log.error(msg);
  14. throw new ConfigurationException(msg);
  15. }
  16. viewDisplayPanel.setSizeFull();
  17. setContent(screenLayout);
  18. }

代码示例来源:origin: org.opennms.features/jmxconfiggenerator.webui

  1. private void initContentPanel() {
  2. contentPanel = new Panel();
  3. contentPanel.setContent(new VerticalLayout());
  4. contentPanel.getContent().setSizeFull();
  5. contentPanel.setSizeFull();
  6. }

代码示例来源:origin: uk.q3c.krail/krail

  1. /**
  2. * used wqhen nav tree not required, and split panel also therefore not required
  3. */
  4. protected void nonSplitPanel() {
  5. if (nonSplitPanel == null) {
  6. nonSplitPanel = new Panel();
  7. nonSplitPanel.setSizeFull();
  8. }
  9. if (!option.get(optionNavTreeVisible)) {
  10. nonSplitPanel.setContent(mainArea);
  11. nonSplitPanel.setVisible(true);
  12. } else {
  13. nonSplitPanel.setVisible(false);
  14. }
  15. }

代码示例来源:origin: KrailOrg/krail

  1. /**
  2. * used wqhen nav tree not required, and split panel also therefore not required
  3. */
  4. protected void nonSplitPanel() {
  5. if (nonSplitPanel == null) {
  6. nonSplitPanel = new Panel();
  7. nonSplitPanel.setSizeFull();
  8. }
  9. if (!option.get(optionNavTreeVisible)) {
  10. nonSplitPanel.setContent(mainArea);
  11. nonSplitPanel.setVisible(true);
  12. } else {
  13. nonSplitPanel.setVisible(false);
  14. }
  15. }

代码示例来源:origin: de.mhus.lib/mhu-lib-vaadin

  1. public AbstractSectionsPanel() {
  2. selector = new SectionsSelector();
  3. this.addComponent(selector);
  4. content = new Panel();
  5. this.addComponent(content);
  6. content.setSizeFull();
  7. setExpandRatio(content, 1.0f);
  8. selector.eventHandler().register(this);
  9. }

代码示例来源:origin: de.mhus.lib/mhu-lib-vaadin6

  1. public AbstractSectionsPanel() {
  2. selector = new SectionsSelector();
  3. this.addComponent(selector);
  4. content = new Panel();
  5. this.addComponent(content);
  6. content.setSizeFull();
  7. setExpandRatio(content, 1.0f);
  8. selector.eventHandler().register(this);
  9. }

代码示例来源:origin: org.activiti/activiti-explorer

  1. protected void initInformationPanel() {
  2. Panel infoPanel = new Panel();
  3. infoPanel.addStyleName(Reindeer.PANEL_LIGHT);
  4. infoPanel.setSizeFull();
  5. profilePanelLayout.addComponent(infoPanel);
  6. profilePanelLayout.setExpandRatio(infoPanel, 1.0f); // info panel should take all the remaining width available
  7. // All the information sections are put under each other in a vertical layout
  8. this.infoPanelLayout = new VerticalLayout();
  9. infoPanel.setContent(infoPanelLayout);
  10. initAboutSection();
  11. initContactSection();
  12. }

代码示例来源:origin: peholmst/vaadin4spring

  1. @Override
  2. public void createSection(Accordion compositionRoot, SideBarSectionDescriptor descriptor, Collection<SideBarItemDescriptor> itemDescriptors) {
  3. final Panel panel = new Panel();
  4. panel.addStyleName(SIDE_BAR_SECTION_STYLE);
  5. panel.setSizeFull();
  6. final VerticalLayout layout = new VerticalLayout();
  7. panel.setContent(layout);
  8. for (SideBarItemDescriptor item : itemDescriptors) {
  9. layout.addComponent(itemComponentFactory.createItemComponent(item));
  10. }
  11. compositionRoot.addTab(panel, descriptor.getCaption());
  12. }
  13. }

代码示例来源:origin: org.opennms.features/jmxconfiggenerator.webui

  1. private Panel wrapToPanel(Component component) {
  2. Panel panel = new Panel(component.getCaption());
  3. panel.setSizeFull();
  4. VerticalLayout layout = new VerticalLayout();
  5. layout.setMargin(false);
  6. layout.setSpacing(false);
  7. layout.setSizeFull();
  8. layout.addComponent(component);
  9. panel.setContent(layout);
  10. component.setCaption(null);
  11. return panel;
  12. }

代码示例来源:origin: kingbbode/spring-boot-ehcache-monitor

  1. private void init(CacheManager cacheManager) {
  2. VerticalLayout content = new VerticalLayout();
  3. content.addComponent(createTitleBar());
  4. content.addComponent(createCacheGrid(cacheManager));
  5. Panel panel = new Panel();
  6. panel.setSizeFull();
  7. panel.setContent(createCacheCharts(cacheManager));
  8. content.addComponent(panel);
  9. setCompositionRoot(content);
  10. }

代码示例来源:origin: vaadin/spring-tutorial

  1. @Override
  2. protected void init(VaadinRequest request) {
  3. final VerticalLayout root = new VerticalLayout();
  4. root.setSizeFull();
  5. setContent(root);
  6. final CssLayout navigationBar = new CssLayout();
  7. navigationBar.addStyleName(ValoTheme.LAYOUT_COMPONENT_GROUP);
  8. navigationBar.addComponent(createNavigationButton("UI Scoped View",
  9. UIScopedView.VIEW_NAME));
  10. navigationBar.addComponent(createNavigationButton("View Scoped View",
  11. ViewScopedView.VIEW_NAME));
  12. root.addComponent(navigationBar);
  13. springViewDisplay = new Panel();
  14. springViewDisplay.setSizeFull();
  15. root.addComponent(springViewDisplay);
  16. root.setExpandRatio(springViewDisplay, 1.0f);
  17. }

代码示例来源:origin: org.activiti/activiti-explorer

  1. public DetailPanel() {
  2. setSizeFull();
  3. addStyleName(ExplorerLayout.STYLE_DETAIL_PANEL);
  4. setMargin(true);
  5. CssLayout cssLayout = new CssLayout(); // Needed for rounded corners
  6. cssLayout.addStyleName(ExplorerLayout.STYLE_DETAIL_PANEL);
  7. cssLayout.setSizeFull();
  8. super.addComponent(cssLayout);
  9. mainPanel = new Panel();
  10. mainPanel.addStyleName(Reindeer.PANEL_LIGHT);
  11. mainPanel.setSizeFull();
  12. cssLayout.addComponent(mainPanel);
  13. // Use default layout
  14. VerticalLayout verticalLayout = new VerticalLayout();
  15. verticalLayout.setWidth(100, UNITS_PERCENTAGE);
  16. verticalLayout.setMargin(true);
  17. mainPanel.setContent(verticalLayout);
  18. }

相关文章