List of usage examples for com.vaadin.server FontAwesome CLIPBOARD
FontAwesome CLIPBOARD
To view the source code for com.vaadin.server FontAwesome CLIPBOARD.
Click Source Link
From source file:com.mycollab.module.project.view.settings.VersionReadViewImpl.java
License:Open Source License
@Override protected void onPreviewItem() { activityComponent.loadActivities("" + beanItem.getId()); dateInfoComp.displayEntryDateTime(beanItem); if (tagViewComponent != null) { tagViewComponent.display(ProjectTypeConstants.BUG_VERSION, beanItem.getId()); }// www .jav a2 s. c o m if (versionTimeLogComp != null) { versionTimeLogComp.displayTime(beanItem); } if (StatusI18nEnum.Open.name().equals(beanItem.getStatus())) { removeLayoutStyleName(WebThemes.LINK_COMPLETED); quickActionStatusBtn.setCaption(UserUIContext.getMessage(GenericI18Enum.BUTTON_CLOSE)); quickActionStatusBtn.setIcon(FontAwesome.ARCHIVE); } else { addLayoutStyleName(WebThemes.LINK_COMPLETED); quickActionStatusBtn.setCaption(UserUIContext.getMessage(GenericI18Enum.BUTTON_REOPEN)); quickActionStatusBtn.setIcon(FontAwesome.CLIPBOARD); } }
From source file:com.mycollab.module.project.view.settings.VersionReadViewImpl.java
License:Open Source License
@Override protected HorizontalLayout createButtonControls() { ProjectPreviewFormControlsGenerator<Version> versionPreviewForm = new ProjectPreviewFormControlsGenerator<>( previewForm);// w w w . ja v a 2 s.c o m HorizontalLayout topPanel = versionPreviewForm .createButtonControls(ProjectRolePermissionCollections.VERSIONS); quickActionStatusBtn = new MButton("", clickEvent -> { if (StatusI18nEnum.Closed.name().equals(beanItem.getStatus())) { beanItem.setStatus(StatusI18nEnum.Open.name()); VersionReadViewImpl.this.removeLayoutStyleName(WebThemes.LINK_COMPLETED); quickActionStatusBtn.setCaption(UserUIContext.getMessage(GenericI18Enum.BUTTON_CLOSE)); quickActionStatusBtn.setIcon(FontAwesome.ARCHIVE); } else { beanItem.setStatus(StatusI18nEnum.Closed.name()); VersionReadViewImpl.this.addLayoutStyleName(WebThemes.LINK_COMPLETED); quickActionStatusBtn.setCaption(UserUIContext.getMessage(GenericI18Enum.BUTTON_REOPEN)); quickActionStatusBtn.setIcon(FontAwesome.CLIPBOARD); } VersionService service = AppContextUtil.getSpringBean(VersionService.class); service.updateSelectiveWithSession(beanItem, UserUIContext.getUsername()); }).withStyleName(WebThemes.BUTTON_ACTION) .withVisible(CurrentProjectVariables.canWrite(ProjectRolePermissionCollections.VERSIONS)); versionPreviewForm.insertToControlBlock(quickActionStatusBtn); return topPanel; }