Example usage for com.vaadin.ui Button Button

List of usage examples for com.vaadin.ui Button Button

Introduction

In this page you can find the example usage for com.vaadin.ui Button Button.

Prototype

public Button() 

Source Link

Document

Creates a new push button.

Usage

From source file:br.com.anteros.mobileserver.app.form.ExecuteForm.java

License:Apache License

private void createForm() {
    if (actionSynchronism.getItems() != null) {

        Label lblTitle = new Label("Parmetros de execuo Ao " + actionSynchronism.getName() + " ("
                + actionSynchronism.getId() + ")");
        lblTitle.setStyleName("h2 color");
        lblTitle.setImmediate(false);//from ww  w  .ja va  2s. c  om
        addComponent(lblTitle);
        setComponentAlignment(lblTitle, Alignment.TOP_LEFT);

        Synchronism synchronism = actionSynchronism.getItems().iterator().next();
        executeForm = new Form();
        fields.clear();
        ParameterSynchronism[] parameters = null;
        if (synchronism instanceof TableSynchronism)
            parameters = ((TableSynchronism) synchronism).getParameters();
        if (synchronism instanceof ProcedureSynchronism)
            parameters = ((ProcedureSynchronism) synchronism).getParameters();
        for (ParameterSynchronism param : parameters) {
            if (param.getParameterType().intValue() == ParameterSynchronism.INPUT
                    || param.getParameterType().intValue() == ParameterSynchronism.SUBSTITUITION) {
                String value = FieldTypes.getFieldTypes().get(param.getParameterDataType().intValue() + "");
                if (value != null) {
                    if (FieldTypes.UNKNOW.equalsIgnoreCase(value)) {
                        TextField field = new TextField();
                        field.setCaption(param.getName());
                        field.setWidth("400px");
                        executeForm.addField(param.getName(), field);
                        fields.add(field);
                    } else if (FieldTypes.INTEGER.equalsIgnoreCase(value)) {
                        TextField field = new TextField();
                        field.setCaption(param.getName());
                        field.setWidth("150px");
                        field.setRequired(true);
                        field.setRequiredError("Informe o valor para o campo " + param.getName());
                        executeForm.addField(param.getName(), field);
                        fields.add(field);
                    } else if (FieldTypes.VARCHAR.equalsIgnoreCase(value)) {
                        TextField field = new TextField();
                        field.setCaption(param.getName());
                        field.setWidth("400px");
                        field.setRequired(true);
                        field.setRequiredError("Informe o valor para o campo " + param.getName());
                        executeForm.addField(param.getName(), field);
                        fields.add(field);
                    } else if (FieldTypes.FLOAT.equalsIgnoreCase(value)) {
                        TextField field = new TextField();
                        field.setCaption(param.getName());
                        field.setWidth("150px");
                        field.setRequired(true);
                        field.setRequiredError("Informe o valor para o campo " + param.getName());
                        executeForm.addField(param.getName(), field);
                        fields.add(field);
                    } else if (FieldTypes.NUMERIC.equalsIgnoreCase(value)) {
                        TextField field = new TextField();
                        field.setCaption(param.getName());
                        field.setWidth("150px");
                        field.setRequired(true);
                        field.setRequiredError("Informe o valor para o campo " + param.getName());
                        executeForm.addField(param.getName(), field);
                        fields.add(field);
                    } else if (FieldTypes.DATE.equalsIgnoreCase(value)) {
                        PopupDateField field = new PopupDateField();
                        field.setCaption(param.getName());
                        field.setWidth("150px");
                        field.setRequired(true);
                        field.setRequiredError("Informe o valor para o campo " + param.getName());
                        field.setResolution(PopupDateField.RESOLUTION_DAY);
                        executeForm.addField(param.getName(), field);
                        fields.add(field);
                    } else if (FieldTypes.TIME.equalsIgnoreCase(value)) {
                        TextField field = new TextField();
                        field.setCaption(param.getName());
                        field.setWidth("150px");
                        field.setRequired(true);
                        field.setRequiredError("Informe o valor para o campo " + param.getName());
                        executeForm.addField(param.getName(), field);
                        fields.add(field);
                    } else if (FieldTypes.TIMESTAMP.equalsIgnoreCase(value)) {
                        TextField field = new TextField();
                        field.setCaption(param.getName());
                        field.setWidth("150px");
                        field.setRequired(true);
                        field.setRequiredError("Informe o valor para o campo " + param.getName());
                        executeForm.addField(param.getName(), field);
                        fields.add(field);
                    }
                }
            }
        }

        panelForm = new Panel();
        panelForm.setHeight("100%");
        panelForm.setWidth("100%");
        panelForm.setScrollable(true);
        addComponent(panelForm);
        executeForm.setImmediate(true);
        executeForm.setWidth("100%");
        panelForm.addComponent(executeForm);

        executeCommit = new CheckBox("Executar COMMIT no final do processo?");
        addComponent(executeCommit);

        HorizontalLayout buttons = new HorizontalLayout();
        buttons.setImmediate(false);
        buttons.setWidth("600px");
        buttons.setHeight("-1px");
        buttons.setMargin(false);
        buttons.setSpacing(true);
        addComponent(buttons);

        btnExecute = new Button();
        btnExecute.setCaption("Executar");
        btnExecute.setIcon(new ThemeResource("icons/16/run.png"));
        btnExecute.addListener(clickListener);
        buttons.addComponent(btnExecute);
        buttons.setComponentAlignment(btnExecute, Alignment.MIDDLE_RIGHT);
        buttons.setExpandRatio(btnExecute, 1);

        btnClose = new Button();
        btnClose.setCaption("Fechar");
        btnClose.setIcon(new ThemeResource("icons/16/doorOut.png"));
        btnClose.addListener(clickListener);
        buttons.addComponent(btnClose);

        buttons.setComponentAlignment(btnClose, Alignment.MIDDLE_RIGHT);
        buttons.setMargin(true, false, true, false);
        addComponent(buttons);

        pageControl = new TabSheet();
        pageControl.setImmediate(true);
        pageControl.setWidth("100.0%");
        pageControl.setHeight("100.0%");

        textPanel = new Panel();
        textPanel.setImmediate(true);
        textPanel.setWidth("100%");
        textPanel.setHeight("100%");
        pageControl.addTab(textPanel, "Resultado", null);
        addComponent(pageControl);
        setExpandRatio(pageControl, 1.0f);
    }
}

