List of usage examples for com.vaadin.server FontAwesome MAP_MARKER
FontAwesome MAP_MARKER
To view the source code for com.vaadin.server FontAwesome MAP_MARKER.
Click Source Link
From source file:com.terralcode.gestion.frontend.view.widgets.appointment.AppointmentView.java
private void buildAddress() { address = new ComboBox(); address.setContainerDataSource(containerAddresses); address.setTextInputAllowed(false);// w w w . j a v a2s. c om address.setInputPrompt("Seleccione una direccin..."); address.setWidth("100%"); rootLayout.addComponent(address); addressDetails = new Button(FontAwesome.MAP_MARKER); addressDetails.addStyleName(ValoTheme.BUTTON_ICON_ONLY); addressDetails.addClickListener(new Button.ClickListener() { @Override public void buttonClick(Button.ClickEvent event) { if (appointment.getAddress() != null) { Notification.show("Funcionalidad en desarrollo.", Notification.Type.ASSISTIVE_NOTIFICATION); //customerView.open(appointment.getCustomer()); } } }); HorizontalLayout wrapper = new HorizontalLayout(); wrapper.setCaption("Direccin"); wrapper.addComponent(address); wrapper.addComponent(addressDetails); wrapper.setWidth("100%"); wrapper.setExpandRatio(address, 1); rootLayout.addComponent(wrapper); }