List of usage examples for com.vaadin.server FontAwesome MINUS_CIRCLE
FontAwesome MINUS_CIRCLE
To view the source code for com.vaadin.server FontAwesome MINUS_CIRCLE.
Click Source Link
From source file:com.esofthead.mycollab.module.project.view.milestone.MilestoneRoadmapViewImpl.java
License:Open Source License
@Override protected void displayView() { initUI();/*w w w .j av a2 s . c o m*/ createBtn.setEnabled(CurrentProjectVariables.canWrite(ProjectRolePermissionCollections.MILESTONES)); baseCriteria = new MilestoneSearchCriteria(); baseCriteria.setProjectIds(new SetSearchField<>(CurrentProjectVariables.getProjectId())); baseCriteria.setOrderFields(Arrays.asList(new SearchCriteria.OrderField("startdate", SearchCriteria.DESC), new SearchCriteria.OrderField("enddate", SearchCriteria.DESC))); displayMilestones(); final MilestoneSearchCriteria tmpCriteria = BeanUtility.deepClone(baseCriteria); tmpCriteria.setStatuses(new SetSearchField<>(OptionI18nEnum.MilestoneStatus.Closed.name())); int totalCloseCount = milestoneService.getTotalCount(tmpCriteria); final CheckBox closeMilestoneSelection = new CheckBox( AppContext.getMessage(MilestoneI18nEnum.WIDGET_CLOSED_PHASE_TITLE) + " (" + totalCloseCount + ")", true); closeMilestoneSelection.setIcon(FontAwesome.MINUS_CIRCLE); filterPanel.addComponent(closeMilestoneSelection); tmpCriteria.setStatuses(new SetSearchField<>(OptionI18nEnum.MilestoneStatus.InProgress.name())); int totalInProgressCount = milestoneService.getTotalCount(tmpCriteria); final CheckBox inProgressMilestoneSelection = new CheckBox( AppContext.getMessage(MilestoneI18nEnum.WIDGET_INPROGRESS_PHASE_TITLE) + " (" + totalInProgressCount + ")", true); inProgressMilestoneSelection.setIcon(FontAwesome.SPINNER); filterPanel.addComponent(inProgressMilestoneSelection); tmpCriteria.setStatuses(new SetSearchField<>(OptionI18nEnum.MilestoneStatus.Future.name())); int totalFutureCount = milestoneService.getTotalCount(tmpCriteria); final CheckBox futureMilestoneSelection = new CheckBox( AppContext.getMessage(MilestoneI18nEnum.WIDGET_FUTURE_PHASE_TITLE) + " (" + totalFutureCount + ")", true); closeMilestoneSelection.addValueChangeListener(new Property.ValueChangeListener() { @Override public void valueChange(Property.ValueChangeEvent valueChangeEvent) { displayMilestones(tmpCriteria, closeMilestoneSelection.getValue(), inProgressMilestoneSelection.getValue(), futureMilestoneSelection.getValue()); } }); inProgressMilestoneSelection.addValueChangeListener(new Property.ValueChangeListener() { @Override public void valueChange(Property.ValueChangeEvent valueChangeEvent) { displayMilestones(tmpCriteria, closeMilestoneSelection.getValue(), inProgressMilestoneSelection.getValue(), futureMilestoneSelection.getValue()); } }); futureMilestoneSelection.addValueChangeListener(new Property.ValueChangeListener() { @Override public void valueChange(Property.ValueChangeEvent valueChangeEvent) { displayMilestones(tmpCriteria, closeMilestoneSelection.getValue(), inProgressMilestoneSelection.getValue(), futureMilestoneSelection.getValue()); } }); futureMilestoneSelection.setIcon(FontAwesome.CLOCK_O); filterPanel.addComponent(futureMilestoneSelection); }
From source file:com.mycollab.mobile.module.project.view.milestone.MilestoneListViewImpl.java
License:Open Source License
@Override protected Component buildToolbar() { Toolbar toolbar = new Toolbar(); closedMilestoneBtn = new Button(UserUIContext.getMessage(MilestoneI18nEnum.WIDGET_CLOSED_PHASE_TITLE), clickEvent -> displayStatus(MilestoneStatus.Closed)); closedMilestoneBtn.setIcon(FontAwesome.MINUS_CIRCLE); toolbar.addComponent(closedMilestoneBtn); inProgressMilestoneBtn = new Button( UserUIContext.getMessage(MilestoneI18nEnum.WIDGET_INPROGRESS_PHASE_TITLE), clickEvent -> displayStatus(MilestoneStatus.InProgress)); inProgressMilestoneBtn.setIcon(FontAwesome.SPINNER); futureMilestoneBtn = new Button(UserUIContext.getMessage(MilestoneI18nEnum.WIDGET_FUTURE_PHASE_TITLE), clickEvent -> displayStatus(MilestoneStatus.Future)); futureMilestoneBtn.setIcon(FontAwesome.CLOCK_O); toolbar.addComponents(closedMilestoneBtn, inProgressMilestoneBtn, futureMilestoneBtn); return toolbar; }
From source file:com.mycollab.module.project.ui.ProjectAssetsManager.java
License:Open Source License
public static FontAwesome getMilestoneStatus(String status) { if (MilestoneStatus.Closed.name().equals(status)) { return FontAwesome.MINUS_CIRCLE; } else if (MilestoneStatus.InProgress.name().equals(status)) { return FontAwesome.CLOCK_O; } else {//from ww w .j av a 2 s . c o m return FontAwesome.SPINNER; } }
From source file:com.mycollab.module.project.ui.ProjectAssetsUtil.java
License:Open Source License
public static FontAwesome getPhaseIcon(String status) { if (MilestoneStatus.Closed.name().equals(status)) { return FontAwesome.MINUS_CIRCLE; } else if (MilestoneStatus.Future.name().equals(status)) { return FontAwesome.CLOCK_O; } else {// w w w . java 2 s . c o m return FontAwesome.SPINNER; } }
From source file:com.mycollab.module.project.view.milestone.MilestoneRoadmapViewImpl.java
License:Open Source License
private void displayWidget() { final MilestoneSearchCriteria tmpCriteria = BeanUtility.deepClone(baseCriteria); tmpCriteria.setStatuses(new SetSearchField<>(MilestoneStatus.Closed.name())); int totalCloseCount = milestoneService.getTotalCount(tmpCriteria); closeMilestoneSelection.setCaption(String.format("%s (%d)", UserUIContext.getMessage(MilestoneI18nEnum.WIDGET_CLOSED_PHASE_TITLE), totalCloseCount)); closeMilestoneSelection.setIcon(FontAwesome.MINUS_CIRCLE); filterPanel.addComponent(closeMilestoneSelection); tmpCriteria.setStatuses(new SetSearchField<>(MilestoneStatus.InProgress.name())); int totalInProgressCount = milestoneService.getTotalCount(tmpCriteria); inProgressMilestoneSelection.setCaption(String.format("%s (%d)", UserUIContext.getMessage(MilestoneI18nEnum.WIDGET_INPROGRESS_PHASE_TITLE), totalInProgressCount)); inProgressMilestoneSelection.setIcon(FontAwesome.SPINNER); filterPanel.addComponent(inProgressMilestoneSelection); tmpCriteria.setStatuses(new SetSearchField<>(MilestoneStatus.Future.name())); int totalFutureCount = milestoneService.getTotalCount(tmpCriteria); futureMilestoneSelection.setCaption(String.format("%s (%d)", UserUIContext.getMessage(MilestoneI18nEnum.WIDGET_FUTURE_PHASE_TITLE), totalFutureCount)); }
From source file:com.toptal.ui.CrudToolbar.java
License:Open Source License
/** * Ctor.//from w w w . j a va 2 s .c o m * @param crud Crud implementation. * @param components Additional components. */ public CrudToolbar(final Crud crud, final Component... components) { super(); this.add = new MButton(FontAwesome.PLUS_CIRCLE, e -> crud.add()); this.edit = new MButton(FontAwesome.PENCIL_SQUARE_O, e -> crud.edit()); this.delete = new MButton(FontAwesome.MINUS_CIRCLE, e -> crud.delete()); this.refresh = new MButton(FontAwesome.REFRESH, e -> crud.update()); this.addComponents(this.add, this.edit, this.delete, this.refresh); this.addComponents(components); this.setEditAndDeleteEnabled(false); }
From source file:lifetime.component.timeline.TimelineMenu.java
License:Apache License
@Override protected void addControls() { profileButton = new BackToProfileButton(username, getLanguage()); zoomIn = new LifetimeButtonLink(username, getLanguage(), "Zoon In", FontAwesome.PLUS_CIRCLE); zoomOut = new LifetimeButtonLink(username, getLanguage(), "Zoon Out", FontAwesome.MINUS_CIRCLE); addControl(profileButton);// www .ja va 2s . c om addControl(zoomIn); addControl(zoomOut); }