From source file:br.com.anteros.mobileserver.app.form.TableForm.java

License:Apache License

private void createGrids() {
    layoutFields = new VerticalLayout();
    layoutFields.setImmediate(false);//from  w  w  w  .j  av  a  2s  .c  o m
    layoutFields.setWidth("100.0%");
    layoutFields.setHeight("100.0%");
    layoutFields.setMargin(false);

    gridFields = new Table();
    gridFields.setWidth("100.0%");
    gridFields.setHeight("100.0%");
    gridFields.setContainerDataSource(getFieldsDataSource());
    gridFields.setColumnHeaders(
            new String[] { "Id", "Nome campo", "Descrio", "Nome campo SQL", "Tipo de Campo", "" });
    gridFields.setSizeFull();
    gridFields.addListener(new Property.ValueChangeListener() {

        public void valueChange(ValueChangeEvent event) {
            enableActions();
        }
    });

    gridFields.setColumnExpandRatio("NAME", 1);
    gridFields.setColumnWidth("ID", 70);
    gridFields.setColumnWidth("NAME", 300);
    gridFields.setColumnWidth("DESCRIPTION", 400);
    gridFields.setColumnWidth("SQL_FIELD_NAME", 200);
    gridFields.setColumnWidth("FIELD_TYPE", 200);
    gridFields.setColumnWidth(MobileServerData.PROPERTY_DATA, 1);
    gridFields.setSelectable(true);
    gridFields.setImmediate(true);

    layoutFields.addComponent(gridFields);
    layoutFields.setExpandRatio(gridFields, 1.0f);

    buttonsFields = new HorizontalLayout();
    buttonsFields.setImmediate(false);
    buttonsFields.setWidth("100.0%");
    buttonsFields.setHeight("30px");
    buttonsFields.setMargin(false);
    buttonsFields.setSpacing(true);

    btnAddField = new Button();
    btnAddField.setCaption("Adicionar");
    btnAddField.setImmediate(false);
    btnAddField.setWidth("-1px");
    btnAddField.setHeight("-1px");
    btnAddField.setIcon(new ThemeResource("icons/16/fieldAdd.png"));
    btnAddField.addListener(this);
    buttonsFields.addComponent(btnAddField);
    buttonsFields.setComponentAlignment(btnAddField, new Alignment(33));

    btnRemoveField = new Button();
    btnRemoveField.setCaption("Remover");
    btnRemoveField.setImmediate(false);
    btnRemoveField.setWidth("-1px");
    btnRemoveField.setHeight("-1px");
    btnRemoveField.setIcon(new ThemeResource("icons/16/fieldRemove.png"));
    btnRemoveField.addListener(this);
    buttonsFields.addComponent(btnRemoveField);
    buttonsFields.setComponentAlignment(btnRemoveField, new Alignment(33));

    btnEditField = new Button();
    btnEditField.setCaption("Editar");
    btnEditField.setImmediate(false);
    btnEditField.setWidth("-1px");
    btnEditField.setHeight("-1px");
    btnEditField.setIcon(new ThemeResource("icons/16/fieldEdit.png"));
    btnEditField.addListener(this);
    buttonsFields.addComponent(btnEditField);
    buttonsFields.setComponentAlignment(btnEditField, new Alignment(33));
    buttonsFields.setExpandRatio(btnEditField, 1);

    layoutParameters = new VerticalLayout();
    layoutParameters.setImmediate(false);
    layoutParameters.setWidth("100.0%");
    layoutParameters.setHeight("100.0%");
    layoutParameters.setMargin(false);

    gridParameters = new Table();
    gridParameters.setWidth("100.0%");
    gridParameters.setHeight("100.0%");
    gridParameters.setContainerDataSource(getParametersDataSource());
    gridParameters.setColumnHeaders(new String[] { "Id", "Nome Parmetro", "Descrio",
            "Tipo Dado Parmetro", "Tipo de Parmetro", "" });
    gridParameters.setSizeFull();
    gridParameters.setSelectable(true);
    gridParameters.setImmediate(true);

    gridParameters.setColumnExpandRatio("NAME", 1);
    gridParameters.setColumnWidth("ID", 70);
    gridParameters.setColumnWidth("NAME", 300);
    gridParameters.setColumnWidth("DESCRIPTION", 400);
    gridParameters.setColumnWidth("PARAMETER_DATA_TYPE", 200);
    gridParameters.setColumnWidth("PARAMETER_TYPE", 200);
    gridParameters.setColumnWidth(MobileServerData.PROPERTY_DATA, 0);
    gridParameters.addListener(new Property.ValueChangeListener() {

        public void valueChange(ValueChangeEvent event) {
            enableActions();
        }
    });
    layoutParameters.addComponent(gridParameters);
    layoutParameters.setExpandRatio(gridParameters, 1.0f);

    buttonsParameters = new HorizontalLayout();
    buttonsParameters.setImmediate(false);
    buttonsParameters.setWidth("100.0%");
    buttonsParameters.setHeight("30px");
    buttonsParameters.setMargin(false);
    buttonsParameters.setSpacing(true);

    btnAddParameter = new Button();
    btnAddParameter.setCaption("Adicionar");
    btnAddParameter.setImmediate(false);
    btnAddParameter.setWidth("-1px");
    btnAddParameter.setHeight("-1px");
    btnAddParameter.setIcon(new ThemeResource("icons/16/parameterAdd.png"));
    btnAddParameter.addListener(this);
    buttonsParameters.addComponent(btnAddParameter);
    buttonsParameters.setComponentAlignment(btnAddParameter, new Alignment(33));

    btnRemoveParameter = new Button();
    btnRemoveParameter.setCaption("Remover");
    btnRemoveParameter.setImmediate(false);
    btnRemoveParameter.setWidth("-1px");
    btnRemoveParameter.setHeight("-1px");
    btnRemoveParameter.setIcon(new ThemeResource("icons/16/parameterRemove.png"));
    btnRemoveParameter.addListener(this);
    buttonsParameters.addComponent(btnRemoveParameter);
    buttonsParameters.setComponentAlignment(btnRemoveParameter, new Alignment(33));

    btnEditParameter = new Button();
    btnEditParameter.setCaption("Editar");
    btnEditParameter.setImmediate(false);
    btnEditParameter.setWidth("-1px");
    btnEditParameter.setHeight("-1px");
    btnEditParameter.setIcon(new ThemeResource("icons/16/parameterEdit.png"));
    btnEditParameter.addListener(this);
    buttonsParameters.addComponent(btnEditParameter);
    buttonsParameters.setComponentAlignment(btnEditParameter, new Alignment(33));
    buttonsParameters.setExpandRatio(btnEditParameter, 1);

}

