@EventBusListenerMethod(scope = EventScope.UI) void onEvent(final CustomFilterUIEvent custFUIEvent) { if (custFUIEvent == CustomFilterUIEvent.UPDATE_TARGET_FILTER_SEARCH_ICON) { validationIcon.setValue(FontAwesome.CHECK_CIRCLE.getHtml()); if (!isValidationError()) { validationIcon.setStyleName(SPUIStyleDefinitions.SUCCESS_ICON); } else { validationIcon.setStyleName(SPUIStyleDefinitions.ERROR_ICON); } } }
private static Label createMandatoryLabel(final boolean mandatory) { final Label mandatoryLable = mandatory ? HawkbitCommonUtil.getFormatedLabel(" * ") : HawkbitCommonUtil.getFormatedLabel(" "); if (mandatory) { mandatoryLable.setStyleName(SPUIStyleDefinitions.SP_TEXTFIELD_ERROR); } return mandatoryLable; } }
@EventBusListenerMethod(scope = EventScope.UI) void onEvent(final CustomFilterUIEvent custFUIEvent) { if (custFUIEvent == CustomFilterUIEvent.UPDATE_TARGET_FILTER_SEARCH_ICON) { validationIcon.setValue(FontAwesome.CHECK_CIRCLE.getHtml()); if (!isValidationError()) { validationIcon.setStyleName(SPUIStyleDefinitions.SUCCESS_ICON); } else { validationIcon.setStyleName(SPUIStyleDefinitions.ERROR_ICON); } } }
/** * Sets the spinner as progress indicator. */ public void showValidationInProgress() { validationIcon.setValue(null); validationIcon.addStyleName("show-status-label"); validationIcon.setStyleName(SPUIStyleDefinitions.TARGET_FILTER_SEARCH_PROGRESS_INDICATOR_STYLE); }
public WebTimeZoneIndicator() { component = new Label(); component.setSizeUndefined(); component.setStyleName(USER_TIMEZONE_LABEL_STYLENAME); }
private static Label createMandatoryLabel(final boolean mandatory) { final Label mandatoryLable = mandatory ? HawkbitCommonUtil.getFormatedLabel(" * ") : HawkbitCommonUtil.getFormatedLabel(" "); if (mandatory) { mandatoryLable.setStyleName(SPUIStyleDefinitions.SP_TEXTFIELD_ERROR); } return mandatoryLable; } }
/** * Sets the spinner as progress indicator. */ public void showValidationInProgress() { validationIcon.setValue(null); validationIcon.addStyleName("show-status-label"); validationIcon.setStyleName(SPUIStyleDefinitions.TARGET_FILTER_SEARCH_PROGRESS_INDICATOR_STYLE); }
/** * Clears the textfield and resets the validation icon. */ public void clear() { queryTextField.clear(); validationIcon.setValue(FontAwesome.CHECK_CIRCLE.getHtml()); validationIcon.setStyleName("hide-status-label"); }
/** * Clears the textfield and resets the validation icon. */ public void clear() { queryTextField.clear(); validationIcon.setValue(FontAwesome.CHECK_CIRCLE.getHtml()); validationIcon.setStyleName("hide-status-label"); }
public Object generateCell(Table source, Object itemId, Object columnId) { if (CAPTION_FOLDERS.equals(columnId)) { String html = (String)source.getContainerDataSource().getItem(itemId).getItemProperty( CmsResourceTableProperty.PROPERTY_TREE_CAPTION).getValue(); Label label = new Label(html, ContentMode.HTML); label.setStyleName("o-tree-table-caption"); return label; } else { return null; } } };
/** * Shows the validation success icon in the textfield * * @param text * the text to store in the UI state object */ public void showValidationSuccesIcon(final String text) { validationIcon.setValue(FontAwesome.CHECK_CIRCLE.getHtml()); validationIcon.setStyleName(SPUIStyleDefinitions.SUCCESS_ICON); filterManagementUIState.setFilterQueryValue(text); filterManagementUIState.setIsFilterByInvalidFilterQuery(Boolean.FALSE); }
/** * Shows the validation success icon in the textfield * * @param text * the text to store in the UI state object */ public void showValidationSuccesIcon(final String text) { validationIcon.setValue(FontAwesome.CHECK_CIRCLE.getHtml()); validationIcon.setStyleName(SPUIStyleDefinitions.SUCCESS_ICON); filterManagementUIState.setFilterQueryValue(text); filterManagementUIState.setIsFilterByInvalidFilterQuery(Boolean.FALSE); }
private Label buildAttributesUpdateLabel() { final Label attributesUpdateLabel = new Label(); attributesUpdateLabel.setStyleName(ValoTheme.LABEL_SMALL); attributesUpdateLabel.setValue(getI18n().getMessage("label.target.attributes.update.pending")); return attributesUpdateLabel; }
private Component buildVersionInfo() { final Label label = new Label(); label.setSizeFull(); label.setStyleName("version-layout"); label.setValue(serverProperties.getBuild().getVersion()); return label; }
protected void setupSearchFoldersPane(Component searchFoldersPane) { searchFoldersPane.setHeight(100, Unit.PERCENTAGE); searchFoldersPane.setWidth(100, Unit.PERCENTAGE); if (isNeedFoldersTitle()) { searchFoldersLabel = new Label(messages.getMainMessage("folders.searchFoldersRoot")); searchFoldersLabel.setStyleName("c-folders-pane-caption"); } else { searchFoldersLabel = null; } }
protected void setupAppFoldersPane(Component appFoldersPane) { appFoldersPane.setHeight("100%"); appFoldersPane.setWidth("100%"); if (isNeedFoldersTitle()) { appFoldersLabel = new Label(messages.getMainMessage("folders.appFoldersRoot")); appFoldersLabel.setStyleName("c-folders-pane-caption"); } else { appFoldersLabel = null; } }
private Component buildVersionInfo() { final Label label = new Label(); label.setSizeFull(); label.setStyleName("version-layout"); label.setValue(serverProperties.getBuild().getVersion()); return label; }
public static HorizontalLayout labelWithIcon(Resource image, String caption, String style, String description) { Embedded img = new Embedded(null, image); img.setDescription(description); Label label = new Label(caption, Label.CONTENT_XHTML); label.setDescription(description); if (style != null) { label.setStyleName(style); } HorizontalLayout hl = VaadinUtility.horizontalLayout(Alignment.MIDDLE_LEFT, img, label); hl.setWidth(-1, Sizeable.UNITS_PIXELS); return hl; }
private HorizontalLayout buildViewTitle() { final HorizontalLayout viewHeadercontent = new HorizontalLayout(); viewHeadercontent.setWidth("100%"); viewHeadercontent.addStyleName("view-header-layout"); viewTitle = new Label(); viewTitle.setWidth("100%"); viewTitle.setStyleName("header-content"); viewHeadercontent.addComponent(viewTitle); viewHeadercontent.addComponent(notificationUnreadButton); viewHeadercontent.setComponentAlignment(notificationUnreadButton, Alignment.MIDDLE_RIGHT); return viewHeadercontent; }
private HorizontalLayout buildViewTitle() { final HorizontalLayout viewHeadercontent = new HorizontalLayout(); viewHeadercontent.setWidth("100%"); viewHeadercontent.addStyleName("view-header-layout"); viewTitle = new Label(); viewTitle.setWidth("100%"); viewTitle.setStyleName("header-content"); viewHeadercontent.addComponent(viewTitle); viewHeadercontent.addComponent(notificationUnreadButton); viewHeadercontent.setComponentAlignment(notificationUnreadButton, Alignment.MIDDLE_RIGHT); return viewHeadercontent; }