List of usage examples for com.vaadin.server FontAwesome TIMES
FontAwesome TIMES
To view the source code for com.vaadin.server FontAwesome TIMES.
Click Source Link
From source file:org.eclipse.hawkbit.ui.common.filterlayout.AbstractFilterHeader.java
License:Open Source License
private void createComponents() { title = createHeaderCaption();/*from w w w. j a v a 2 s. c o m*/ if (isAddTagRequired()) { menu = new ConfigMenuBar(permChecker.hasCreateRepositoryPermission(), permChecker.hasUpdateRepositoryPermission(), permChecker.hasDeleteRepositoryPermission(), getAddButtonCommand(), getUpdateButtonCommand(), getDeleteButtonCommand(), getMenuBarId(), i18n); } hideIcon = SPUIComponentProvider.getButton(getHideButtonId(), "", i18n.getMessage(UIMessageIdProvider.TOOLTIP_CLOSE), "", true, FontAwesome.TIMES, SPUIButtonStyleNoBorder.class); hideIcon.addClickListener(event -> hideFilterButtonLayout()); }
From source file:org.eclipse.hawkbit.ui.common.grid.AbstractGridHeader.java
License:Open Source License
private Button createCloseButton() { final Button button = SPUIComponentProvider.getButton(getCloseButtonId(), "", i18n.getMessage(UIMessageIdProvider.TOOLTIP_CLOSE), null, false, FontAwesome.TIMES, SPUIButtonStyleNoBorder.class); button.addClickListener(this::onClose); return button; }
From source file:org.eclipse.hawkbit.ui.common.grid.AbstractGridHeader.java
License:Open Source License
private void openSearchTextField() { searchResetIcon.addStyleName(SPUIDefinitions.FILTER_RESET_ICON); searchResetIcon.toggleIcon(FontAwesome.TIMES); searchResetIcon.setData(Boolean.TRUE); searchResetIcon.setDescription(i18n.getMessage(UIMessageIdProvider.TOOLTIP_RESET)); searchField.removeStyleName(SPUIDefinitions.FILTER_BOX_HIDE); searchField.setVisible(true);// ww w . ja v a 2s . c o m searchField.focus(); }
From source file:org.eclipse.hawkbit.ui.common.table.AbstractTableHeader.java
License:Open Source License
private void openSearchTextField() { searchResetIcon.addStyleName(SPUIDefinitions.FILTER_RESET_ICON); searchResetIcon.toggleIcon(FontAwesome.TIMES); searchResetIcon.setData(Boolean.TRUE); searchResetIcon.setDescription(i18n.getMessage(UIMessageIdProvider.TOOLTIP_RESET)); searchField.removeStyleName(SPUIDefinitions.FILTER_BOX_HIDE); searchField.focus();//w w w. j a v a2s . c o m }
From source file:org.eclipse.hawkbit.ui.filtermanagement.CreateOrUpdateFilterHeader.java
License:Open Source License
private SPUIButton createSearchResetIcon() { final SPUIButton button = (SPUIButton) SPUIComponentProvider.getButton( UIComponentIdProvider.CUSTOM_FILTER_CLOSE, "", i18n.getMessage(UIMessageIdProvider.TOOLTIP_CLOSE), null, false, FontAwesome.TIMES, SPUIButtonStyleNoBorder.class); button.addClickListener(event -> closeFilterLayout()); return button; }
From source file:org.eclipse.hawkbit.ui.management.actionhistory.ActionHistoryGrid.java
License:Open Source License
private StatusFontIcon createCancelButtonMetadata(final Action action) { final boolean isDisabled = !action.isActive() || action.isCancelingOrCanceled() || !permissionChecker.hasUpdateTargetPermission(); return new StatusFontIcon(FontAwesome.TIMES, STATUS_ICON_NEUTRAL, i18n.getMessage("message.cancel.action"), UIComponentIdProvider.ACTION_HISTORY_TABLE_CANCEL_ID, isDisabled); }
From source file:org.eclipse.hawkbit.ui.management.actionhistory.ActionHistoryGrid.java
License:Open Source License
private StatusFontIcon createForceQuitButtonMetadata(final Action action) { final boolean isDisabled = !action.isActive() || !action.isCancelingOrCanceled() || !permissionChecker.hasUpdateTargetPermission(); return new StatusFontIcon(FontAwesome.TIMES, STATUS_ICON_RED, i18n.getMessage("message.forcequit.action"), UIComponentIdProvider.ACTION_HISTORY_TABLE_FORCE_QUIT_ID, isDisabled); }
From source file:org.eclipse.hawkbit.ui.management.actionhistory.ActionHistoryTable.java
License:Open Source License
private HorizontalLayout createActionBarColumn(final Object itemId) { final HorizontalLayout actionBar = new HorizontalLayout(); final Item item = hierarchicalContainer.getItem(itemId); final Long actionId = (Long) item.getItemProperty(SPUIDefinitions.ACTION_HIS_TBL_ACTION_ID_HIDDEN) .getValue();//from w w w . j a v a 2 s . c o m final String activeValue = (String) item.getItemProperty(SPUIDefinitions.ACTION_HIS_TBL_ACTIVE_HIDDEN) .getValue(); final Action actionWithActiveStatus = (Action) item.getItemProperty(SPUIDefinitions.ACTION_HIS_TBL_FORCED) .getValue(); if (actionWithActiveStatus == null) { return null; } final boolean isActionActive = target != null && SPUIDefinitions.ACTIVE.equals(activeValue); final Button actionCancel = SPUIComponentProvider.getButton( UIComponentIdProvider.ACTION_HISTORY_TABLE_CANCEL_ID, "", i18n.get("message.cancel.action"), ValoTheme.BUTTON_TINY, true, FontAwesome.TIMES, SPUIButtonStyleSmallNoBorder.class); actionCancel.setEnabled(isActionActive && !actionWithActiveStatus.isCancelingOrCanceled()); actionCancel.addClickListener(event -> confirmAndCancelAction(actionId)); final Button actionForce = SPUIComponentProvider.getButton( UIComponentIdProvider.ACTION_HISTORY_TABLE_FORCE_ID, "", i18n.get("message.force.action"), ValoTheme.BUTTON_TINY, true, FontAwesome.BOLT, SPUIButtonStyleSmallNoBorder.class); actionForce.setEnabled(isActionActive && !actionWithActiveStatus.isForce() && !actionWithActiveStatus.isCancelingOrCanceled()); actionForce.addClickListener(event -> confirmAndForceAction(actionId)); final Button actionForceQuit = SPUIComponentProvider.getButton( UIComponentIdProvider.ACTION_HISTORY_TABLE_FORCE_QUIT_ID, "", i18n.get("message.forcequit.action"), ValoTheme.BUTTON_TINY + " redicon", true, FontAwesome.TIMES, SPUIButtonStyleSmallNoBorder.class); actionForceQuit.setEnabled(isActionActive && actionWithActiveStatus.isCancelingOrCanceled()); actionForceQuit.addClickListener(event -> confirmAndForceQuitAction(actionId)); actionBar.addComponents(actionCancel, actionForce, actionForceQuit); return actionBar; }
From source file:org.eclipse.hawkbit.ui.management.targettable.TargetBulkUpdateWindowLayout.java
License:Open Source License
private Button getCloseButton() { final Button closeBtn = SPUIComponentProvider.getButton(UIComponentIdProvider.BULK_UPLOAD_CLOSE_BUTTON_ID, "", "", "", true, FontAwesome.TIMES, SPUIButtonStyleNoBorder.class); closeBtn.addStyleName(ValoTheme.BUTTON_BORDERLESS); closeBtn.addClickListener(event -> closePopup()); return closeBtn; }
From source file:org.eclipse.hawkbit.ui.rollout.rollout.AddUpdateRolloutWindowLayout.java
License:Open Source License
private HorizontalLayout createApprovalLayout() { approveButtonsGroup = new OptionGroup(); approveButtonsGroup.setId(UIComponentIdProvider.ROLLOUT_APPROVAL_OPTIONGROUP_ID); approveButtonsGroup.addStyleName(ValoTheme.OPTIONGROUP_SMALL); approveButtonsGroup.addStyleName(ValoTheme.OPTIONGROUP_HORIZONTAL); approveButtonsGroup.addStyleName("custom-option-group"); approveButtonsGroup.addItems(Rollout.ApprovalDecision.APPROVED, Rollout.ApprovalDecision.DENIED); approveButtonsGroup.setItemCaption(Rollout.ApprovalDecision.APPROVED, i18n.getMessage(APPROVAL_BUTTON_LABEL)); approveButtonsGroup.setItemIcon(Rollout.ApprovalDecision.APPROVED, FontAwesome.CHECK); approveButtonsGroup.setItemCaption(Rollout.ApprovalDecision.DENIED, i18n.getMessage(DENY_BUTTON_LABEL)); approveButtonsGroup.setItemIcon(Rollout.ApprovalDecision.DENIED, FontAwesome.TIMES); approvalRemarkField = createTextField("label.approval.remark", UIComponentIdProvider.ROLLOUT_APPROVAL_REMARK_FIELD_ID, Rollout.APPROVAL_REMARK_MAX_SIZE); approvalRemarkField.setWidth(100.0F, Unit.PERCENTAGE); final HorizontalLayout layout = new HorizontalLayout(approveButtonsGroup, approvalRemarkField); layout.setWidth(100.0F, Unit.PERCENTAGE); layout.setExpandRatio(approvalRemarkField, 1.0F); return layout; }