From source file:br.com.anteros.mobileserver.app.form.UserLoginForm.java

License:Apache License

private AbsoluteLayout buildAbsoluteLayout() {
    absoluteLayout = new AbsoluteLayout();
    absoluteLayout.setImmediate(false);//from w  w w  .  j  a v a  2 s.co m
    absoluteLayout.setWidth("100.0%");
    absoluteLayout.setHeight("100.0%");
    absoluteLayout.setMargin(false);

    lblPassword = new Label();
    lblPassword.setImmediate(false);
    lblPassword.setWidth("-1px");
    lblPassword.setHeight("-1px");
    lblPassword.setValue("Usurio");
    absoluteLayout.addComponent(lblPassword, "top:20.0px;left:16.0px;");

    lblUserName = new Label();
    lblUserName.setImmediate(false);
    lblUserName.setWidth("-1px");
    lblUserName.setHeight("-1px");
    lblUserName.setValue("Senha");
    absoluteLayout.addComponent(lblUserName, "top:54.0px;left:24.0px;");

    fldUserName = new TextField();
    fldUserName.setImmediate(false);
    fldUserName.setWidth("217px");
    fldUserName.setHeight("-1px");
    fldUserName.setSecret(false);
    absoluteLayout.addComponent(fldUserName, "top:20.0px;left:83.0px;");

    fldPassword = new PasswordField();
    fldPassword.setImmediate(false);
    fldPassword.setWidth("217px");
    fldPassword.setHeight("-1px");
    absoluteLayout.addComponent(fldPassword, "top:54.0px;left:83.0px;");

    btnLogin = new Button();
    btnLogin.setCaption("Login");
    btnLogin.setImmediate(true);
    btnLogin.setWidth("100px");
    btnLogin.setHeight("-1px");
    absoluteLayout.addComponent(btnLogin, "top:100.0px;left:200.0px;");

    return absoluteLayout;
}

