|
@ -26,15 +26,11 @@ import java.util.*; |
|
|
@Route(value = "actdiaria", layout = MainLayout.class) |
|
|
@Route(value = "actdiaria", layout = MainLayout.class) |
|
|
public class ActDiariaView extends VerticalLayout { |
|
|
public class ActDiariaView extends VerticalLayout { |
|
|
|
|
|
|
|
|
//Variables Locales |
|
|
|
|
|
|
|
|
//Variables globales |
|
|
SimpleDateFormat formato = new SimpleDateFormat("dd/MM/yyyy"); |
|
|
SimpleDateFormat formato = new SimpleDateFormat("dd/MM/yyyy"); |
|
|
|
|
|
|
|
|
HorizontalLayout header = new HorizontalLayout(); |
|
|
HorizontalLayout header = new HorizontalLayout(); |
|
|
|
|
|
|
|
|
H3 titulo = new H3(); |
|
|
H3 titulo = new H3(); |
|
|
|
|
|
|
|
|
Button btnCorrectivo = new Button("Correctivo"); |
|
|
Button btnCorrectivo = new Button("Correctivo"); |
|
|
|
|
|
|
|
|
Grid<ActividadDiaria> grdColumnas = new Grid<>(ActividadDiaria.class,false); |
|
|
Grid<ActividadDiaria> grdColumnas = new Grid<>(ActividadDiaria.class,false); |
|
|
|
|
|
|
|
|
List<ActividadDiaria> people = Arrays.asList( |
|
|
List<ActividadDiaria> people = Arrays.asList( |
|
@ -67,13 +63,6 @@ public class ActDiariaView extends VerticalLayout { |
|
|
}).setHeader("Fecha de cierre"); |
|
|
}).setHeader("Fecha de cierre"); |
|
|
|
|
|
|
|
|
grdColumnas.setItems(people); |
|
|
grdColumnas.setItems(people); |
|
|
// grdColumnas.addColumn( |
|
|
|
|
|
// new ColumnPathRenderer<>(Button::new, (btnCorrectivo, ActividadDiaria) ->{ |
|
|
|
|
|
// btnCorrectivo.addThemeVariants(ButtonVariant.LUMO_ICON, |
|
|
|
|
|
// ButtonVariant.LUMO_ERROR, |
|
|
|
|
|
// ButtonVariant.LUMO_TERTIARY); |
|
|
|
|
|
// btnCorrectivo.setIcon(new Icon(VaadinIcon.TRASH)); |
|
|
|
|
|
// })).setHeader("Prueba"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// add(titulo, header, grdColumnas); |
|
|
// add(titulo, header, grdColumnas); |
|
|