List of usage examples for com.vaadin.server FontAwesome REPLY
FontAwesome REPLY
To view the source code for com.vaadin.server FontAwesome REPLY.
Click Source Link
From source file:com.hybridbpm.ui.component.comment.CommentViewLayout.java
License:Apache License
public CommentViewLayout(Comment c) { this.comment = c; Design.read(this); bodyField.setContentMode(ContentMode.HTML); bodyField.setValue(comment.getBody()); prettyTime.setLocale(HybridbpmUI.getCurrent().getLocale()); createDate.setValue(prettyTime.format(comment.getCreateDate())); createDate.setSizeUndefined();//from w w w. j ava 2 s. c o m btnReply.setIcon(FontAwesome.REPLY); btnReply.addClickListener(this); setUserImage(); addChildren(); }
From source file:org.eclipse.hawkbit.ui.common.confirmwindow.layout.AbstractConfirmationWindowLayout.java
License:Open Source License
protected Button createDiscardButton(final Object itemId, final ClickListener clickListener) { final Button deletesDsIcon = SPUIComponentProvider.getButton("", "", SPUILabelDefinitions.DISCARD, ValoTheme.BUTTON_TINY + " " + SPUIStyleDefinitions.REDICON, true, FontAwesome.REPLY, SPUIButtonStyleSmallNoBorder.class); deletesDsIcon.setData(itemId);//from w w w . j a v a 2s . c o m deletesDsIcon.setImmediate(true); deletesDsIcon.addClickListener(clickListener); return deletesDsIcon; }
From source file:org.eclipse.hawkbit.ui.distributions.footer.DistributionsConfirmationWindowLayout.java
License:Open Source License
private ConfirmationTab createSMtypeDeleteConfirmationTab() { final ConfirmationTab tab = new ConfirmationTab(); tab.getConfirmAll().setId(UIComponentIdProvider.SAVE_DELETE_SW_MODULE_TYPE); tab.getConfirmAll().setIcon(FontAwesome.TRASH_O); tab.getConfirmAll().setCaption(i18n.getMessage(SPUILabelDefinitions.BUTTON_DELETE_ALL)); tab.getConfirmAll().addClickListener(event -> deleteSMtypeAll(tab)); tab.getDiscardAll().setCaption(i18n.getMessage(SPUILabelDefinitions.BUTTON_DISCARD_ALL)); tab.getDiscardAll().setId(UIComponentIdProvider.DISCARD_SW_MODULE_TYPE); tab.getDiscardAll().addClickListener(event -> discardSMtypeAll(tab)); // Add items container to the table. tab.getTable().setContainerDataSource(getSWModuleTypeTableContainer()); // Add the discard action column tab.getTable().addGeneratedColumn(DISCARD, (source, itemId, columnId) -> { final StringBuilder style = new StringBuilder(ValoTheme.BUTTON_TINY); style.append(' '); style.append(SPUIStyleDefinitions.REDICON); final Button deleteIcon = SPUIComponentProvider.getButton("", "", SPUILabelDefinitions.DISCARD, style.toString(), true, FontAwesome.REPLY, SPUIButtonStyleSmallNoBorder.class); deleteIcon.setData(itemId);// w ww . ja v a 2 s . co m deleteIcon.setImmediate(true); deleteIcon.addClickListener(event -> discardSoftwareTypeDelete( (String) ((Button) event.getComponent()).getData(), itemId, tab)); return deleteIcon; }); tab.getTable().setVisibleColumns(SW_MODULE_TYPE_NAME, DISCARD); tab.getTable().setColumnHeaders(i18n.getMessage("header.first.delete.swmodule.type.table"), i18n.getMessage("header.second.delete.swmodule.type.table")); tab.getTable().setColumnExpandRatio(SW_MODULE_TYPE_NAME, 2); tab.getTable().setColumnExpandRatio(SW_DISCARD_CHGS, SPUIDefinitions.DISCARD_COLUMN_WIDTH); tab.getTable().setColumnAlignment(SW_DISCARD_CHGS, Align.CENTER); return tab; }
From source file:org.eclipse.hawkbit.ui.distributions.footer.DistributionsConfirmationWindowLayout.java
License:Open Source License
private ConfirmationTab createAssignSWModuleConfirmationTab() { assignmnetTab = new ConfirmationTab(); assignmnetTab.getConfirmAll().setId(UIComponentIdProvider.SAVE_ASSIGNMENT); assignmnetTab.getConfirmAll().setIcon(FontAwesome.SAVE); assignmnetTab.getConfirmAll().setCaption(i18n.getMessage("button.assign.all")); assignmnetTab.getConfirmAll().addClickListener(event -> saveAllAssignments(assignmnetTab)); assignmnetTab.getDiscardAll().setCaption(i18n.getMessage(SPUILabelDefinitions.BUTTON_DISCARD_ALL)); assignmnetTab.getDiscardAll().setId(UIComponentIdProvider.DISCARD_ASSIGNMENT); assignmnetTab.getDiscardAll().addClickListener(event -> discardAllSWAssignments(assignmnetTab)); // Add items container to the table. assignmnetTab.getTable().setContainerDataSource(getSWAssignmentsTableContainer()); // Add the discard action column assignmnetTab.getTable().addGeneratedColumn(DISCARD, (source, itemId, columnId) -> { final StringBuilder style = new StringBuilder(ValoTheme.BUTTON_TINY); style.append(' '); style.append(SPUIStyleDefinitions.REDICON); final Button deleteIcon = SPUIComponentProvider.getButton("", "", SPUILabelDefinitions.DISCARD, style.toString(), true, FontAwesome.REPLY, SPUIButtonStyleSmallNoBorder.class); deleteIcon.setData(itemId);//from w w w. j a v a2s.com deleteIcon.setImmediate(true); deleteIcon.addClickListener(event -> discardSWAssignment( (String) ((Button) event.getComponent()).getData(), itemId, assignmnetTab)); return deleteIcon; }); assignmnetTab.getTable().setVisibleColumns(DIST_NAME, SOFTWARE_MODULE_NAME, DISCARD); assignmnetTab.getTable().setColumnHeaders(i18n.getMessage("header.dist.first.assignment.table"), i18n.getMessage("header.dist.second.assignment.table"), i18n.getMessage("header.third.assignment.table")); assignmnetTab.getTable().setColumnExpandRatio(DIST_NAME, 2); assignmnetTab.getTable().setColumnExpandRatio(SOFTWARE_MODULE_NAME, 2); assignmnetTab.getTable().setColumnExpandRatio(DISCARD, SPUIDefinitions.DISCARD_COLUMN_WIDTH); assignmnetTab.getTable().setColumnAlignment(DISCARD, Align.CENTER); return assignmnetTab; }