@Override public void buttonClick(ClickEvent event) { forms.remove(form); itemsLayout.removeComponent(wrapper); modifiedValue.remove(val); if (modifiedValue.isEmpty()) { itemsLayout.addComponent(noValuesLabel); } } });
public void setContentPreview(Component contentPreviewComponent) { if (contentPreview != null) { rootLayout.removeComponent(contentPreview); } rootLayout.addComponentAsFirst(contentPreviewComponent); contentPreview = contentPreviewComponent; }
@Override public void buttonClick(ClickEvent event) { itemsLayout.removeComponent(form); modifiedValue.remove(ext); if (modifiedValue.isEmpty()) { itemsLayout.addComponent(noExtensionsLabel); } } });
/** * Removes the given button from the toolbar.<p> * * @param button the button to remove */ public void removeButton(Component button) { m_itemsLeft.removeComponent(button); m_itemsRight.removeComponent(button); m_leftButtons.removeComponent(button); m_rightButtons.removeComponent(button); updateFoldingThreshhold(); }
private void onDelete(VerticalLayout root, EditorView<T> subForm) { root.removeComponent(subForm.asVaadinComponent().getParent()); removedForms.add(subForm); formOrder.remove(subForm); }
public final void setFooter(Component footer) { if (this.footer != null) { layout.removeComponent(this.footer); } this.footer = footer; if (footer == null) { return; } this.layout.addComponent(footer); this.layout.setExpandRatio(footer, 0); } }
public void setSegmentationLayer(String segmentationName, Map<String, Long> markedAndCovered) { this.segmentationName = segmentationName; this.input.setMarkedAndCovered(markedAndCovered); // complete recreation of the grid layout.removeComponent(grid); createAnnotationGrid(); }
/** * Removes the event panel. * * @param layout the layout */ private void removeEventPanel(final VerticalLayout layout) { if (layout.getComponentCount() > 1) layout.removeComponent(layout.getComponent(1)); }
public final void setContent(Component newDialogContent) { if (dialogContent != null) { layout.removeComponent(dialogContent); } this.dialogContent = newDialogContent; if (newDialogContent == null) { return; } this.layout.addComponentAsFirst(this.dialogContent); this.layout.setExpandRatio(this.dialogContent, 1f); }
/** * This method removes the given {@link DashletSpecEditor}. * * @param dashletSpecEditor the {@link DashletSpecEditor} to be removed */ public void removeDashletSpecEditor(DashletSpecEditor dashletSpecEditor) { m_verticalLayout.removeComponent(dashletSpecEditor); m_dashletSpecEditorMap.remove(dashletSpecEditor.getDashletSpec()); m_wallboard.getDashletSpecs().remove(dashletSpecEditor.getDashletSpec()); WallboardProvider.getInstance().save(); }
protected void removeCancelButtonAndAddMenuBar() { targetTagTableLayout.removeComponent(cancelTagButton); targetTagTableLayout.addComponent(menu, 0); targetTagTableLayout.setComponentAlignment(menu, Alignment.TOP_RIGHT); filterByButtons.removeUpdateAndDeleteColumn(); }
protected void removeCancelButtonAndAddMenuBar() { targetTagTableLayout.removeComponent(cancelTagButton); targetTagTableLayout.addComponent(menu, 0); targetTagTableLayout.setComponentAlignment(menu, Alignment.TOP_RIGHT); filterByButtons.removeUpdateAndDeleteColumn(); }
protected void removeMenuBarAndAddCancelButton() { targetTagTableLayout.removeComponent(menu); targetTagTableLayout.addComponent(createCancelButtonForUpdateOrDeleteTag(), 0); targetTagTableLayout.setComponentAlignment(cancelTagButton, Alignment.TOP_RIGHT); }
protected void removeMenuBarAndAddCancelButton() { targetTagTableLayout.removeComponent(menu); targetTagTableLayout.addComponent(createCancelButtonForUpdateOrDeleteTag(), 0); targetTagTableLayout.setComponentAlignment(cancelTagButton, Alignment.TOP_RIGHT); }
private void reload() { if (documentListComponent != null) { vl.removeComponent(documentListComponent); } if (hasPermission("EDIT", "VIEW")) { vl.addComponent(documentListComponent = getDocumentList()); } }
@Override public void buttonClick(ClickEvent clickEvent) { hl.removeComponent(tvf); hl.removeComponent(minusTargetValueButton); hl.setImmediate(true); hl.markAsDirty(); targetValueTableCellLayout.removeComponent(hl); targetValueTableCellLayout.markAsDirty(); deletedManyToManyTargetConfigurationValues.add(targetValue); } });
@Override public void buttonClick(ClickEvent clickEvent) { hl.removeComponent(sourceSystemValueTextField2); hl.removeComponent(minusTargetValueButton); hl.setImmediate(true); hl.markAsDirty(); tableCellLayout.removeComponent(hl); tableCellLayout.markAsDirty(); mappingConfiguration.getSourceConfigurationValues().remove(partnerSourceConfigurationValue); } });
@Override protected void init(VaadinRequest vaadinRequest) { super.init(vaadinRequest); super.getPage().setTitle(this.title); VerticalLayout content = (VerticalLayout)super.getContent(); Component headerContent = content.getComponent(0); content.removeComponent(headerContent); }
private void maximizeArtifactoryDetails() { mainLayout.setSpacing(false); mainLayout.removeComponent(filterByTypeLayout); mainLayout.removeComponent(smTableLayout); detailAndUploadLayout.removeComponent(dropAreaLayout.getDropAreaWrapper()); mainLayout.setColumnExpandRatio(1, 0F); mainLayout.setColumnExpandRatio(2, 1F); }
private void maximizeArtifactoryDetails() { mainLayout.setSpacing(false); mainLayout.removeComponent(filterByTypeLayout); mainLayout.removeComponent(smTableLayout); detailAndUploadLayout.removeComponent(dropAreaLayout.getDropAreaWrapper()); mainLayout.setColumnExpandRatio(1, 0F); mainLayout.setColumnExpandRatio(2, 1F); }