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

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

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

Panel.setSizeUndefined介绍

暂无

代码示例

代码示例来源:origin: org.opencms/opencms-core

  1. /**
  2. * Displays the resource infos panel.<p>
  3. *
  4. * @param resources the resources
  5. */
  6. public void displayResourceInfo(List<CmsResource> resources) {
  7. m_infoResources = Lists.newArrayList(resources);
  8. if (m_infoComponent != null) {
  9. m_mainPanel.removeComponent(m_infoComponent);
  10. m_infoComponent = null;
  11. }
  12. if ((resources != null) && !resources.isEmpty()) {
  13. if (resources.size() == 1) {
  14. m_infoComponent = new CmsResourceInfo(resources.get(0));
  15. m_mainPanel.addComponent(m_infoComponent, 0);
  16. } else {
  17. m_infoComponent = createResourceListPanel(
  18. Messages.get().getBundle(A_CmsUI.get().getLocale()).key(Messages.GUI_RESOURCE_INFO_0),
  19. resources);
  20. m_mainPanel.addComponent(m_infoComponent, 0);
  21. m_mainPanel.setExpandRatio(m_infoComponent, 1);
  22. // reset expand ratio of the content panel
  23. m_contentPanel.setSizeUndefined();
  24. m_contentPanel.setWidth("100%");
  25. m_mainPanel.setExpandRatio(m_contentPanel, 0);
  26. }
  27. }
  28. }

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

  1. protected void initAddSubTaskPanel(HorizontalLayout headerLayout) {
  2. // The add button is placed in a panel, so we can catch 'enter' and 'escape' events
  3. addSubTaskPanel = new Panel();
  4. addSubTaskPanel.setContent(new VerticalLayout());
  5. addSubTaskPanel.setSizeUndefined();
  6. addSubTaskPanel.addStyleName(Reindeer.PANEL_LIGHT);
  7. addSubTaskPanel.addStyleName("no-border");
  8. headerLayout.addComponent(addSubTaskPanel);
  9. initAddSubTaskPanelKeyboardActions();
  10. initAddButton();
  11. }

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

  1. @Override
  2. public void doBuild(ViewChangeBusMessage event) {
  3. super.doBuild(event);
  4. centrePanel = new Panel();
  5. centrePanel.addStyleName(ChameleonTheme.PANEL_BUBBLE);
  6. centrePanel.setSizeUndefined();
  7. VerticalLayout vl = new VerticalLayout();
  8. centrePanel.setContent(vl);
  9. vl.setSpacing(true);
  10. vl.setSizeUndefined();
  11. label = new Label();
  12. usernameBox = new TextField();
  13. passwordBox = new PasswordField();
  14. Label demoInfoLabel = new Label("for this demo, enter any user name, and a password of 'password'");
  15. Label demoInfoLabel2 = new Label("In a real application your Shiro Realm implementation defines how to authenticate");
  16. submitButton = new Button();
  17. submitButton.addClickListener(this);
  18. statusMsgLabel = new Label("Please enter your username and password");
  19. vl.addComponent(label);
  20. vl.addComponent(demoInfoLabel);
  21. vl.addComponent(demoInfoLabel2);
  22. vl.addComponent(usernameBox);
  23. vl.addComponent(passwordBox);
  24. vl.addComponent(submitButton);
  25. vl.addComponent(statusMsgLabel);
  26. setMiddleCentre(centrePanel);
  27. }

相关文章