List of usage examples for com.vaadin.server FontAwesome USER
FontAwesome USER
To view the source code for com.vaadin.server FontAwesome USER.
Click Source Link
From source file:com.hybridbpm.ui.component.bpm.designer.ElementModelLayout.java
License:Apache License
public void setStyleSelected(boolean selected) { button.addStyleName("element-" + (selected ? "selected" : "unselected")); if (taskModel.getTaskType().equals(TaskModel.TASK_TYPE.AUTOMATIC)) { button.setIcon(FontAwesome.COG); } else if (taskModel.getTaskType().equals(TaskModel.TASK_TYPE.HUMAN)) { button.setIcon(FontAwesome.USER); }/*from w w w . j a v a2 s . com*/ }
From source file:com.hybridbpm.ui.view.AccessView.java
License:Apache License
public AccessView() { Design.read(this); Responsive.makeResponsive(panelLayout); tabSheet.addTab(usersLayout, "Users", FontAwesome.USER); tabSheet.addTab(userGroupsLayout, "User Group", FontAwesome.SITEMAP); tabSheet.addTab(groupsLayout, "Group", FontAwesome.USERS); tabSheet.addTab(roleGroupsLayout, "Group Role", FontAwesome.SITEMAP); tabSheet.addTab(rolesLayout, "Roles", FontAwesome.USERS); tabSheet.addSelectedTabChangeListener(this); usersLayout.refreshTable();/* w w w .j ava 2s. c o m*/ }
From source file:com.hybridbpm.ui.view.LoginView.java
License:Apache License
private void buildLoginForm() { Responsive.makeResponsive(loginPanel); loginPanel.setSizeUndefined();/*from ww w . j a v a2s. co m*/ loginPanel.setSpacing(true); loginPanel.addStyleName("login-panel"); labels.addStyleName("labels"); welcome.setSizeUndefined(); welcome.addStyleName(ValoTheme.LABEL_H4); welcome.addStyleName(ValoTheme.LABEL_LIGHT); title.setSizeUndefined(); title.addStyleName(ValoTheme.LABEL_H3); title.addStyleName(ValoTheme.LABEL_COLORED); fields.setSpacing(true); fields.addStyleName("fields"); username.setIcon(FontAwesome.USER); username.addStyleName(ValoTheme.TEXTFIELD_INLINE_ICON); username.setNullRepresentation(""); password.setIcon(FontAwesome.LOCK); password.addStyleName(ValoTheme.TEXTFIELD_INLINE_ICON); signin.addStyleName(ValoTheme.BUTTON_PRIMARY); signin.setClickShortcut(ShortcutAction.KeyCode.ENTER); signin.focus(); fields.setComponentAlignment(signin, Alignment.BOTTOM_LEFT); signin.addClickListener((Button.ClickEvent event) -> { HybridbpmUI.getCurrent().login(username.getValue(), password.getValue(), rememberMe.getValue()); }); }
From source file:com.ies.schoolos.ui.mobile.info.layout.PersonalLayout.java
private void spouseGroup() { spouseGroup = new VerticalComponentGroup(); spouseGroup.setSizeUndefined();/*from ww w . j a v a 2 s . com*/ addTab(spouseGroup, "", FontAwesome.USER); sPeopleIdType = new OptionGroup("", new PeopleIdType()); sPeopleIdType.setItemCaptionPropertyId("name"); sPeopleIdType.setImmediate(true); sPeopleIdType.setNullSelectionAllowed(false); sPeopleIdType.setWidth("-1px"); sPeopleIdType.setHeight("-1px"); spouseGroup.addComponent(sPeopleIdType); sPeopleid = new TextField(""); sPeopleid.setInputPrompt(""); sPeopleid.setImmediate(false); sPeopleid.setWidth("-1px"); sPeopleid.setHeight("-1px"); sPeopleid.setNullRepresentation(""); //sPeopleid.addValidator(new StringLengthValidator("?", 13, 20, true)); sPeopleid.addTextChangeListener(new TextChangeListener() { private static final long serialVersionUID = 1L; @Override public void textChange(TextChangeEvent event) { if (event.getText() != null) { if (event.getText().length() >= 13) { fSqlContainer.addContainerFilter(new Equal(FamilySchema.PEOPLE_ID, event.getText())); if (fSqlContainer.size() > 0) { Item item = fSqlContainer.getItem(fSqlContainer.getIdByIndex(0)); spouseBinder.setItemDataSource(item); pkStore[2] = item.getItemProperty(FamilySchema.FAMILY_ID).getValue(); spouseBinder.setEnabled(false); isDuplicateSpouse = true; } fSqlContainer.removeAllContainerFilters(); } } } }); spouseGroup.addComponent(sPeopleid); sPrename = new NativeSelect("", new Prename()); //sPrename.setInputPrompt("??"); sPrename.setItemCaptionPropertyId("name"); sPrename.setImmediate(true); sPrename.setNullSelectionAllowed(false); sPrename.setRequired(true); sPrename.setWidth("-1px"); sPrename.setHeight("-1px"); //sPrename.setFilteringMode(FilteringMode.CONTAINS); spouseGroup.addComponent(sPrename); sFirstname = new TextField(""); sFirstname.setInputPrompt(""); sFirstname.setImmediate(false); sFirstname.setRequired(true); sFirstname.setWidth("-1px"); sFirstname.setHeight("-1px"); sFirstname.setNullRepresentation(""); spouseGroup.addComponent(sFirstname); sLastname = new TextField("?"); sLastname.setInputPrompt("?"); sLastname.setImmediate(false); sLastname.setRequired(true); sLastname.setWidth("-1px"); sLastname.setHeight("-1px"); sLastname.setNullRepresentation(""); spouseGroup.addComponent(sLastname); sFirstnameNd = new TextField("?"); sFirstnameNd.setInputPrompt("?"); sFirstnameNd.setImmediate(false); sFirstnameNd.setWidth("-1px"); sFirstnameNd.setHeight("-1px"); sFirstnameNd.setNullRepresentation(""); spouseGroup.addComponent(sFirstnameNd); sLastnameNd = new TextField("??"); sLastnameNd.setInputPrompt("??"); sLastnameNd.setImmediate(false); sLastnameNd.setWidth("-1px"); sLastnameNd.setHeight("-1px"); sLastnameNd.setNullRepresentation(""); spouseGroup.addComponent(sLastnameNd); sGender = new OptionGroup("", new Gender()); sGender.setItemCaptionPropertyId("name"); sGender.setImmediate(true); sGender.setNullSelectionAllowed(false); sGender.setRequired(true); sGender.setWidth("-1px"); sGender.setHeight("-1px"); spouseGroup.addComponent(sGender); sReligion = new NativeSelect("", new Religion()); //sReligion.setInputPrompt("??"); sReligion.setItemCaptionPropertyId("name"); sReligion.setImmediate(true); sReligion.setNullSelectionAllowed(false); sReligion.setRequired(true); sReligion.setWidth("-1px"); sReligion.setHeight("-1px"); //sReligion.setFilteringMode(FilteringMode.CONTAINS); spouseGroup.addComponent(sReligion); sRace = new NativeSelect("", new Race()); //sRace.setInputPrompt("??"); sRace.setItemCaptionPropertyId("name"); sRace.setImmediate(true); sRace.setNullSelectionAllowed(false); sRace.setRequired(true); sRace.setWidth("-1px"); sRace.setHeight("-1px"); //sRace.setFilteringMode(FilteringMode.CONTAINS); spouseGroup.addComponent(sRace); sNationality = new NativeSelect("?", new Nationality()); //sNationality.setInputPrompt("??"); sNationality.setItemCaptionPropertyId("name"); sNationality.setImmediate(true); sNationality.setNullSelectionAllowed(false); sNationality.setRequired(true); sNationality.setWidth("-1px"); sNationality.setHeight("-1px"); //sNationality.setFilteringMode(FilteringMode.CONTAINS); spouseGroup.addComponent(sNationality); sBirthDate = new PopupDateField(" ?"); sBirthDate.setInputPrompt("//"); sBirthDate.setImmediate(false); sBirthDate.setWidth("-1px"); sBirthDate.setHeight("-1px"); sBirthDate.setDateFormat("dd/MM/yyyy"); sBirthDate.setLocale(new Locale("th", "TH")); spouseGroup.addComponent(sBirthDate); sTel = new TextField(""); sTel.setInputPrompt(""); sTel.setImmediate(false); sTel.setWidth("-1px"); sTel.setHeight("-1px"); sTel.setNullRepresentation(""); spouseGroup.addComponent(sTel); sMobile = new TextField(""); sMobile.setInputPrompt(""); sMobile.setImmediate(false); sMobile.setWidth("-1px"); sMobile.setHeight("-1px"); sMobile.setNullRepresentation(""); spouseGroup.addComponent(sMobile); sEmail = new TextField(""); sEmail.setInputPrompt(""); sEmail.setImmediate(false); sEmail.setWidth("-1px"); sEmail.setHeight("-1px"); sEmail.setNullRepresentation(""); sEmail.addValidator(new EmailValidator("?")); spouseGroup.addComponent(sEmail); sSalary = new NumberField(""); sSalary.setInputPrompt(""); sSalary.setImmediate(false); sSalary.setWidth("-1px"); sSalary.setHeight("-1px"); sSalary.setNullRepresentation(""); spouseGroup.addComponent(sSalary); sAliveStatus = new NativeSelect("", new AliveStatus()); //sAliveStatus.setInputPrompt("??"); sAliveStatus.setItemCaptionPropertyId("name"); sAliveStatus.setImmediate(true); sAliveStatus.setNullSelectionAllowed(false); sAliveStatus.setRequired(true); sAliveStatus.setWidth("-1px"); sAliveStatus.setHeight("-1px"); //sAliveStatus.setFilteringMode(FilteringMode.CONTAINS); spouseGroup.addComponent(sAliveStatus); sOccupation = new NativeSelect("", new Occupation()); //sOccupation.setInputPrompt("??"); sOccupation.setItemCaptionPropertyId("name"); sOccupation.setImmediate(true); sOccupation.setNullSelectionAllowed(false); sOccupation.setRequired(true); sOccupation.setWidth("-1px"); sOccupation.setHeight("-1px"); //sOccupation.setFilteringMode(FilteringMode.CONTAINS); spouseGroup.addComponent(sOccupation); sJobAddress = new TextArea(""); sJobAddress.setInputPrompt(" "); sJobAddress.setImmediate(false); sJobAddress.setWidth("-1px"); sJobAddress.setHeight("-1px"); sJobAddress.setNullRepresentation(""); spouseGroup.addComponent(sJobAddress); sCurrentAddress = new TextArea(""); sCurrentAddress.setInputPrompt(" "); sCurrentAddress.setImmediate(false); sCurrentAddress.setWidth("-1px"); sCurrentAddress.setHeight("-1px"); sCurrentAddress.setNullRepresentation(""); spouseGroup.addComponent(sCurrentAddress); sCurrentProvinceId = new NativeSelect("", new Province()); //sCurrentProvinceId.setInputPrompt("??"); sCurrentProvinceId.setItemCaptionPropertyId("name"); sCurrentProvinceId.setImmediate(true); sCurrentProvinceId.setNullSelectionAllowed(false); sCurrentProvinceId.setWidth("-1px"); sCurrentProvinceId.setHeight("-1px"); //sCurrentProvinceId.setFilteringMode(FilteringMode.CONTAINS); sCurrentProvinceId.addValueChangeListener(new ValueChangeListener() { private static final long serialVersionUID = 1L; @Override public void valueChange(ValueChangeEvent event) { if (event.getProperty().getValue() != null) sCurrentDistrict.setContainerDataSource( new District(Integer.parseInt(event.getProperty().getValue().toString()))); } }); spouseGroup.addComponent(sCurrentProvinceId); sCurrentDistrict = new NativeSelect("", new Blood()); //sCurrentDistrict.setInputPrompt("??"); sCurrentDistrict.setItemCaptionPropertyId("name"); sCurrentDistrict.setImmediate(true); sCurrentDistrict.setNullSelectionAllowed(false); sCurrentDistrict.setWidth("-1px"); sCurrentDistrict.setHeight("-1px"); //sCurrentDistrict.setFilteringMode(FilteringMode.CONTAINS); sCurrentDistrict.addValueChangeListener(new ValueChangeListener() { private static final long serialVersionUID = 1L; @Override public void valueChange(ValueChangeEvent event) { if (event.getProperty().getValue() != null) { sCurrentCity.setContainerDataSource( new City(Integer.parseInt(event.getProperty().getValue().toString()))); sCurrentPostcode.setContainerDataSource( new Postcode(Integer.parseInt(event.getProperty().getValue().toString()))); } } }); spouseGroup.addComponent(sCurrentDistrict); sCurrentCity = new NativeSelect(""); //sCurrentCity.setInputPrompt("??"); sCurrentCity.setItemCaptionPropertyId("name"); sCurrentCity.setImmediate(true); sCurrentCity.setNullSelectionAllowed(false); sCurrentCity.setWidth("-1px"); sCurrentCity.setHeight("-1px"); //sCurrentCity.setFilteringMode(FilteringMode.CONTAINS); spouseGroup.addComponent(sCurrentCity); sCurrentPostcode = new NativeSelect(""); //sCurrentPostcode.setInputPrompt("??"); sCurrentPostcode.setItemCaptionPropertyId("name"); sCurrentPostcode.setImmediate(true); sCurrentPostcode.setNullSelectionAllowed(false); sCurrentPostcode.setWidth("-1px"); sCurrentPostcode.setHeight("-1px"); //sCurrentPostcode.setFilteringMode(FilteringMode.CONTAINS); spouseGroup.addComponent(sCurrentPostcode); HorizontalLayout buttonLayout = new HorizontalLayout(); buttonLayout.setSpacing(true); buttonLayout.setWidth("100%"); spouseGroup.addComponent(buttonLayout); motherBack = new Button(FontAwesome.ARROW_LEFT); motherBack.setWidth("100%"); motherBack.addClickListener(new ClickListener() { private static final long serialVersionUID = 1L; @Override public void buttonClick(ClickEvent event) { setSelectedTab(motherGroup); } }); buttonLayout.addComponents(motherBack); finish = new Button("?", FontAwesome.SAVE); finish.setWidth("100%"); buttonLayout.addComponents(finish); print = new Button("", FontAwesome.PRINT); print.setVisible(false); print.setWidth("100%"); buttonLayout.addComponents(print); }
From source file:com.kpg.diary.ui.MenuLayout.java
License:Apache License
/** * Builds the menu./* ww w. j a v a 2 s .com*/ * * @param navigator * the navigator * @return the css layout */ private CssLayout buildMenu(Navigator navigator) { // Add items menuItemsMap(); HorizontalLayout top = new HorizontalLayout(); top.setWidth("100%"); top.addStyleName(ValoTheme.MENU_TITLE); top.setDefaultComponentAlignment(Alignment.MIDDLE_LEFT); top.addStyleName(ValoTheme.MENU_TITLE); menu.addComponent(top); // menu.addComponent(createThemeSelect()); menu.addComponent(top); Button showMenu = new Button("Menu", new ClickListener() { @Override public void buttonClick(ClickEvent event) { if (menu.getStyleName().contains("valo-menu-visible")) { menu.removeStyleName("valo-menu-visible"); } else { menu.addStyleName("valo-menu-visible"); } } }); showMenu.addStyleName(ValoTheme.BUTTON_PRIMARY); showMenu.addStyleName(ValoTheme.BUTTON_SMALL); showMenu.addStyleName("valo-menu-toggle"); showMenu.setIcon(FontAwesome.LIST); menu.addComponent(showMenu); Label title = new Label("<h2>Diary</h2>", ContentMode.HTML); title.setSizeUndefined(); top.addComponent(title); top.setExpandRatio(title, 1); menuItemsLayout.setPrimaryStyleName("valo-menuitems"); menu.addComponent(menuItemsLayout); for (final Entry<String, String> item : menuItems.entrySet()) { Button b = new Button(item.getValue(), new ClickListener() { @Override public void buttonClick(ClickEvent event) { navigator.navigateTo(item.getKey()); } }); b.setHtmlContentAllowed(true); b.setPrimaryStyleName(ValoTheme.MENU_ITEM); if (IConstants.NavigationMenu.ADDRESS.getKey().equals(item.getKey())) { b.setIcon(FontAwesome.BOOK); } else if (IConstants.NavigationMenu.PERSON.getKey().equals(item.getKey())) { b.setIcon(FontAwesome.USER); } else { b.setIcon(FontAwesome.APPLE); } menuItemsLayout.addComponent(b); } return menu; }
From source file:com.logicbomb.newschool.MyAppWidgetSet.core.UserDetailsWidget.java
public UserDetailsWidget() { HorizontalLayout h = new HorizontalLayout(); addComponent(h);// ww w . ja va2 s . com h.setSizeFull(); //h.setSpacing(true); Button userPhoto = new Button(); userPhoto.setIcon(FontAwesome.USER); userPhoto.setHeight("100px"); userPhoto.setWidth("100px"); h.addComponent(userPhoto); //h.setComponentAlignment(userPhoto, Alignment.TOP_LEFT); VerticalLayout v = new VerticalLayout(); //v.setStyleName("backColorBlack"); h.addComponent(v); v.setStyleName("v-layout-padding-left"); //h.setComponentAlignment(userPhoto, Alignment.TOP_RIGHT); v.setHeight("106px"); v.setWidth("100px"); // v.setComponentAlignment(userStatus, Alignment.MIDDLE_CENTER); Button editProfile = new Button("Profile"); editProfile.setStyleName("v-button-type3"); editProfile.setIcon(FontAwesome.USER); editProfile.setWidth("100px"); editProfile.setWidth("102px"); v.addComponent(editProfile); //v.setComponentAlignment(editProfile, Alignment.TOP_LEFT); Button settings = new Button("Settings"); settings.setStyleName("v-button-type3"); settings.setIcon(FontAwesome.WRENCH); settings.setWidth("100px"); settings.setWidth("102px"); v.addComponent(settings); //v.setComponentAlignment(editProfile, Alignment.MIDDLE_RIGHT); Button logOut = new Button("Log Out"); logOut.setStyleName("v-button-type3"); logOut.setIcon(FontAwesome.KEY); logOut.setWidth("100px"); logOut.setWidth("102px"); v.addComponent(logOut); //v.setComponentAlignment(editProfile, Alignment.BOTTOM_RIGHT); //v.setComponentAlignment(userStatus, Alignment.MIDDLE_CENTER); }
From source file:com.logicbomb.newschool.MyAppWidgetSet.LoginWidget.java
public LoginWidget() { setMargin(true);/*from w w w .jav a 2 s.c o m*/ setSpacing(true); Panel iPanel = new Panel(); iPanel.addStyleName("backColorWhite"); iPanel.setSizeUndefined(); addComponent(iPanel); TextField iTextField = new TextField("Username"); iTextField.setWidth("300px"); iTextField.setRequired(true); iTextField.setInputPrompt("Your username (eg. joe@email.com)"); iTextField.setIcon(FontAwesome.USER); iTextField.addValidator(new EmailValidator("Username must be an email address")); iTextField.setInvalidAllowed(true); iTextField.focus(); PasswordField iPasswordField = new PasswordField("Password"); iPasswordField.setIcon(FontAwesome.KEY); iPasswordField.setWidth("300px"); iPasswordField.setRequired(true); iPasswordField.setValue(""); iPasswordField.setNullRepresentation(""); Button iButton = new Button("Login"); iButton.addClickListener(new Button.ClickListener() { @Override public void buttonClick(Button.ClickEvent event) { addComponent(new Label("Login Successfully")); } }); FormLayout iFormLayout = new FormLayout(); iFormLayout.setSpacing(true); iFormLayout.setMargin(true); iFormLayout.addComponent(iTextField); iFormLayout.addComponent(iPasswordField); iFormLayout.addComponent(iButton); iPanel.setContent(iFormLayout); }
From source file:com.mycollab.module.crm.ui.components.PeopleInfoComp.java
License:Open Source License
public void displayEntryPeople(ValuedBean bean) { this.removeAllComponents(); this.withMargin(false); Label peopleInfoHeader = new Label( FontAwesome.USER.getHtml() + " " + UserUIContext.getMessage(CrmCommonI18nEnum.SUB_INFO_PEOPLE), ContentMode.HTML);/*w w w . j a v a 2 s . c o m*/ peopleInfoHeader.setStyleName("info-hdr"); this.addComponent(peopleInfoHeader); GridLayout layout = new GridLayout(2, 2); layout.setSpacing(true); layout.setWidth("100%"); layout.setMargin(new MarginInfo(false, false, false, true)); try { Label createdLbl = new Label(UserUIContext.getMessage(CrmCommonI18nEnum.ITEM_CREATED_PEOPLE)); createdLbl.setSizeUndefined(); layout.addComponent(createdLbl, 0, 0); String createdUserName = (String) PropertyUtils.getProperty(bean, "createduser"); String createdUserAvatarId = (String) PropertyUtils.getProperty(bean, "createdUserAvatarId"); String createdUserDisplayName = (String) PropertyUtils.getProperty(bean, "createdUserFullName"); UserLink createdUserLink = new UserLink(createdUserName, createdUserAvatarId, createdUserDisplayName); layout.addComponent(createdUserLink, 1, 0); layout.setColumnExpandRatio(1, 1.0f); Label assigneeLbl = new Label(UserUIContext.getMessage(CrmCommonI18nEnum.ITEM_ASSIGN_PEOPLE)); assigneeLbl.setSizeUndefined(); layout.addComponent(assigneeLbl, 0, 1); String assignUserName = (String) PropertyUtils.getProperty(bean, "assignuser"); String assignUserAvatarId = (String) PropertyUtils.getProperty(bean, "assignUserAvatarId"); String assignUserDisplayName = (String) PropertyUtils.getProperty(bean, "assignUserFullName"); UserLink assignUserLink = new UserLink(assignUserName, assignUserAvatarId, assignUserDisplayName); layout.addComponent(assignUserLink, 1, 1); } catch (Exception e) { LOG.error("Can not build user link {} ", BeanUtility.printBeanObj(bean)); } this.addComponent(layout); }
From source file:com.mycollab.module.project.view.settings.ProjectMemberInviteViewImpl.java
License:Open Source License
private void initContent() { this.removeAllComponents(); roleComboBox = new ProjectRoleComboBox(); roleComboBox.addValueChangeListener(valueChangeEvent -> { Integer roleId = (Integer) roleComboBox.getValue(); displayRolePermission(roleId);//from w w w.j a va 2s . c om }); AddViewLayout userAddLayout = new AddViewLayout( UserUIContext.getMessage(ProjectMemberI18nEnum.FORM_INVITE_MEMBERS), FontAwesome.USER); userAddLayout.addHeaderRight(createButtonControls()); GridFormLayoutHelper informationLayout = GridFormLayoutHelper.defaultFormLayoutHelper(1, 3); inviteUserTokenField = new InviteUserTokenField(); informationLayout.addComponent( new MVerticalLayout(inviteUserTokenField, new ELabel(UserUIContext.getMessage(ProjectMemberI18nEnum.USER_TOKEN_INVITE_HINT)) .withStyleName(UIConstants.META_INFO)).withMargin(false), UserUIContext.getMessage(ProjectMemberI18nEnum.FORM_INVITEES_EMAIL), 0, 0); informationLayout.addComponent(roleComboBox, UserUIContext.getMessage(ProjectMemberI18nEnum.FORM_ROLE), 0, 1); messageArea = new TextArea(); messageArea.setValue(UserUIContext.getMessage(ProjectMemberI18nEnum.MSG_DEFAULT_INVITATION_COMMENT)); informationLayout.addComponent(messageArea, UserUIContext.getMessage(ProjectMemberI18nEnum.FORM_MESSAGE), 0, 2); userAddLayout.addBody(informationLayout.getLayout()); userAddLayout.addBottom(createBottomPanel()); this.addComponent(userAddLayout); }
From source file:com.mycollab.module.project.view.settings.ProjectMemberReadViewImpl.java
License:Open Source License
public ProjectMemberReadViewImpl() { super(UserUIContext.getMessage(ProjectMemberI18nEnum.DETAIL), FontAwesome.USER); previewForm = initPreviewForm();/*from ww w . j av a 2 s .c o m*/ previewForm.setWidth("100%"); bottomLayout = new MHorizontalLayout().withMargin(new MarginInfo(true, false, true, false)).withFullWidth(); this.addHeaderRightContent(createButtonControls()); this.with(previewForm, bottomLayout); }