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

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

本文整理了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

protected void setContent(AbstractComponent c) {
  content.removeAllComponents();
  content.addComponent(c);
}

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

protected void resetAddButton() {
 addSubTaskPanel.removeAllComponents();
 initAddButton();
}

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

public void buttonClick(ClickEvent event) {
  // Remove button
  addSubTaskPanel.removeAllComponents();
  
  // And add textfield
  Label createSubTaskLabel = new Label("Create new subtask:");
  createSubTaskLabel.addStyleName(Reindeer.LABEL_SMALL);
  addSubTaskPanel.addComponent(createSubTaskLabel);
  newTaskTextField = new TextField();
  newTaskTextField.focus();
  addSubTaskPanel.addComponent(newTaskTextField);
 }
});

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

private void displaySelectedDictionary() {
  String dictionaryId = getCurrentDictionaryId();
  String languageCode = getCurrentLanguageCode();
  dictionaryLayout.removeAllComponents();
  if (dictionaryId != null && languageCode != null) {
    HorizontalLayout hl = new HorizontalLayout();
    hl.setSpacing(true);
    hl.addComponent(dictionaryNameField);
    hl.addComponent(dictionaryDescriptionField);
    HorizontalLayout hl2 = new HorizontalLayout();
    hl2.setSpacing(true);
    hl2.addComponent(editPermissionField);
    container = new BeanItemContainer<XmlDictionaryItemWrapper>(XmlDictionaryItemWrapper.class, processDictionaries.getItems(dictionaryId, languageCode));
    bindProperty(dictionaryNameField, getCurrentDictionary(), _DICTIONARY_NAME);
    bindProperty(dictionaryDescriptionField, getCurrentDictionary(), _DESCRIPTION);
    bindProperty(editPermissionField, getCurrentDictionary(), _EDIT_PERMISSION);
    dictionaryLayout.addComponent(hl);
    dictionaryLayout.addComponent(hl2);
    dictionaryLayout.addComponent(getAddEntryButton());
    dictionaryLayout.addComponent(builder.createTable(container));
  }
}

相关文章