本文整理了Java中com.vaadin.ui.Panel.removeAllComponents()
方法的一些代码示例,展示了Panel.removeAllComponents()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Panel.removeAllComponents()
方法的具体详情如下:
包路径:com.vaadin.ui.Panel
类名称: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));
}
}
内容来源于网络,如有侵权,请联系作者删除!