List of usage examples for com.vaadin.server FontAwesome CHILD
FontAwesome CHILD
To view the source code for com.vaadin.server FontAwesome CHILD.
Click Source Link
From source file:com.ies.schoolos.ui.mobile.info.layout.PersonalLayout.java
private void generalInfoLayout() { generalGroup = new VerticalComponentGroup(); generalGroup.setSizeUndefined();/*from w ww . j a va 2 s .c o m*/ addTab(generalGroup, "", FontAwesome.CHILD); peopleIdType = new OptionGroup("", new PeopleIdType()); peopleIdType.setItemCaptionPropertyId("name"); peopleIdType.setImmediate(true); peopleIdType.setRequired(true); peopleIdType.setNullSelectionAllowed(false); peopleIdType.setWidth("-1px"); peopleIdType.setHeight("-1px"); generalGroup.addComponent(peopleIdType); peopleId = new TextField(""); peopleId.setInputPrompt(""); peopleId.setImmediate(false); peopleId.setRequired(true); peopleId.setWidth("-1px"); peopleId.setHeight("-1px"); peopleId.setNullRepresentation(""); peopleId.addValidator( new StringLengthValidator("?", 13, 20, false)); peopleId.addTextChangeListener(new TextChangeListener() { private static final long serialVersionUID = 1L; @Override public void textChange(TextChangeEvent event) { if (event.getText() != null) { if (event.getText().length() >= 13) { pSqlContainer.addContainerFilter(new Equal(PersonnelSchema.PEOPLE_ID, event.getText())); if (pSqlContainer.size() > 0) { disableDuplicatePeopleIdForm(); Notification.show( "?? ??", Type.WARNING_MESSAGE); } else { enableDuplicatePeopleIdForm(); } pSqlContainer.removeAllContainerFilters(); } } } }); generalGroup.addComponent(peopleId); prename = new NativeSelect("", new Prename()); //prename.setInputPrompt("??"); prename.setItemCaptionPropertyId("name"); prename.setImmediate(true); prename.setNullSelectionAllowed(false); prename.setRequired(true); prename.setWidth("-1px"); prename.setHeight("-1px"); //prename.setFilteringMode(FilteringMode.CONTAINS); generalGroup.addComponent(prename); firstname = new TextField(""); firstname.setInputPrompt(""); firstname.setImmediate(false); firstname.setRequired(true); firstname.setWidth("-1px"); firstname.setHeight("-1px"); firstname.setNullRepresentation(""); generalGroup.addComponent(firstname); lastname = new TextField("?"); lastname.setInputPrompt("?"); lastname.setImmediate(false); lastname.setRequired(true); lastname.setWidth("-1px"); lastname.setHeight("-1px"); lastname.setNullRepresentation(""); generalGroup.addComponent(lastname); firstnameNd = new TextField("?"); firstnameNd.setInputPrompt("?"); firstnameNd.setImmediate(false); firstnameNd.setWidth("-1px"); firstnameNd.setHeight("-1px"); firstnameNd.setNullRepresentation(""); generalGroup.addComponent(firstnameNd); lastnameNd = new TextField("??"); lastnameNd.setInputPrompt("??"); lastnameNd.setImmediate(false); lastnameNd.setWidth("-1px"); lastnameNd.setHeight("-1px"); lastnameNd.setNullRepresentation(""); generalGroup.addComponent(lastnameNd); firstnameRd = new TextField(""); firstnameRd.setInputPrompt(""); firstnameRd.setImmediate(false); firstnameRd.setWidth("-1px"); firstnameRd.setHeight("-1px"); firstnameRd.setNullRepresentation(""); generalGroup.addComponent(firstnameRd); lastnameRd = new TextField("?"); lastnameRd.setInputPrompt("?"); lastnameRd.setImmediate(false); lastnameRd.setWidth("-1px"); lastnameRd.setHeight("-1px"); lastnameRd.setNullRepresentation(""); generalGroup.addComponent(lastnameRd); nickname = new TextField(""); nickname.setInputPrompt(""); nickname.setImmediate(false); nickname.setWidth("-1px"); nickname.setHeight("-1px"); nickname.setNullRepresentation(""); generalGroup.addComponent(nickname); gender = new OptionGroup("", new Gender()); gender.setItemCaptionPropertyId("name"); gender.setImmediate(true); gender.setNullSelectionAllowed(false); gender.setRequired(true); gender.setWidth("-1px"); gender.setHeight("-1px"); generalGroup.addComponent(gender); religion = new NativeSelect("", new Religion()); //religion.setInputPrompt("??"); religion.setItemCaptionPropertyId("name"); religion.setImmediate(true); religion.setNullSelectionAllowed(false); religion.setRequired(true); religion.setWidth("-1px"); religion.setHeight("-1px"); //religion.setFilteringMode(FilteringMode.CONTAINS); generalGroup.addComponent(religion); race = new NativeSelect("", new Race()); //race.setInputPrompt("??"); race.setItemCaptionPropertyId("name"); race.setImmediate(true); race.setNullSelectionAllowed(false); race.setRequired(true); race.setWidth("-1px"); race.setHeight("-1px"); //race.setFilteringMode(FilteringMode.CONTAINS); generalGroup.addComponent(race); nationality = new NativeSelect("?", new Nationality()); //nationality.setInputPrompt("??"); nationality.setItemCaptionPropertyId("name"); nationality.setImmediate(true); nationality.setNullSelectionAllowed(false); nationality.setRequired(true); nationality.setWidth("-1px"); nationality.setHeight("-1px"); //nationality.setFilteringMode(FilteringMode.CONTAINS); generalGroup.addComponent(nationality); maritalStatus = new NativeSelect("", new MaritalStatus()); //maritalStatus.setInputPrompt("??"); maritalStatus.setItemCaptionPropertyId("name"); maritalStatus.setImmediate(true); maritalStatus.setNullSelectionAllowed(false); maritalStatus.setRequired(true); maritalStatus.setWidth("-1px"); maritalStatus.setHeight("-1px"); //maritalStatus.setFilteringMode(FilteringMode.CONTAINS); generalGroup.addComponent(maritalStatus); aliveStatus = new NativeSelect("?", new AliveStatus()); //aliveStatus.setInputPrompt("??"); aliveStatus.setItemCaptionPropertyId("name"); aliveStatus.setImmediate(true); aliveStatus.setNullSelectionAllowed(false); aliveStatus.setRequired(true); aliveStatus.setWidth("-1px"); aliveStatus.setHeight("-1px"); //aliveStatus.setFilteringMode(FilteringMode.CONTAINS); aliveStatus.setVisible(false); generalGroup.addComponent(aliveStatus); birthDate = new PopupDateField(" ?"); birthDate.setInputPrompt("//"); birthDate.setImmediate(false); birthDate.setRequired(true); birthDate.setWidth("-1px"); birthDate.setHeight("-1px"); birthDate.setDateFormat("dd/MM/yyyy"); birthDate.setLocale(new Locale("th", "TH")); generalGroup.addComponent(birthDate); blood = new NativeSelect("", new Blood()); //blood.setInputPrompt("??"); blood.setItemCaptionPropertyId("name"); blood.setImmediate(true); blood.setNullSelectionAllowed(false); blood.setRequired(true); blood.setWidth("-1px"); blood.setHeight("-1px"); //blood.setFilteringMode(FilteringMode.CONTAINS); generalGroup.addComponent(blood); height = new NumberField(""); height.setInputPrompt(""); height.setImmediate(false); height.setWidth("-1px"); height.setHeight("-1px"); height.setNullRepresentation(""); generalGroup.addComponent(height); weight = new NumberField("?"); weight.setInputPrompt("?"); weight.setImmediate(false); weight.setWidth("-1px"); weight.setHeight("-1px"); weight.setNullRepresentation(""); generalGroup.addComponent(weight); congenitalDisease = new TextField(""); congenitalDisease.setInputPrompt(""); congenitalDisease.setImmediate(false); congenitalDisease.setWidth("-1px"); congenitalDisease.setHeight("-1px"); congenitalDisease.setNullRepresentation(""); generalGroup.addComponent(congenitalDisease); HorizontalLayout buttonLayout = new HorizontalLayout(); buttonLayout.setSpacing(true); buttonLayout.setWidth("100%"); generalGroup.addComponent(buttonLayout); workNext = new Button(FontAwesome.ARROW_RIGHT); workNext.setWidth("100%"); workNext.addClickListener(new ClickListener() { private static final long serialVersionUID = 1L; @Override public void buttonClick(ClickEvent event) { setSelectedTab(workGroup); } }); buttonLayout.addComponent(workNext); }