List of usage examples for com.vaadin.server FontAwesome CLOSE
FontAwesome CLOSE
To view the source code for com.vaadin.server FontAwesome CLOSE.
Click Source Link
From source file:com.example.testzbox.vista.TabChecklist.java
private IndexedContainer crearContenedor(CheckListVO checkListVO) { IndexedContainer idxCont = new IndexedContainer(); idxCont.addContainerProperty("No.", Integer.class, ""); idxCont.addContainerProperty("Id Documento", String.class, ""); idxCont.addContainerProperty("Nombre Documento", String.class, ""); idxCont.addContainerProperty("Tipo Documental", String.class, ""); idxCont.addContainerProperty("Cargado", Label.class, ""); idxCont.addContainerProperty("Area", String.class, ""); idxCont.addContainerProperty("Obligatorio", String.class, ""); VerificarChecklist verChecklist = new VerificarChecklist(); List<DocumentoVO> documentoVoLt = verChecklist.verificarChecklist(checkListVO, checkListVO); int contador = 1; for (DocumentoVO doc : documentoVoLt) { Item item = idxCont.getItem(idxCont.addItem()); item.getItemProperty("No.").setValue(contador++); item.getItemProperty("Id Documento") .setValue(doc.getIdDocumento() != null ? doc.getIdDocumento() : "N.E."); item.getItemProperty("Nombre Documento") .setValue(doc.getNombreDocumento() != null ? doc.getNombreDocumento() : "N.E."); item.getItemProperty("Tipo Documental").setValue(doc.getTipoDocumental()); item.getItemProperty("Cargado") .setValue(doc.getCargado() == true ? new Label(FontAwesome.CHECK.getHtml(), ContentMode.HTML) : new Label(FontAwesome.CLOSE.getHtml(), ContentMode.HTML)); item.getItemProperty("Area").setValue(doc.getAreaResponsable()); item.getItemProperty("Obligatorio").setValue(doc.getObligatorioCheckList() == true ? "SI" : "NO"); }//from ww w. j av a2 s.co m return idxCont; }
From source file:ed.cracken.pos.ui.purchases.PurchaserView.java
public HorizontalLayout createFooter() { total = new Label("<h2><strong>Total:</strong></h2>"); total.setContentMode(ContentMode.HTML); totalValue = new Label("<h2><strong>" + DataFormatHelper.formatNumber(BigDecimal.ZERO) + "</strong></h2>"); totalValue.setContentMode(ContentMode.HTML); quantity = new Label("<h2><strong>Cantidad:</strong></h2>"); quantity.setContentMode(ContentMode.HTML); quantityValue = new Label( "<h2><strong>" + DataFormatHelper.formatNumber(BigDecimal.ZERO) + "</strong></h2>"); quantityValue.setContentMode(ContentMode.HTML); saveTrx = new Button("Guardar", FontAwesome.CHECK_CIRCLE_O); saveTrx.addStyleName(ValoTheme.BUTTON_PRIMARY); saveTrx.setHeight("60px"); saveTrx.addClickListener((Button.ClickEvent event) -> { UI.getCurrent().addWindow(paymentView); });/*from www.j av a2s . c om*/ cancelTrx = new Button("Cancelar", FontAwesome.CLOSE); cancelTrx.addStyleName(ValoTheme.BUTTON_DANGER); cancelTrx.setHeight("60px"); HorizontalLayout bottom = new HorizontalLayout(); HorizontalLayout labelsArea = new HorizontalLayout(); HorizontalLayout buttonsArea = new HorizontalLayout(); labelsArea.setSpacing(true); labelsArea.addComponent(total); labelsArea.addComponent(totalValue); labelsArea.addComponent(quantity); labelsArea.addComponent(quantityValue); labelsArea.setComponentAlignment(total, Alignment.MIDDLE_LEFT); labelsArea.setComponentAlignment(totalValue, Alignment.MIDDLE_LEFT); labelsArea.setComponentAlignment(quantity, Alignment.MIDDLE_RIGHT); labelsArea.setComponentAlignment(quantityValue, Alignment.MIDDLE_RIGHT); buttonsArea.setSpacing(true); buttonsArea.addComponent(saveTrx); buttonsArea.addComponent(cancelTrx); bottom.setSpacing(true); bottom.addComponent(buttonsArea); bottom.addComponent(labelsArea); bottom.setComponentAlignment(buttonsArea, Alignment.MIDDLE_LEFT); bottom.setComponentAlignment(labelsArea, Alignment.MIDDLE_RIGHT); bottom.setWidth("100%"); return bottom; }