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

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

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

Panel.removeAllComponents介绍

暂无

代码示例

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

  1. protected void setContent(AbstractComponent c) {
  2. content.removeAllComponents();
  3. content.addComponent(c);
  4. }

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

  1. protected void resetAddButton() {
  2. addSubTaskPanel.removeAllComponents();
  3. initAddButton();
  4. }

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

  1. public void buttonClick(ClickEvent event) {
  2. // Remove button
  3. addSubTaskPanel.removeAllComponents();
  4. // And add textfield
  5. Label createSubTaskLabel = new Label("Create new subtask:");
  6. createSubTaskLabel.addStyleName(Reindeer.LABEL_SMALL);
  7. addSubTaskPanel.addComponent(createSubTaskLabel);
  8. newTaskTextField = new TextField();
  9. newTaskTextField.focus();
  10. addSubTaskPanel.addComponent(newTaskTextField);
  11. }
  12. });

代码示例来源:origin: org.aperteworkflow/editor

  1. private void displaySelectedDictionary() {
  2. String dictionaryId = getCurrentDictionaryId();
  3. String languageCode = getCurrentLanguageCode();
  4. dictionaryLayout.removeAllComponents();
  5. if (dictionaryId != null && languageCode != null) {
  6. HorizontalLayout hl = new HorizontalLayout();
  7. hl.setSpacing(true);
  8. hl.addComponent(dictionaryNameField);
  9. hl.addComponent(dictionaryDescriptionField);
  10. HorizontalLayout hl2 = new HorizontalLayout();
  11. hl2.setSpacing(true);
  12. hl2.addComponent(editPermissionField);
  13. container = new BeanItemContainer<XmlDictionaryItemWrapper>(XmlDictionaryItemWrapper.class, processDictionaries.getItems(dictionaryId, languageCode));
  14. bindProperty(dictionaryNameField, getCurrentDictionary(), _DICTIONARY_NAME);
  15. bindProperty(dictionaryDescriptionField, getCurrentDictionary(), _DESCRIPTION);
  16. bindProperty(editPermissionField, getCurrentDictionary(), _EDIT_PERMISSION);
  17. dictionaryLayout.addComponent(hl);
  18. dictionaryLayout.addComponent(hl2);
  19. dictionaryLayout.addComponent(getAddEntryButton());
  20. dictionaryLayout.addComponent(builder.createTable(container));
  21. }
  22. }

相关文章