From source file:co.edu.icesi.academ.client.perfiles.administrador.PanelAlcance.java

License:Open Source License

@AutoGenerated
private AbsoluteLayout buildMainLayout() {
    // common part: create layout
    mainLayout = new AbsoluteLayout();
    mainLayout.setImmediate(false);/*from ww w . j  ava2 s . co  m*/
    mainLayout.setWidth("840px");
    mainLayout.setHeight("440px");

    // top-level component properties
    setWidth("840px");
    setHeight("440px");

    // label_4
    label_4 = new Label();
    label_4.setImmediate(false);
    label_4.setWidth("-1px");
    label_4.setHeight("-1px");
    label_4.setValue("Competencias");
    mainLayout.addComponent(label_4, "top:220.0px;left:23.0px;");

    // button_guardarAlcance
    button_guardarAlcance = new Button();
    button_guardarAlcance.setCaption("Guardar Alcance");
    button_guardarAlcance.setImmediate(true);
    button_guardarAlcance.setWidth("-1px");
    button_guardarAlcance.setHeight("-1px");
    mainLayout.addComponent(button_guardarAlcance, "top:20.0px;left:20.0px;");

    // table_bloques
    table_bloques = new Table();
    table_bloques.setImmediate(false);
    table_bloques.setWidth("260px");
    table_bloques.setHeight("120px");
    mainLayout.addComponent(table_bloques, "top:60.0px;left:20.0px;");

    // tableMaterias
    tableMaterias = new Table();
    tableMaterias.setImmediate(false);
    tableMaterias.setWidth("520px");
    tableMaterias.setHeight("120px");
    mainLayout.addComponent(tableMaterias, "top:60.0px;left:300.0px;");

    // tableResultadoAlcance
    tableResultadoAlcance = new Table();
    tableResultadoAlcance.setImmediate(false);
    tableResultadoAlcance.setWidth("800px");
    tableResultadoAlcance.setHeight("140px");
    mainLayout.addComponent(tableResultadoAlcance, "top:300.0px;left:20.0px;");

    // tableCompetencias
    tableCompetencias = new Table();
    tableCompetencias.setCaption("Resultados aprendizaje");
    tableCompetencias.setImmediate(false);
    tableCompetencias.setWidth("700px");
    tableCompetencias.setHeight("80px");
    mainLayout.addComponent(tableCompetencias, "top:200.0px;left:120.0px;");

    return mainLayout;
}

