List of usage examples for com.vaadin.server FontAwesome BED
FontAwesome BED
To view the source code for com.vaadin.server FontAwesome BED.
Click Source Link
From source file:ch.bfh.ti.soed.hs16.srs.black.view.reservationView.ReservationMakeView.java
License:Open Source License
public ReservationMakeView() { fromField = new DateField("Start Date"); fromField.setLocale(new Locale("de", "DE")); fromField.setResolution(Resolution.MINUTE); fromField.setDateFormat("dd.MM.yyyy HH:mm"); fromField.setIcon(FontAwesome.CALENDAR); fromField.setWidth(12, Unit.EM);/* w w w. j a v a 2s . c o m*/ toField = new DateField("End Date"); toField.setLocale(new Locale("de", "DE")); toField.setResolution(Resolution.MINUTE); toField.setDateFormat("dd.MM.yyyy HH:mm"); toField.setIcon(FontAwesome.CALENDAR); toField.setWidth(12, Unit.EM); roomSelect = new NativeSelect("Room Number"); roomSelect.setIcon(FontAwesome.BED); roomSelect.setNullSelectionAllowed(true); roomSelect.setImmediate(true); makeReservationButton = new Button("Make Reservation", FontAwesome.CHECK); makeReservationButton.setWidth(12, Unit.EM); logoutButton = new Button("Logout"); Panel panel = new Panel("Create New Reservation"); FormLayout content = new FormLayout(); content.addComponents(fromField, toField, roomSelect, makeReservationButton); content.setSizeUndefined(); content.setMargin(true); VerticalLayout formAndLogout = new VerticalLayout(content, logoutButton); formAndLogout.setMargin(true); panel.setContent(formAndLogout); makeViewLayout = new VerticalLayout(panel); makeViewLayout.setSizeUndefined(); makeViewLayout.setMargin(true); }