本文整理了Java中com.vaadin.ui.Layout.removeAllComponents()
方法的一些代码示例,展示了Layout.removeAllComponents()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Layout.removeAllComponents()
方法的具体详情如下:
包路径:com.vaadin.ui.Layout
类名称:Layout
方法名:removeAllComponents
暂无
代码示例来源:origin: info.magnolia.ui/magnolia-ui-framework
protected void clearRootLayout() {
rootLayout.setVisible(false);
rootLayout.removeAllComponents();
removeStyleName("done");
}
代码示例来源:origin: org.aperteworkflow/editor
@Override
public void loadData() {
roleNameComboBox.removeAllItems();
roleNameComboBox.addItem(".*");
for (String roleName : LiferayBridge.getRegularRoleNames()) {
roleNameComboBox.addItem(roleName);
}
roleNameLayout.removeAllComponents();
if (provider.getPermissions() != null) {
for (Permission permission : provider.getPermissions()) {
addPermissionWrapper(new PermissionWrapper(permission));
}
}
}
代码示例来源:origin: nz.co.senanque/madura-workflow-vaadin
public void load(Audit audit) {
panel.removeAllComponents();
getMaduraSessionManager().getValidationSession().bind(audit);
BeanItem<Audit> beanItem = new BeanItem<Audit>(audit);
m_fieldGroup = m_maduraSessionManager.createMaduraFieldGroup();
Map<String,Field<?>> fields = m_fieldGroup.buildAndBind(new String[]{"created","lockedBy","status","comment"},beanItem);
// String[] fieldList = new String[]{"created","lockedBy","status","comment"};
// m_fieldGroup.setFieldList(fieldList);
// m_auditForm.setItemDataSource(beanItem);
TextArea comment = (TextArea)fields.get("comment");
comment.setWidth("700px");
for (Field<?> f: fields.values()) {
panel.addComponent(f);
}
panel.addComponent(getInitialLayout());
// panel.requestRepaint();
if (getParent() == null) {
UI.getCurrent().addWindow(this);
this.center();
}
}
@PostConstruct
代码示例来源:origin: nz.co.senanque/madura-workflow-vaadin
@Override
public void bind() {
panel.removeAllComponents();
ValidationObject o = (ValidationObject)getContext();
BeanItem<ValidationObject> beanItem = new BeanItem<>(o);
m_maduraSessionManager.getValidationSession().bind(o);
fieldGroup = m_maduraSessionManager.createMaduraFieldGroup();
Layout actions = createButtons();
log.debug("park:{}",(park.isEnabled()?"enabled":"disabled"));
Map<String,Field<?>> fields = fieldGroup.buildAndBind(m_fieldList,beanItem);
for (Field<?> f:fields.values()) {
if (isReadOnlyForm()) {
f.setReadOnly(true);
f.setEnabled(false);
}
panel.addComponent(f);
}
m_referenceField = fields.get(m_referenceName);
m_launcher = (m_processInstance==null || m_processInstance.getId()== 0);
park.setVisible(!isLauncher());
panel.addComponent(actions);
if (isReadOnlyForm()) {
park.setReadOnly(true);
park.setEnabled(false);
okay.setReadOnly(true);
okay.setEnabled(false);
}
log.debug("park:{}",(park.isEnabled()?"enabled":"disabled"));
}
@Override
代码示例来源:origin: nz.co.senanque/madura-workflow-vaadin
@SuppressWarnings("serial")
public void load(final long pid) {
m_currentPid = pid;
panel.removeAllComponents();
HorizontalLayout hl = new HorizontalLayout();
hl.setMargin(true);
代码示例来源:origin: com.haulmont.cuba/cuba-web
public void update() {
boolean isTestMode = ui.isTestMode();
linksLayout.removeAllComponents();
for (Iterator<Window> it = windows.iterator(); it.hasNext();) {
Window window = it.next();
代码示例来源:origin: nz.co.senanque/madura-workflow-vaadin
public void load(final long pid) {
panel.removeAllComponents();
final Upload upload = new Upload(null, receiver);
upload.setImmediate(true);
upload.setButtonCaption(m_messageSourceAccessor.getMessage("upload.file", "Upload File"));
checkbox = new CheckBox(m_messageSourceAccessor.getMessage("upload.protected", "Protected"));
comment = new TextField(m_messageSourceAccessor.getMessage("upload.comment", "Comment"));
panel.addComponent(comment);
panel.addComponent(checkbox);
panel.addComponent(upload);
upload.addFinishedListener(new Upload.FinishedListener() {
private static final long serialVersionUID = 1L;
public void uploadFinished(FinishedEvent event) {
Attachment attachment = receiver.getWrapper().getCurrentAttachment();
attachment.setProcessInstanceId(pid);
attachment.setComment((String)comment.getValue());
attachment.setProtectedDocument((boolean)checkbox.getValue());
m_workflowDAO.addAttachment(attachment);
close();
}
});
if (getParent() == null) {
UI.getCurrent().addWindow(this);
this.center();
}
}
public void close() {
内容来源于网络,如有侵权,请联系作者删除!