From source file:co.edu.icesi.academ.client.perfiles.administrador.PanelBloquesMaterias.java

License:Open Source License

@AutoGenerated
private AbsoluteLayout buildMainLayout() {
    // common part: create layout
    mainLayout = new AbsoluteLayout();
    mainLayout.setImmediate(false);/*ww w.  j  a  v  a 2  s . co  m*/
    mainLayout.setWidth("840px");
    mainLayout.setHeight("440px");

    // top-level component properties
    setWidth("840px");
    setHeight("440px");

    // btn_crearBloque
    btn_crearBloque = new Button();
    btn_crearBloque.setCaption("Crear bloque de Materias:");
    btn_crearBloque.setImmediate(true);
    btn_crearBloque.setWidth("-1px");
    btn_crearBloque.setHeight("-1px");
    mainLayout.addComponent(btn_crearBloque, "top:20.0px;left:20.0px;");

    // btn_editarMateria
    btn_editarMateria = new Button();
    btn_editarMateria.setCaption("Editar Materia");
    btn_editarMateria.setImmediate(true);
    btn_editarMateria.setWidth("160px");
    btn_editarMateria.setHeight("-1px");
    mainLayout.addComponent(btn_editarMateria, "top:274.0px;left:20.0px;");

    // btn_editarBloque
    btn_editarBloque = new Button();
    btn_editarBloque.setCaption("Editar Bloque de Materias");
    btn_editarBloque.setImmediate(true);
    btn_editarBloque.setWidth("-1px");
    btn_editarBloque.setHeight("-1px");
    mainLayout.addComponent(btn_editarBloque, "top:20.0px;left:200.0px;");

    // btn_crearMateria
    btn_crearMateria = new Button();
    btn_crearMateria.setCaption("Crear materia");
    btn_crearMateria.setImmediate(true);
    btn_crearMateria.setWidth("160px");
    btn_crearMateria.setHeight("-1px");
    mainLayout.addComponent(btn_crearMateria, "top:242.0px;left:20.0px;");

    // btnAsociar
    btnAsociar = new Button();
    btnAsociar.setCaption(">>");
    btnAsociar.setImmediate(true);
    btnAsociar.setWidth("100.0%");
    btnAsociar.setHeight("-1px");
    mainLayout.addComponent(btnAsociar, "top:280.0px;right:280.0px;left:460.0px;");

    // btnDesasociar
    btnDesasociar = new Button();
    btnDesasociar.setCaption("<<");
    btnDesasociar.setImmediate(true);
    btnDesasociar.setWidth("100px");
    btnDesasociar.setHeight("-1px");
    mainLayout.addComponent(btnDesasociar, "top:306.0px;left:460.0px;");

    // tableBloques
    tableBloques = new Table();
    tableBloques.setImmediate(false);
    tableBloques.setWidth("800px");
    tableBloques.setHeight("123px");
    mainLayout.addComponent(tableBloques, "top:60.0px;left:20.0px;");

    // tableMatNoAso
    tableMatNoAso = new Table();
    tableMatNoAso.setImmediate(false);
    tableMatNoAso.setWidth("260px");
    tableMatNoAso.setHeight("180px");
    mainLayout.addComponent(tableMatNoAso, "top:220.0px;left:200.0px;");

    // tableMatAso
    tableMatAso = new Table();
    tableMatAso.setImmediate(false);
    tableMatAso.setWidth("260px");
    tableMatAso.setHeight("180px");
    mainLayout.addComponent(tableMatAso, "top:220.0px;left:560.0px;");

    return mainLayout;
}

From source file:co.edu.icesi.academ.client.perfiles.administrador.PanelCrearBloque.java

License:Open Source License

