List of usage examples for com.vaadin.ui AbsoluteLayout AbsoluteLayout
public AbsoluteLayout()
From source file:co.edu.icesi.academ.client.perfiles.administrador.PanelEditarBloque.java
License:Open Source License
@AutoGenerated private AbsoluteLayout buildMainLayout() { // common part: create layout mainLayout = new AbsoluteLayout(); mainLayout.setImmediate(false);//from w ww. j a v a2s . c om mainLayout.setWidth("360px"); mainLayout.setHeight("140px"); // top-level component properties setWidth("360px"); setHeight("140px"); // textField_1 textField_1 = new TextField(); textField_1.setCaption("Nombre"); textField_1.setImmediate(false); textField_1.setWidth("241px"); textField_1.setHeight("-1px"); mainLayout.addComponent(textField_1, "top:40.0px;left:60.0px;"); // btn_guardar btn_guardar = new Button(); btn_guardar.setCaption("guardar"); btn_guardar.setImmediate(true); btn_guardar.setWidth("240px"); btn_guardar.setHeight("-1px"); mainLayout.addComponent(btn_guardar, "top:80.0px;left:60.0px;"); return mainLayout; }
From source file:co.edu.icesi.academ.client.perfiles.administrador.PanelEditarMateria.java
License:Open Source License
@AutoGenerated private AbsoluteLayout buildMainLayout() { // common part: create layout mainLayout = new AbsoluteLayout(); mainLayout.setImmediate(false);/*from w w w . ja v a2 s. co m*/ mainLayout.setWidth("340px"); mainLayout.setHeight("180px"); // top-level component properties setWidth("340px"); setHeight("180px"); // btn_guardar btn_guardar = new Button(); btn_guardar.setCaption("Guardar"); btn_guardar.setImmediate(true); btn_guardar.setWidth("220px"); btn_guardar.setHeight("-1px"); mainLayout.addComponent(btn_guardar, "top:120.0px;left:60.0px;"); // txt_codigo txt_codigo = new TextField(); txt_codigo.setStyleName("Cdigo"); txt_codigo.setCaption("Cdigo"); txt_codigo.setImmediate(false); txt_codigo.setWidth("220px"); txt_codigo.setHeight("-1px"); mainLayout.addComponent(txt_codigo, "top:36.0px;left:60.0px;"); // txt_nombre txt_nombre = new TextField(); txt_nombre.setCaption("Nombre"); txt_nombre.setImmediate(false); txt_nombre.setWidth("220px"); txt_nombre.setHeight("-1px"); mainLayout.addComponent(txt_nombre, "top:80.0px;left:60.0px;"); return mainLayout; }
From source file:co.edu.icesi.academ.client.perfiles.administrador.PanelEditarPrograma.java
License:Open Source License
@AutoGenerated private AbsoluteLayout buildMainLayout() { // common part: create layout mainLayout = new AbsoluteLayout(); mainLayout.setImmediate(false);/*from w w w . ja v a 2 s.c o m*/ mainLayout.setWidth("380px"); mainLayout.setHeight("260px"); // top-level component properties setWidth("380px"); setHeight("260px"); // txtNombre txtNombre = new TextField(); txtNombre.setCaption("Nombre"); txtNombre.setImmediate(false); txtNombre.setWidth("240px"); txtNombre.setHeight("-1px"); mainLayout.addComponent(txtNombre, "top:40.0px;left:60.0px;"); // btnGuardar btnGuardar = new Button(); btnGuardar.setCaption("Guardar"); btnGuardar.setImmediate(true); btnGuardar.setWidth("240px"); btnGuardar.setHeight("-1px"); mainLayout.addComponent(btnGuardar, "top:194.0px;left:60.0px;"); // txtDesc txtDesc = new TextArea(); txtDesc.setCaption("Descripcin"); txtDesc.setImmediate(false); txtDesc.setWidth("240px"); txtDesc.setHeight("100px"); mainLayout.addComponent(txtDesc, "top:80.0px;left:60.0px;"); return mainLayout; }
From source file:co.edu.icesi.academ.client.perfiles.administrador.PanelListaMateriasParaEditar.java
License:Open Source License
@AutoGenerated private AbsoluteLayout buildMainLayout() { // common part: create layout mainLayout = new AbsoluteLayout(); mainLayout.setImmediate(false);/* w w w .j av a2 s . c o m*/ mainLayout.setWidth("400px"); mainLayout.setHeight("300px"); // top-level component properties setWidth("400px"); setHeight("300px"); // btn_editar btn_editar = new Button(); btn_editar.setCaption("Editar"); btn_editar.setImmediate(true); btn_editar.setWidth("280px"); btn_editar.setHeight("-1px"); mainLayout.addComponent(btn_editar, "top:234.0px;left:60.0px;"); // tableMaterias tableMaterias = new Table(); tableMaterias.setImmediate(false); tableMaterias.setWidth("100.0%"); tableMaterias.setHeight("200px"); mainLayout.addComponent(tableMaterias, "top:20.0px;right:60.0px;left:60.0px;"); return mainLayout; }
From source file:co.edu.icesi.academ.client.perfiles.administrador.PanelProgramasBloques.java
License:Open Source License
@AutoGenerated private AbsoluteLayout buildMainLayout() { // common part: create layout mainLayout = new AbsoluteLayout(); mainLayout.setImmediate(false);//w ww . j a va 2 s.c om mainLayout.setWidth("840px"); mainLayout.setHeight("440px"); // top-level component properties setWidth("840px"); setHeight("440px"); // btnCrearPrograma btnCrearPrograma = new Button(); btnCrearPrograma.setCaption("Crear Programa"); btnCrearPrograma.setImmediate(true); btnCrearPrograma.setWidth("160px"); btnCrearPrograma.setHeight("-1px"); mainLayout.addComponent(btnCrearPrograma, "top:20.0px;left:20.0px;"); // btnEditarPrograma btnEditarPrograma = new Button(); btnEditarPrograma.setCaption("Editar Programa"); btnEditarPrograma.setImmediate(true); btnEditarPrograma.setWidth("160px"); btnEditarPrograma.setHeight("-1px"); mainLayout.addComponent(btnEditarPrograma, "top:20.0px;left:220.0px;"); // btnAsociar btnAsociar = new Button(); btnAsociar.setCaption(">"); btnAsociar.setImmediate(true); btnAsociar.setWidth("100px"); btnAsociar.setHeight("26px"); mainLayout.addComponent(btnAsociar, "top:269.0px;left:360.0px;"); // btnDesasociar btnDesasociar = new Button(); btnDesasociar.setCaption("<"); btnDesasociar.setImmediate(true); btnDesasociar.setWidth("100px"); btnDesasociar.setHeight("-1px"); mainLayout.addComponent(btnDesasociar, "top:295.0px;left:360.0px;"); // tableProgramas tableProgramas = new Table(); tableProgramas.setImmediate(false); tableProgramas.setWidth("780px"); tableProgramas.setHeight("143px"); mainLayout.addComponent(tableProgramas, "top:60.0px;left:20.0px;"); // tableBloquesNoAsociados tableBloquesNoAsociados = new Table(); tableBloquesNoAsociados.setImmediate(false); tableBloquesNoAsociados.setWidth("340px"); tableBloquesNoAsociados.setHeight("160px"); mainLayout.addComponent(tableBloquesNoAsociados, "top:240.0px;left:20.0px;"); // tableBloquesAsociados tableBloquesAsociados = new Table(); tableBloquesAsociados.setImmediate(false); tableBloquesAsociados.setWidth("340px"); tableBloquesAsociados.setHeight("160px"); mainLayout.addComponent(tableBloquesAsociados, "top:240.0px;left:460.0px;"); return mainLayout; }
From source file:co.edu.icesi.academ.client.perfiles.propietario.Competencias.java
License:Open Source License
@AutoGenerated private AbsoluteLayout buildMainLayout() { // common part: create layout mainLayout = new AbsoluteLayout(); mainLayout.setImmediate(false);//from ww w . ja v a 2 s. c o m mainLayout.setWidth("100%"); mainLayout.setHeight("100%"); // top-level component properties setWidth("100.0%"); setHeight("100.0%"); // butCrearCompetencia butCrearCompetencia = new Button(); butCrearCompetencia.setCaption("Crear Competencia"); butCrearCompetencia.setImmediate(false); butCrearCompetencia.setWidth("-1px"); butCrearCompetencia.setHeight("-1px"); mainLayout.addComponent(butCrearCompetencia, "top:40.0px;left:80.0px;"); // butEditarCompetencia butEditarCompetencia = new Button(); butEditarCompetencia.setCaption("Editar Competencia"); butEditarCompetencia.setImmediate(false); butEditarCompetencia.setWidth("-1px"); butEditarCompetencia.setHeight("-1px"); mainLayout.addComponent(butEditarCompetencia, "top:40.0px;left:240.0px;"); // listSelect_1 listSelect_1 = new ListSelect(); listSelect_1.setImmediate(false); listSelect_1.setWidth("500px"); listSelect_1.setHeight("200px"); mainLayout.addComponent(listSelect_1, "top:100.0px;left:80.0px;"); return mainLayout; }
From source file:co.edu.icesi.academ.client.perfiles.propietario.CrearCompetencia.java
License:Open Source License
@AutoGenerated private AbsoluteLayout buildMainLayout() { // common part: create layout mainLayout = new AbsoluteLayout(); mainLayout.setImmediate(false);//from w w w .j a va 2 s . co m mainLayout.setWidth("700px"); mainLayout.setHeight("480px"); // top-level component properties setWidth("700px"); setHeight("480px"); // resutadoAprendizajeSelect resutadoAprendizajeSelect = new TwinColSelect(); resutadoAprendizajeSelect.setImmediate(false); resutadoAprendizajeSelect.setWidth("100.0%"); resutadoAprendizajeSelect.setHeight("-1px"); mainLayout.addComponent(resutadoAprendizajeSelect, "top:60.0px;right:63.0px;left:80.0px;"); // label_1 label_1 = new Label(); label_1.setImmediate(false); label_1.setWidth("229px"); label_1.setHeight("-1px"); label_1.setValue("Resultados de Aprendizaje Disponibles:"); mainLayout.addComponent(label_1, "top:20.0px;left:80.0px;"); // label_2 label_2 = new Label(); label_2.setImmediate(false); label_2.setWidth("229px"); label_2.setHeight("-1px"); label_2.setValue("Resultados de Aprendizaje Asociados:"); mainLayout.addComponent(label_2, "top:20.0px;left:380.0px;"); // label_3 label_3 = new Label(); label_3.setImmediate(false); label_3.setWidth("89px"); label_3.setHeight("18px"); label_3.setValue("Competencia:"); mainLayout.addComponent(label_3, "top:222.0px;left:80.0px;"); // btGuardarCompetencia btGuardarCompetencia = new NativeButton(); btGuardarCompetencia.setCaption("Guardar"); btGuardarCompetencia.setImmediate(true); btGuardarCompetencia.setWidth("-1px"); btGuardarCompetencia.setHeight("-1px"); mainLayout.addComponent(btGuardarCompetencia, "top:418.0px;left:566.0px;"); // textDescripcion textDescripcion = new TextArea(); textDescripcion.setImmediate(false); textDescripcion.setWidth("560px"); textDescripcion.setHeight("140px"); textDescripcion.setMaxLength(100); mainLayout.addComponent(textDescripcion, "top:260.0px;left:80.0px;"); return mainLayout; }
From source file:co.edu.icesi.academ.client.perfiles.propietario.DialogoEditarRubrica.java
License:Open Source License
@AutoGenerated private AbsoluteLayout buildMainLayout() { // common part: create layout mainLayout = new AbsoluteLayout(); mainLayout.setImmediate(false);/*from w w w.j a va 2 s. c o m*/ mainLayout.setWidth("440px"); mainLayout.setHeight("561px"); // top-level component properties setWidth("440px"); setHeight("561px"); // lblCriterios lblCriterios = new Label(); lblCriterios.setImmediate(false); lblCriterios.setWidth("-1px"); lblCriterios.setHeight("-1px"); lblCriterios.setValue("Criterios:"); mainLayout.addComponent(lblCriterios, "top:20.0px;left:20.0px;"); // lblNiveles lblNiveles = new Label(); lblNiveles.setImmediate(false); lblNiveles.setWidth("-1px"); lblNiveles.setHeight("-1px"); lblNiveles.setValue("Niveles:"); mainLayout.addComponent(lblNiveles, "top:264.0px;left:20.0px;"); // btnCrearCriterio btnCrearCriterio = new Button(); btnCrearCriterio.setCaption("Crear Criterio"); btnCrearCriterio.setImmediate(true); btnCrearCriterio.setWidth("-1px"); btnCrearCriterio.setHeight("-1px"); mainLayout.addComponent(btnCrearCriterio, "top:54.0px;left:19.0px;"); // btnCrearNivel btnCrearNivel = new Button(); btnCrearNivel.setCaption("Crear Nivel"); btnCrearNivel.setImmediate(true); btnCrearNivel.setWidth("-1px"); btnCrearNivel.setHeight("-1px"); mainLayout.addComponent(btnCrearNivel, "top:300.0px;left:19.0px;"); // tblNiveles tblNiveles = new Table(); tblNiveles.setImmediate(false); tblNiveles.setWidth("401px"); tblNiveles.setHeight("140px"); mainLayout.addComponent(tblNiveles, "top:340.0px;left:19.0px;"); // btnGuardar btnGuardar = new Button(); btnGuardar.setCaption("Guardar"); btnGuardar.setImmediate(true); btnGuardar.setWidth("-1px"); btnGuardar.setHeight("-1px"); mainLayout.addComponent(btnGuardar, "top:514.0px;left:350.0px;"); // tblCriterios tblCriterios = new Table(); tblCriterios.setImmediate(false); tblCriterios.setWidth("400px"); tblCriterios.setHeight("140px"); mainLayout.addComponent(tblCriterios, "top:100.0px;left:20.0px;"); return mainLayout; }
From source file:co.edu.icesi.academ.client.perfiles.propietario.FactoresDeImpacto.java
License:Open Source License
@AutoGenerated private AbsoluteLayout buildMainLayout() { // common part: create layout mainLayout = new AbsoluteLayout(); mainLayout.setImmediate(false);//from ww w. j a v a2 s .com mainLayout.setWidth("100%"); mainLayout.setHeight("100%"); // top-level component properties setWidth("100.0%"); setHeight("100.0%"); // table_1 initTable(); // button_cargar button_cargar = new Button(); button_cargar.setCaption("Cargar Factores"); button_cargar.setImmediate(false); button_cargar.setWidth("-1px"); button_cargar.setHeight("-1px"); button_cargar.addClickListener(new ClickListener() { /** * */ private static final long serialVersionUID = 1L; @Override public void buttonClick(ClickEvent event) { // TODO Auto-generated method stub ControladorPropietario.getInstance().cargarFactoresImpacto(); } }); mainLayout.addComponent(button_cargar, "top:20.0px;left:10.0px;"); // button_guardar button_guardar = new Button(); button_guardar.setCaption("Guardar Factores"); button_guardar.setImmediate(false); button_guardar.setWidth("-1px"); button_guardar.setHeight("-1px"); button_guardar.addClickListener(new ClickListener() { /** * */ private static final long serialVersionUID = 1L; @Override public void buttonClick(ClickEvent event) { try { List<FactorDeImpactoBO> factoresDeImpacto = guardarFactoresDeImpacto(); ControladorPropietario.getInstance().guardarFactoresDeImpacto(factoresDeImpacto); } catch (Exception e) { Notification.show("Error", "Debe cargar primero los factores de impacto", Type.TRAY_NOTIFICATION); } } }); mainLayout.addComponent(button_guardar, "top:20.0px;left:150.0px;"); return mainLayout; }
From source file:co.edu.icesi.academ.client.perfiles.propietario.PanelAsignarRolEvaluador.java
License:Open Source License
@AutoGenerated private AbsoluteLayout buildMainLayout() { // common part: create layout mainLayout = new AbsoluteLayout(); mainLayout.setImmediate(false);// w w w .j a v a 2s. co m mainLayout.setWidth("100%"); mainLayout.setHeight("100%"); // top-level component properties setWidth("100.0%"); setHeight("100.0%"); // btnGuardar btnGuardar = new Button(); btnGuardar.setCaption("Guardar"); btnGuardar.setImmediate(true); btnGuardar.setWidth("-1px"); btnGuardar.setHeight("-1px"); mainLayout.addComponent(btnGuardar, "top:20.0px;left:10.0px;"); // lblEvaluadores lblEvaluadores = new Label(); lblEvaluadores.setImmediate(false); lblEvaluadores.setWidth("-1px"); lblEvaluadores.setHeight("-1px"); lblEvaluadores.setValue("Evaluadores:"); mainLayout.addComponent(lblEvaluadores, "top:80.0px;left:30.0px;"); // btnAgregar btnAgregar = new Button(); btnAgregar.setCaption(">"); btnAgregar.setImmediate(true); btnAgregar.setWidth("-1px"); btnAgregar.setHeight("-1px"); mainLayout.addComponent(btnAgregar, "top:160.0px;left:204.0px;"); // btnRemover btnRemover = new Button(); btnRemover.setCaption("<"); btnRemover.setImmediate(true); btnRemover.setWidth("-1px"); btnRemover.setHeight("-1px"); mainLayout.addComponent(btnRemover, "top:234.0px;left:204.0px;"); // lblRoles lblRoles = new Label(); lblRoles.setImmediate(false); lblRoles.setWidth("-1px"); lblRoles.setHeight("-1px"); lblRoles.setValue("Roles:"); mainLayout.addComponent(lblRoles, "top:80.0px;left:280.0px;"); // tstRoles tstRoles = new TabSheet(); tstRoles.setImmediate(false); tstRoles.setWidth("410px"); tstRoles.setHeight("246px"); mainLayout.addComponent(tstRoles, "top:114.0px;left:280.0px;"); // lstEvaluadores lstEvaluadores = new ListSelect(); lstEvaluadores.setImmediate(false); lstEvaluadores.setWidth("140px"); lstEvaluadores.setHeight("246px"); mainLayout.addComponent(lstEvaluadores, "top:114.0px;left:20.0px;"); return mainLayout; }