List of usage examples for com.vaadin.server FontAwesome ARROW_DOWN
FontAwesome ARROW_DOWN
To view the source code for com.vaadin.server FontAwesome ARROW_DOWN.
Click Source Link
From source file:com.esofthead.mycollab.mobile.module.project.view.bug.BugPriorityComboBox.java
License:Open Source License
public BugPriorityComboBox() { super();//from w ww .jav a 2s. c o m this.setNullSelectionAllowed(false); this.setCaption(null); this.loadData(Arrays.asList(OptionI18nEnum.bug_priorities)); this.setItemIcon(BugPriority.Blocker.name(), FontAwesome.ARROW_UP); this.setItemIcon(BugPriority.Critical.name(), FontAwesome.ARROW_UP); this.setItemIcon(BugPriority.Major.name(), FontAwesome.ARROW_UP); this.setItemIcon(BugPriority.Minor.name(), FontAwesome.ARROW_DOWN); this.setItemIcon(BugPriority.Trivial.name(), FontAwesome.ARROW_DOWN); }
From source file:com.esofthead.mycollab.module.project.ui.ProjectAssetsUtil.java
License:Open Source License
public static void main(String[] args) { System.out.println(FontAwesome.ARROW_DOWN.getHtml()); }
From source file:com.esofthead.mycollab.module.project.view.bug.components.BugPriorityComboBox.java
License:Open Source License
public BugPriorityComboBox() { super();// w w w.j a v a2 s . co m this.setNullSelectionAllowed(false); this.setCaption(null); this.loadData(Arrays.asList(OptionI18nEnum.bug_priorities)); this.setItemIcon(BugPriority.Blocker.name(), FontAwesome.ARROW_UP); this.setItemIcon(BugPriority.Critical.name(), FontAwesome.ARROW_UP); this.setItemIcon(BugPriority.Major.name(), FontAwesome.ARROW_UP); this.setItemIcon(BugPriority.Minor.name(), FontAwesome.ARROW_DOWN); this.setItemIcon(BugPriority.Trivial.name(), FontAwesome.ARROW_DOWN); this.setItemStyleGenerator(new ItemStyleGenerator() { @Override public String getStyle(ComboBox source, Object itemId) { if (itemId != null) { return String.format("bug-%s", itemId.toString().toLowerCase()); } return null; } }); }
From source file:com.esofthead.mycollab.module.project.view.task.components.TaskPriorityComboBox.java
License:Open Source License
public TaskPriorityComboBox() { this.setNullSelectionAllowed(false); this.setWidth("150px"); this.loadData(Arrays.asList(TaskPriority.Urgent, TaskPriority.High, TaskPriority.Medium, TaskPriority.Low, TaskPriority.None));//from www .jav a 2 s. com this.setItemIcon(TaskPriority.Urgent.name(), FontAwesome.ARROW_UP); this.setItemIcon(TaskPriority.High.name(), FontAwesome.ARROW_UP); this.setItemIcon(TaskPriority.Medium.name(), FontAwesome.ARROW_UP); this.setItemIcon(TaskPriority.Low.name(), FontAwesome.ARROW_DOWN); this.setItemIcon(TaskPriority.None.name(), FontAwesome.ARROW_DOWN); this.setItemStyleGenerator(new ItemStyleGenerator() { @Override public String getStyle(ComboBox source, Object itemId) { if (itemId != null) { return String.format("task-%s", itemId.toString().toLowerCase()); } return null; } }); }
From source file:com.foc.vaadin.gui.layouts.validationLayout.FVStageLayout_Button.java
License:Apache License
public void buttonClicked() { FVValidationLayout vLayout = getValidationLayout(); if (vLayout != null) { vLayout.setVisible_WorkflowConsole(!vLayout.isVisible_WorkflowConsole()); vLayout.setVisible_LogLayout(!vLayout.isVisible_LogLayout()); if (vLayout.isVisible_WorkflowConsole()) { setIcon(FontAwesome.ARROW_DOWN); } else {/*from w w w . j a v a 2 s .com*/ setIcon(FontAwesome.ARROW_UP); } } }
From source file:com.hybridbpm.ui.component.bpm.TaskLayout.java
License:Apache License
public TaskLayout(String taskId, String processName, String taskName, boolean showHeader) { this.taskId = taskId; this.processName = processName; this.taskName = taskName; this.showHeader = showHeader; Responsive.makeResponsive(this); btnAccept.setIcon(FontAwesome.CHECK); btnEscalate.setIcon(FontAwesome.ARROW_UP); btnDelegate.setIcon(FontAwesome.ARROW_DOWN); btnSchedule.setIcon(FontAwesome.CALENDAR); btnSave.setIcon(FontAwesome.SAVE);/*from w w w . j av a 2 s . com*/ btnSend.setIcon(FontAwesome.SEND); // btnClose.setIcon(FontAwesome.TIMES); btnSend.setStyleName(ValoTheme.BUTTON_PRIMARY); btnAccept.addStyleName(ValoTheme.BUTTON_SMALL); btnEscalate.addStyleName(ValoTheme.BUTTON_SMALL); btnDelegate.addStyleName(ValoTheme.BUTTON_SMALL); btnSchedule.addStyleName(ValoTheme.BUTTON_SMALL); btnSave.addStyleName(ValoTheme.BUTTON_SMALL); btnSend.addStyleName(ValoTheme.BUTTON_SMALL); btnClose.addStyleName(ValoTheme.BUTTON_SMALL); priorityMenubar.setStyleName(ValoTheme.MENUBAR_SMALL); // buttonBar.setWidth(100, Unit.PERCENTAGE); buttonBar.setSpacing(true); buttonBar.addStyleName("toolbar"); // buttonBar.setExpandRatio(btnAccept, 1f); // buttonBar.setComponentAlignment(priorityMenubar, Alignment.MIDDLE_LEFT); buttonBar.setComponentAlignment(btnAccept, Alignment.MIDDLE_RIGHT); // buttonBar.setComponentAlignment(btnEscalate, Alignment.MIDDLE_RIGHT); // buttonBar.setComponentAlignment(btnDelegate, Alignment.MIDDLE_RIGHT); buttonBar.setComponentAlignment(btnSchedule, Alignment.MIDDLE_RIGHT); buttonBar.setComponentAlignment(btnSave, Alignment.MIDDLE_RIGHT); buttonBar.setComponentAlignment(btnSend, Alignment.MIDDLE_RIGHT); buttonBar.setComponentAlignment(btnClose, Alignment.MIDDLE_RIGHT); tabSheet.setStyleName(ValoTheme.TABSHEET_COMPACT_TABBAR); tabSheet.setStyleName(ValoTheme.TABSHEET_FRAMED); tabSheet.setSizeFull(); setSizeFull(); setSpacing(true); if (showHeader) { addComponent(taskFormHeader); } addComponent(buttonBar); setComponentAlignment(buttonBar, Alignment.MIDDLE_RIGHT); addComponent(tabSheet); setExpandRatio(tabSheet, 1f); loadForm(); }
From source file:com.mycollab.module.project.ui.components.PriorityComboBox.java
License:Open Source License
public PriorityComboBox() { this.setNullSelectionAllowed(false); this.setWidth("150px"); this.loadData(Arrays.asList(Priority.Urgent, Priority.High, Priority.Medium, Priority.Low, Priority.None)); this.setItemIcon(Priority.Urgent.name(), FontAwesome.ARROW_UP); this.setItemIcon(Priority.High.name(), FontAwesome.ARROW_UP); this.setItemIcon(Priority.Medium.name(), FontAwesome.ARROW_UP); this.setItemIcon(Priority.Low.name(), FontAwesome.ARROW_DOWN); this.setItemIcon(Priority.None.name(), FontAwesome.ARROW_DOWN); this.setItemStyleGenerator((source, itemId) -> { if (itemId != null) { return String.format("task-%s", itemId.toString().toLowerCase()); }//from w ww .ja va2 s. c om return null; }); }
From source file:com.mycollab.module.project.ui.ProjectAssetsManager.java
License:Open Source License
public static FontAwesome getPriority(String priority) { if (Priority.Urgent.name().equals(priority) || Priority.High.name().equals(priority) || Priority.Medium.name().equals(priority) || priority == null) { return FontAwesome.ARROW_UP; } else {//from w w w .j a va 2s .c o m return FontAwesome.ARROW_DOWN; } }
From source file:org.eclipse.hawkbit.ui.artifacts.upload.UploadDropAreaLayout.java
License:Open Source License
private VerticalLayout createDropAreaLayout() { final VerticalLayout dropAreaLayout = new VerticalLayout(); final Label dropHereLabel = new Label(i18n.getMessage(UIMessageIdProvider.LABEL_DROP_AREA_UPLOAD)); dropHereLabel.setWidth(null);/*w ww.ja v a2s. co m*/ final Label dropIcon = new Label(FontAwesome.ARROW_DOWN.getHtml(), ContentMode.HTML); dropIcon.addStyleName("drop-icon"); dropIcon.setWidth(null); dropAreaLayout.addComponent(dropIcon); dropAreaLayout.setComponentAlignment(dropIcon, Alignment.TOP_CENTER); dropAreaLayout.addComponent(dropHereLabel); dropAreaLayout.setComponentAlignment(dropHereLabel, Alignment.TOP_CENTER); uploadButtonLayout.setWidth(null); uploadButtonLayout.addStyleName("upload-button"); dropAreaLayout.addComponent(uploadButtonLayout); dropAreaLayout.setComponentAlignment(uploadButtonLayout, Alignment.BOTTOM_CENTER); dropAreaLayout.setSizeFull(); dropAreaLayout.setStyleName("upload-drop-area-layout-info"); dropAreaLayout.setSpacing(false); return dropAreaLayout; }
From source file:org.eclipse.hawkbit.ui.artifacts.upload.UploadLayout.java
License:Open Source License
private static VerticalLayout createDropAreaLayout() { final VerticalLayout dropAreaLayout = new VerticalLayout(); final Label dropHereLabel = new Label("Drop files to upload"); dropHereLabel.setWidth(null);//from w ww. j a va 2 s . co m final Label dropIcon = new Label(FontAwesome.ARROW_DOWN.getHtml(), ContentMode.HTML); dropIcon.addStyleName("drop-icon"); dropIcon.setWidth(null); dropAreaLayout.addComponent(dropIcon); dropAreaLayout.setComponentAlignment(dropIcon, Alignment.BOTTOM_CENTER); dropAreaLayout.addComponent(dropHereLabel); dropAreaLayout.setComponentAlignment(dropHereLabel, Alignment.TOP_CENTER); dropAreaLayout.setSizeFull(); dropAreaLayout.setStyleName("upload-drop-area-layout-info"); dropAreaLayout.setSpacing(false); return dropAreaLayout; }