@AutoGenerated
private AbsoluteLayout buildMainLayout() {
    // common part: create layout
    mainLayout = new AbsoluteLayout();
    mainLayout.setImmediate(false);/*from  ww  w. j av  a 2s .co  m*/
    mainLayout.setWidth("360px");
    mainLayout.setHeight("140px");

    // top-level component properties
    setWidth("360px");
    setHeight("140px");

    // btnCrearBloque
    btnCrearBloque = new Button();
    btnCrearBloque.setCaption("Crear bloque");
    btnCrearBloque.setImmediate(true);
    btnCrearBloque.setWidth("238px");
    btnCrearBloque.setHeight("-1px");
    mainLayout.addComponent(btnCrearBloque, "top:80.0px;left:62.0px;");

    // textNombreBloque
    textNombreBloque = new TextField();
    textNombreBloque.setCaption("Nombre bloque");
    textNombreBloque.setImmediate(false);
    textNombreBloque.setWidth("100.0%");
    textNombreBloque.setHeight("-1px");
    mainLayout.addComponent(textNombreBloque, "top:40.0px;right:52.0px;left:60.0px;");

    return mainLayout;
}

From source file:co.edu.icesi.academ.client.perfiles.administrador.PanelCrearMateria.java

License:Open Source License

@AutoGenerated
private AbsoluteLayout buildMainLayout() {
    // common part: create layout
    mainLayout = new AbsoluteLayout();
    mainLayout.setImmediate(false);/* w ww . ja  v  a2  s. co m*/
    mainLayout.setWidth("360px");
    mainLayout.setHeight("180px");

    // top-level component properties
    setWidth("360px");
    setHeight("180px");

    // btnGuardar
    btnGuardar = new Button();
    btnGuardar.setCaption("Guardar");
    btnGuardar.setImmediate(true);
    btnGuardar.setWidth("240px");
    btnGuardar.setHeight("-1px");
    mainLayout.addComponent(btnGuardar, "top:120.0px;left:60.0px;");

    // txt_codigo
    txt_codigo = new TextField();
    txt_codigo.setCaption("Cdigo");
    txt_codigo.setImmediate(false);
    txt_codigo.setWidth("240px");
    txt_codigo.setHeight("-1px");
    mainLayout.addComponent(txt_codigo, "top:40.0px;left:60.0px;");

    // txt_nombre
    txt_nombre = new TextField();
    txt_nombre.setCaption("Nombre");
    txt_nombre.setImmediate(false);
    txt_nombre.setWidth("240px");
    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.PanelCrearPrograma.java

License:Open Source License

@AutoGenerated
private AbsoluteLayout buildMainLayout() {
    // common part: create layout
    mainLayout = new AbsoluteLayout();
    mainLayout.setImmediate(false);// w w  w.ja v a 2 s . c  om
    mainLayout.setWidth("440px");
    mainLayout.setHeight("300px");

    // top-level component properties
    setWidth("440px");
    setHeight("300px");

    // btn_guardar
    btn_guardar = new Button();
    btn_guardar.setCaption("Guardar");
    btn_guardar.setImmediate(true);
    btn_guardar.setWidth("320px");
    btn_guardar.setHeight("-1px");
    mainLayout.addComponent(btn_guardar, "top:240.0px;left:60.0px;");

    // txt_nombre
    txt_nombre = new TextField();
    txt_nombre.setCaption("Nombre");
    txt_nombre.setImmediate(false);
    txt_nombre.setWidth("320px");
    txt_nombre.setHeight("-1px");
    mainLayout.addComponent(txt_nombre, "top:40.0px;left:60.0px;");

    // txt_descripcion
    txt_descripcion = new TextArea();
    txt_descripcion.setCaption("Descripcin");
    txt_descripcion.setImmediate(false);
    txt_descripcion.setWidth("320px");
    txt_descripcion.setHeight("108px");
    mainLayout.addComponent(txt_descripcion, "top:120.0px;right:60.0px;");

    // txtCodigo
    txtCodigo = new TextField();
    txtCodigo.setCaption("Cdigo");
    txtCodigo.setImmediate(false);
    txtCodigo.setWidth("320px");
    txtCodigo.setHeight("-1px");
    mainLayout.addComponent(txtCodigo, "top:80.0px;left:60.0px;");

    return mainLayout;
}

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);//  w w w.j a  v  a2s.  com
    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 ww  .  j a  v a  2s. c  o  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;
}