|
@ -1,15 +1,63 @@ |
|
|
package mx.gob.jumapacelaya.ui; |
|
|
package mx.gob.jumapacelaya.ui; |
|
|
|
|
|
import com.vaadin.flow.component.Unit; |
|
|
|
|
|
import com.vaadin.flow.component.checkbox.CheckboxGroup; |
|
|
|
|
|
import com.vaadin.flow.component.combobox.ComboBox; |
|
|
|
|
|
import com.vaadin.flow.component.datepicker.DatePicker; |
|
|
|
|
|
import com.vaadin.flow.component.formlayout.FormLayout; |
|
|
|
|
|
import com.vaadin.flow.component.grid.Grid; |
|
|
|
|
|
import com.vaadin.flow.component.html.Span; |
|
|
|
|
|
import com.vaadin.flow.component.orderedlayout.FlexLayout; |
|
|
|
|
|
import com.vaadin.flow.component.orderedlayout.HorizontalLayout; |
|
|
|
|
|
import com.vaadin.flow.component.orderedlayout.VerticalLayout; |
|
|
|
|
|
import com.vaadin.flow.component.textfield.TextArea; |
|
|
|
|
|
import com.vaadin.flow.component.textfield.TextField; |
|
|
import com.vaadin.flow.router.PageTitle; |
|
|
import com.vaadin.flow.router.PageTitle; |
|
|
import com.vaadin.flow.router.Route; |
|
|
import com.vaadin.flow.router.Route; |
|
|
|
|
|
import com.vaadin.flow.theme.lumo.LumoUtility; |
|
|
import jakarta.annotation.security.PermitAll; |
|
|
import jakarta.annotation.security.PermitAll; |
|
|
|
|
|
import org.checkerframework.checker.units.qual.A; |
|
|
|
|
|
|
|
|
|
|
|
import java.util.Collections; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@PermitAll |
|
|
@PermitAll |
|
|
@PageTitle("Home") |
|
|
@PageTitle("Home") |
|
|
@Route(value = "/", layout = MainLayout.class) |
|
|
|
|
|
public class ActDiariaView { |
|
|
|
|
|
|
|
|
@Route(value = "actdiaria", layout = MainLayout.class) |
|
|
|
|
|
public class ActDiariaView extends VerticalLayout { |
|
|
|
|
|
|
|
|
|
|
|
//Variables Locales |
|
|
|
|
|
HorizontalLayout header = new HorizontalLayout(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public ActDiariaView() { |
|
|
|
|
|
|
|
|
|
|
|
Span etiqueta = new Span("Listado de tividades"); |
|
|
|
|
|
|
|
|
|
|
|
FormLayout formLayout=new FormLayout(); |
|
|
|
|
|
FlexLayout flexLayout = new FlexLayout(); |
|
|
|
|
|
|
|
|
|
|
|
etiqueta.setWidth(100, Unit.PERCENTAGE); |
|
|
|
|
|
|
|
|
|
|
|
flexLayout.setMaxWidth(100, Unit.PERCENTAGE); |
|
|
|
|
|
flexLayout.setWidth("100%"); |
|
|
|
|
|
flexLayout.getElement().getStyle().set("background-color","red"); |
|
|
|
|
|
flexLayout.getElement().getStyle().set("border-radius", LumoUtility.BorderRadius.LARGE); |
|
|
|
|
|
|
|
|
|
|
|
header.setSizeUndefined(); |
|
|
|
|
|
header.setFlexGrow(1,etiqueta); |
|
|
|
|
|
header.add(etiqueta); |
|
|
|
|
|
header.getElement().getStyle().set("background-color","green"); |
|
|
|
|
|
|
|
|
|
|
|
formLayout.add(header); |
|
|
|
|
|
formLayout.setSizeUndefined(); |
|
|
|
|
|
|
|
|
|
|
|
flexLayout.add(Collections.singleton(formLayout)); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
add(flexLayout); |
|
|
|
|
|
|
|
|
|
|
|
//Tabla echa con un grid |
|
|
|
|
|
|
|
|
public ActDiariaView() { |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |