label.setValue(status.getMessage().orElse("")); label.setVisible(status.isError()); });
public void setDescription(String description) { if(description != null) { descriptionLabel.setValue(description); descriptionLabel.setVisible(true); } else { descriptionLabel.setVisible(false); } }
/** * Display an indication that the legend is being calculated. When the * loading process is done one of the populate methods should be called. */ public void displayLoading() { populateGroupsLegendByTargetCounts(Collections.emptyList()); loadingLabel.setVisible(true); }
@Override public void setNotificationUnreadValue(final AtomicInteger notificationUnread) { notificationsLabel.setValue(String.valueOf(notificationUnread.get())); notificationsLabel.setVisible(notificationUnread.get() > 0); }
@Override public void setNotificationUnreadValue(final AtomicInteger notificationUnread) { notificationsLabel.setValue(String.valueOf(notificationUnread.get())); notificationsLabel.setVisible(notificationUnread.get() > 0); }
/** * Displays the given login error.<p> * * @param messageHTML the error message */ void displayError(String messageHTML) { m_error.setValue(messageHTML); m_error.setVisible(true); }
@Override public void undo() { combobox.select(currentDefaultDisSetType); selectedDefaultDisSetType = currentDefaultDisSetType; changeIcon.setVisible(false); }
private Label createLabel() { final Label label = new Label(name); label.setVisible(visible); final StringBuilder style = new StringBuilder(ValoTheme.LABEL_SMALL); style.append(' '); style.append(ValoTheme.LABEL_BOLD); label.addStyleName(style.toString()); if (id != null) { label.setId(id); } return label; }
private Label createLabel() { final Label label = new Label(name); label.setVisible(visible); final StringBuilder style = new StringBuilder(ValoTheme.LABEL_SMALL); style.append(' '); style.append(ValoTheme.LABEL_BOLD); label.addStyleName(style.toString()); if (id != null) { label.setId(id); } return label; }
@Override public void setVisible(boolean visible) { super.setVisible(visible); if (!visible) { noDefaultsAvailable.setVisible(false); } else { center(); } } }
@Override public void validationStatusChange(ValidationStatusEvent<?> statusChangeEvent) { final String error = statusChangeEvent.getErrorMessage(); label.setValue((error != null) ? error : ""); if (hideWhenValid) { // Only show the label when validation has failed label.setVisible(statusChangeEvent.isInvalid()); } }
@Override public void validationStatusChange(ValidationStatusEvent<?> statusChangeEvent) { final String error = statusChangeEvent.getErrorMessage(); label.setValue((error != null) ? error : ""); if (hideWhenValid) { // Only show the label when validation has failed label.setVisible(statusChangeEvent.isInvalid()); } }
protected void initTitle() { formTitle = new Label(); formTitle.addStyleName(ExplorerLayout.STYLE_H4); formTitle.setVisible(false); addComponent(formTitle); }
protected void initSuccessIndicator() { successIndicator = new Label(); successIndicator.setIcon(Images.SUCCESS); successIndicator.setVisible(false); addComponent(successIndicator); }
protected void addDescription() { descriptionLabel = new Label(); descriptionLabel.addStyleName(Reindeer.LABEL_SMALL); descriptionLabel.addStyleName(ExplorerLayout.STYLE_DEPLOYMENT_UPLOAD_DESCRIPTION); descriptionLabel.setVisible(false); addComponent(descriptionLabel); }
public void uploadFinished(FinishedEvent event) { // Update UI if(getAttachmentName() == null || "".equals(getAttachmentName())) { setAttachmentName(getFriendlyName(fileName)); } fileUploaded = true; successIndicator.setVisible(true); successIndicator.setCaption(i18nManager.getMessage(Messages.RELATED_CONTENT_TYPE_FILE_UPLOADED, fileName)); form.setComponentError(null); } });
private static Label getStatusCountLabel() { final Label countLabel = new Label(); countLabel.setImmediate(true); countLabel.addStyleName("bulk-upload-label"); countLabel.setVisible(false); countLabel.setCaptionAsHtml(true); countLabel.setId(UIComponentIdProvider.BULK_UPLOAD_COUNT); return countLabel; }
/** * Constructor.<p> * * @param locale the user locale */ public CmsPasswordForm(Locale locale) { CmsVaadinUtils.readAndLocalizeDesign(this, OpenCms.getWorkplaceManager().getMessages(locale), null); m_securityHint.setVisible(false); m_password1Style = new CmsStyleVariable(m_password1Wrapper); m_password2Style = new CmsStyleVariable(m_password2Wrapper); m_oldPasswordStyle = new CmsStyleVariable(m_oldPasswordWrapper); }
private void resetComponents() { queryTextField.clear(); queryTextField.focus(); headerCaption.setVisible(true); breadcrumbName.setValue(headerCaption.getValue()); nameLabel.setValue(""); saveButton.setEnabled(false); titleFilterIconsLayout.removeStyleName(SPUIStyleDefinitions.TARGET_FILTER_CAPTION_LAYOUT); }
public void valueChange(ValueChangeEvent event) { if(event.getProperty() != null && event.getProperty().getValue() != null) { typeComboBox.refresh(((ConfigurationServiceClient)event.getProperty().getValue()).getName()); sourceContextComboBox.refresh(((ConfigurationServiceClient)event.getProperty().getValue()).getName(), null); targetContextComboBox.refresh(((ConfigurationServiceClient)event.getProperty().getValue()).getName(), null, null); typeLabel.setVisible(true); typeComboBox.setVisible(true); } } });