List of usage examples for com.vaadin.server FontAwesome ENVELOPE
FontAwesome ENVELOPE
To view the source code for com.vaadin.server FontAwesome ENVELOPE.
Click Source Link
From source file:com.hybridbpm.ui.view.TaskListView.java
License:Apache License
public TaskListView() { Design.read(this); Responsive.makeResponsive(panelLayout); tabSheet.setSizeFull();//from w w w .j a v a2s .c o m tabSheet.addTab(todoListLayout, Translate.getMessage("todo"), FontAwesome.ENVELOPE); tabSheet.addTab(doneListLayout, Translate.getMessage("done"), FontAwesome.ARCHIVE); tabSheet.addSelectedTabChangeListener(this); tabSheet.setCloseHandler(this); todoListLayout.refreshTable(); todoListLayout.setTabSheet(tabSheet); doneListLayout.setTabSheet(tabSheet); }
From source file:com.javalego.store.environment.BaseEnvironment.java
@Override public synchronized Collection<RepositoryIcons<Icon>> getRepositoriesIcons() throws LocalizedException { if (repositories != null) { return repositories; }//from w w w . j a v a 2 s . c o m repositories = new ArrayList<RepositoryIcons<Icon>>(); // Iconos de redes sociales usando FonAwesome icons. FontAwesomeIcons fa = FontAwesomeIcons.getCurrent(); fa.addIcon(MenuIcons2.BOOK, FontAwesome.BOOK); fa.addIcon(MenuIcons2.MONITOR, FontAwesome.DESKTOP); fa.addIcon(MenuIcons2.SOURCECODE, FontAwesome.CODE); fa.addIcon(MenuIcons2.GITHUB, FontAwesome.GITHUB); fa.addIcon(MenuIcons2.METRICS, FontAwesome.BAR_CHART_O); fa.addIcon(MenuIcons2.WEB, FontAwesome.GLOBE); fa.addIcon(MenuIcons2.TWITTER, FontAwesome.TWITTER); fa.addIcon(MenuIcons2.FORUM, FontAwesome.USERS); fa.addIcon(MenuIcons2.BLOG, FontAwesome.WORDPRESS); fa.addIcon(MenuIcons2.LINKEDIN, FontAwesome.LINKEDIN); fa.addIcon(MenuIcons2.FACEBOOK, FontAwesome.FACEBOOK); fa.addIcon(MenuIcons2.GOOGLEPLUS, FontAwesome.GOOGLE_PLUS); fa.addIcon(MenuIcons2.EMAIL, FontAwesome.ENVELOPE); fa.addIcon(MenuIcons2.TOOLS, FontAwesome.COGS); fa.addIcon(MenuIcons2.LICENSE, FontAwesome.FILE); // Resto de iconos ResourceIconsVaadin rep = ResourceIconsVaadin.getCurrent(); //rep.setLocale(Locale.US); rep.load(MenuIcons.class, "/menu_icons"); rep.load(MenuIcons2.class, "/menu_icons2"); rep.load(ProviderIcons.class, "/provider_icons"); rep.load(IconEditor.class, "/icons_editor"); repositories.add(fa); repositories.add(rep); return repositories; }
From source file:fr.univlorraine.mondossierweb.views.AssistanceView.java
License:Apache License
/** * Initialise la vue/*from w w w .j a v a2 s . c o m*/ */ @PostConstruct public void init() { //On vrifie le droit d'accder la vue if (userController.isEnseignant()) { // Style setMargin(true); setSpacing(true); // Rcupration de la configuration pour cette vue String docUrl = configController.getAssistanceDocUrl(); String helpdeskUrl = configController.getAssistanceHelpdeskUrl(); String mailContact = configController.getAssistanceContactMail(); // Titre Label title = new Label(applicationContext.getMessage(NAME + ".title", null, getLocale())); title.addStyleName(ValoTheme.LABEL_H1); addComponent(title); // Texte if (StringUtils.hasText(applicationContext.getMessage(NAME + ".text", null, getLocale()))) { addComponent(new Label(applicationContext.getMessage(NAME + ".text", null, getLocale()), ContentMode.HTML)); } // Afficher la pop-up de dmarrage Button popupBtn = new Button(applicationContext.getMessage(NAME + ".btnPopUp", null, getLocale()), FontAwesome.INFO); popupBtn.addStyleName(ValoTheme.BUTTON_LINK); popupBtn.addClickListener(e -> MainUI.getCurrent().afficherMessageIntroEnseignants(true, false)); addComponent(popupBtn); // Accs la documentation if (StringUtils.hasText(docUrl)) { Button docBtn = new Button(applicationContext.getMessage(NAME + ".btnDoc", null, getLocale()), FontAwesome.FILE_TEXT); docBtn.addStyleName(ValoTheme.BUTTON_LINK); BrowserWindowOpener docBwo = new BrowserWindowOpener(docUrl); docBwo.extend(docBtn); addComponent(docBtn); } // Envoyer un ticket if (StringUtils.hasText(helpdeskUrl)) { Button helpDeskBtn = new Button( applicationContext.getMessage(NAME + ".btnHelpdesk", null, getLocale()), FontAwesome.AMBULANCE); helpDeskBtn.addStyleName(ValoTheme.BUTTON_LINK); BrowserWindowOpener helpDeskBwo = new BrowserWindowOpener(helpdeskUrl); helpDeskBwo.extend(helpDeskBtn); addComponent(helpDeskBtn); } // Envoyer un mail if (StringUtils.hasText(mailContact)) { Button contactBtn = new Button(applicationContext.getMessage(NAME + ".btnContact", new Object[] { mailContact }, getLocale()), FontAwesome.ENVELOPE); contactBtn.addStyleName(ValoTheme.BUTTON_LINK); BrowserWindowOpener contactBwo = new BrowserWindowOpener("mailto:" + mailContact); contactBwo.extend(contactBtn); addComponent(contactBtn); } /* Deconnexion */ //Voir si on peut accder l'appli hors ENT, le dtecter, et afficher le bouton dconnexion if (configController.isLogoutCasPropose()) { Button decoBtn = new Button("Dconnexion", FontAwesome.SIGN_OUT); decoBtn.addStyleName(ValoTheme.BUTTON_LINK); decoBtn.addClickListener(e -> { getUI().getPage().setLocation("j_spring_security_logout"); }); addComponent(decoBtn); } } }
From source file:fr.univlorraine.mondossierweb.views.windows.HelpBasicWindow.java
License:Apache License
/** * Cre une fentre de confirmation/*from www. jav a 2 s .co m*/ * @param message * @param titre */ public HelpBasicWindow(String message, String titre, boolean displayLienContact) { /* Style */ setWidth(900, Unit.PIXELS); setModal(true); setResizable(false); setClosable(false); /* Layout */ VerticalLayout layout = new VerticalLayout(); layout.setMargin(true); layout.setSpacing(false); setContent(layout); /* Titre */ setCaption(titre); // Lien de contact if (displayLienContact) { String mailContact = configController.getAssistanceContactMail(); if (StringUtils.hasText(mailContact)) { Button contactBtn = new Button( applicationContext.getMessage(NAME + ".btnContact", null, getLocale()), FontAwesome.ENVELOPE); contactBtn.addStyleName(ValoTheme.BUTTON_LINK); BrowserWindowOpener contactBwo = new BrowserWindowOpener("mailto:" + mailContact); contactBwo.extend(contactBtn); layout.addComponent(contactBtn); layout.setComponentAlignment(contactBtn, Alignment.TOP_RIGHT); } } /* Texte */ Label textLabel = new Label(message, ContentMode.HTML); layout.addComponent(textLabel); /* Boutons */ HorizontalLayout buttonsLayout = new HorizontalLayout(); buttonsLayout.setWidth(100, Unit.PERCENTAGE); buttonsLayout.setSpacing(true); layout.addComponent(buttonsLayout); btnFermer.setCaption(applicationContext.getMessage("helpWindow.btnFermer", null, getLocale())); btnFermer.setIcon(FontAwesome.TIMES); btnFermer.addClickListener(e -> close()); buttonsLayout.addComponent(btnFermer); buttonsLayout.setComponentAlignment(btnFermer, Alignment.MIDDLE_RIGHT); /* Centre la fentre */ center(); }
From source file:lifetime.component.user.AddressLayout.java
License:Apache License
private void initLayout() { // Street, door and floor coordinates HorizontalLayout street = new HorizontalLayout(new Label(address.STREET.toString())); street.setSpacing(true);// w w w. j av a2 s.c o m Label streetIcon = new Label(FontAwesome.ENVELOPE.getHtml(), ContentMode.HTML); HorizontalLayout streetLayout = new HorizontalLayout(streetIcon, street); streetLayout.setSpacing(true); // Postal code and city/locality HorizontalLayout locality = new HorizontalLayout(new Label(address.POSTAL_CODE.toString()), new Label(address.LOCALITY.toString())); locality.setSpacing(true); // Region and country HorizontalLayout country = new HorizontalLayout(new Label(address.COUNTRY.toString())); country.setSpacing(true); // Final address layout layout = new VerticalLayout(streetLayout, locality, country); // add in to base content addComponent(layout); //base.setComponentAlignment(addressLayout, Alignment.MIDDLE_RIGHT); }
From source file:ubu.digit.ui.components.Footer.java
License:Creative Commons License
/** * Aade la informacin del proyecto.//from ww w .ja va 2 s. c om */ private void addInformation() { VerticalLayout information = new VerticalLayout(); information.setMargin(false); information.setSpacing(true); Label subtitle = new Label(INFORMACION); subtitle.setStyleName(SUBTITLE_STYLE); Label version2 = new Label("Versin 2.0 creada por Javier de la Fuente Barrios"); Link link2 = new Link("jfb0019@alu.ubu.es", new ExternalResource("mailto:jfb0019@alu.ubu.es")); link2.setIcon(FontAwesome.ENVELOPE); Label version1 = new Label("Versin 1.0 creada por Beatriz Zurera Martnez-Acitores"); Link link1 = new Link("bzm0001@alu.ubu.es", new ExternalResource("mailto:bzm0001@alu.ubu.es")); link1.setIcon(FontAwesome.ENVELOPE); Label tutor = new Label("Tutorizado por Carlos Lpez Nozal"); Link linkT = new Link("clopezno@ubu.es", new ExternalResource("mailto:clopezno@alu.ubu.es")); linkT.setIcon(FontAwesome.ENVELOPE); Label copyright = new Label("Copyright @ LSI"); information.addComponents(subtitle, version2, link2, version1, link1, tutor, linkT, copyright); content.addComponent(information); }