List of usage examples for com.vaadin.server FontAwesome CODE
FontAwesome CODE
To view the source code for com.vaadin.server FontAwesome CODE.
Click Source Link
From source file:com.etest.view.systemadministration.faculty.FacultyFormWindow.java
FormLayout buildForms() {
FormLayout form = new FormLayout();
form.setWidth("100%");
form.setSpacing(true);//from www . j a v a 2 s . co m
form.setMargin(true);
firstname.setWidth("100%");
firstname.setIcon(FontAwesome.INFO);
firstname.setRequired(true);
firstname.addStyleName(ValoTheme.TEXTFIELD_SMALL);
form.addComponent(firstname);
middlename.setWidth("100%");
middlename.setIcon(FontAwesome.INFO);
middlename.setRequired(true);
middlename.addStyleName(ValoTheme.TEXTFIELD_SMALL);
form.addComponent(middlename);
lastname.setWidth("100%");
lastname.setIcon(FontAwesome.INFO);
lastname.setRequired(true);
lastname.addStyleName(ValoTheme.TEXTFIELD_SMALL);
form.addComponent(lastname);
userType.setCaption("User Type: ");
userType.setIcon(FontAwesome.USER_MD);
userType.setRequired(true);
form.addComponent(userType);
username.setWidth("100%");
username.setIcon(FontAwesome.USER);
username.setRequired(true);
username.addStyleName(ValoTheme.TEXTFIELD_SMALL);
form.addComponent(username);
password1.setWidth("100%");
password1.setIcon(FontAwesome.CODE);
password1.setRequired(true);
password1.addStyleName(ValoTheme.TEXTFIELD_SMALL);
form.addComponent(password1);
password2.setWidth("100%");
password2.setIcon(FontAwesome.CODE);
password2.setRequired(true);
password2.addStyleName(ValoTheme.TEXTFIELD_SMALL);
form.addComponent(password2);
facultyBtn.setCaption(getButtonCaption());
facultyBtn.setWidth("100%");
facultyBtn.addStyleName(ValoTheme.BUTTON_PRIMARY);
facultyBtn.addStyleName(ValoTheme.BUTTON_SMALL);
facultyBtn.addClickListener(buttonClickListener);
form.addComponent(facultyBtn);
if (getFacultyId() != 0) {
Users u = fs.getFacultyInfoById(getFacultyId());
firstname.setValue(u.getFirstname());
middlename.setValue(u.getMiddlename());
lastname.setValue(u.getLastname());
username.setValue(u.getUsername_());
userType.setValue(CommonVariableMap.getFacultyUserType(u.getUserType()));
password1.setValue(u.getPassword_());
password2.setValue(u.getPassword_());
}
return form;
}
From source file:com.javalego.store.environment.BaseEnvironment.java
@Override public synchronized Collection<RepositoryIcons<Icon>> getRepositoriesIcons() throws LocalizedException { if (repositories != null) { return repositories; }//w w w . j a v a2s . c om 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:com.terralcode.frontend.vista.widgets.alumno.AlumnoVista.java
private void buildAyudasTab() { VerticalLayout layoutTabAyudas = new VerticalLayout(); manutencionField = new OptionGroup("Manutencion"); manutencionField.addItem(Boolean.TRUE); manutencionField.setItemCaption(Boolean.TRUE, "Si"); manutencionField.addItem(Boolean.FALSE); manutencionField.setItemCaption(Boolean.FALSE, "No"); manutencionField.addStyleName("horizontal"); transporteField = new OptionGroup("Transporte"); transporteField.addItem(Boolean.TRUE); transporteField.setItemCaption(Boolean.TRUE, "Si"); transporteField.addItem(Boolean.FALSE); transporteField.setItemCaption(Boolean.FALSE, "No"); transporteField.addStyleName("horizontal"); alojamientoField = new OptionGroup("Alojamiento"); alojamientoField.addItem(Boolean.TRUE); alojamientoField.setItemCaption(Boolean.TRUE, "Si"); alojamientoField.addItem(Boolean.FALSE); alojamientoField.setItemCaption(Boolean.FALSE, "No"); alojamientoField.addStyleName("horizontal"); layoutTabAyudas.addComponent(manutencionField); layoutTabAyudas.addComponent(transporteField); layoutTabAyudas.addComponent(alojamientoField); tabDatos.addTab(layoutTabAyudas, "Ayudas", FontAwesome.CODE); }