Example usage for com.vaadin.ui TextArea TextArea

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

Introduction

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

Prototype

public TextArea() 

Source Link

Document

Constructs an empty TextArea.

Usage

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 ww w.ja v a 2 s . c om
    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.propietario.CrearCompetencia.java

License:Open Source License

@AutoGenerated
private AbsoluteLayout buildMainLayout() {
    // common part: create layout
    mainLayout = new AbsoluteLayout();
    mainLayout.setImmediate(false);/*from  www.  j  ava 2  s  .  c o  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:com.anphat.cms.appparams.ui.DialogCreateAppParams.java

@AutoGenerated
private GridLayout buildGridLayout_1() {
    // common part: create layout
    gridLayout_1 = new GridLayout();
    gridLayout_1.setStyleName("custom-feildset");
    gridLayout_1.setCaption(MakeURL.makeURLForGrid(BundleUtils.getString("appParam.fieldset.title")));
    gridLayout_1.setCaptionAsHtml(true);
    gridLayout_1.setImmediate(false);/*from   ww  w.  j  a  v a2 s . c om*/
    gridLayout_1.setWidth("100.0%");
    gridLayout_1.setHeight("-1px");
    gridLayout_1.setMargin(true);
    gridLayout_1.setSpacing(true);
    gridLayout_1.setColumns(4);
    gridLayout_1.setRows(4);

    // lblParamCode
    lblParamCode = new Label();
    lblParamCode.setImmediate(false);
    lblParamCode.setWidth("-1px");
    lblParamCode.setHeight("-1px");
    lblParamCode.setValue(BundleUtils.getString("lb.appParam.code"));
    gridLayout_1.addComponent(lblParamCode, 0, 0);

    txtParamCode = new TextField();
    txtParamCode.setImmediate(true);
    txtParamCode.setWidth("100.0%");
    txtParamCode.setHeight("-1px");
    txtParamCode.setRequired(true);
    txtParamCode.setMaxLength(50);
    //        StringBuilder messageError = new StringBuilder();
    //        messageError.append(BundleUtils.getString("lb.appParam.code"));
    //        messageError.append(BundleUtils.getString(" "));
    //        messageError.append(BundleUtils.getString("message.error.numberformat"));
    //        txtParamCode.addValidator(new RegexpValidator("[0-9]+", messageError.toString()));
    gridLayout_1.addComponent(txtParamCode, 1, 0);
    // lblParamName
    lblParamName = new Label();
    lblParamName.setImmediate(false);
    lblParamName.setWidth("100%");
    lblParamName.setHeight("-1px");
    lblParamName.setValue(BundleUtils.getString("lb.appParam.name"));
    gridLayout_1.addComponent(lblParamName, 2, 0);

    txtParamName = new TextField();
    txtParamName.setImmediate(true);
    txtParamName.setWidth("100.0%");
    txtParamName.setHeight("-1px");
    txtParamName.setRequired(true);
    txtParamName.setMaxLength(200);
    //        txtParamName.addValidator(new RegexpValidator("^[a-zA-Z0-9 -_]+$", BundleUtils.getString("lb.appParam.name")+" "+BundleUtils.getString("message.error.special.char")));
    gridLayout_1.addComponent(txtParamName, 3, 0);

    // lblParamType
    lblParamType = new Label();
    lblParamType.setImmediate(false);
    lblParamType.setWidth("100%");
    lblParamType.setHeight("-1px");
    lblParamType.setValue(BundleUtils.getString("lb.appParam.type"));
    gridLayout_1.addComponent(lblParamType, 0, 1);

    txtParamType = new TextField();
    txtParamType.setImmediate(true);
    txtParamType.setWidth("100.0%");
    txtParamType.setHeight("-1px");
    txtParamType.setRequired(true);
    txtParamType.setMaxLength(100);
    txtParamType.addValidator(new RegexpValidator("^[a-zA-Z0-9-_]+$", BundleUtils.getString("lb.appParam.type")
            + " " + BundleUtils.getString("message.error.special.char")));
    gridLayout_1.addComponent(txtParamType, 1, 1);
    // lblParamOrder
    lblParamOrder = new Label();
    lblParamOrder.setImmediate(false);
    lblParamOrder.setWidth("100%");
    lblParamOrder.setHeight("-1px");
    lblParamOrder.setValue(BundleUtils.getString("lb.appParam.order"));
    gridLayout_1.addComponent(lblParamOrder, 2, 1);

    // cboImplementer
    txtParamOrder = new TextField();
    txtParamOrder.setImmediate(true);
    txtParamOrder.setWidth("100.0%");
    txtParamOrder.setHeight("-1px");
    txtParamOrder.setMaxLength(5);
    StringBuilder messageErrorOrder = new StringBuilder();
    messageErrorOrder.append(BundleUtils.getString("lb.appParam.order"));
    messageErrorOrder.append(BundleUtils.getString(" "));
    messageErrorOrder.append(BundleUtils.getString("message.error.numberformat"));
    txtParamOrder.addValidator(new RegexpValidator("[0-9]+", messageErrorOrder.toString()));
    gridLayout_1.addComponent(txtParamOrder, 3, 1);

    // lblStatus
    lblStatus = new Label();
    lblStatus.setImmediate(false);
    lblStatus.setWidth("100%");
    lblStatus.setHeight("-1px");
    lblStatus.setValue(BundleUtils.getString("lb.appParam.status"));
    gridLayout_1.addComponent(lblStatus, 0, 2);

    cboStatus = new ComboBox();
    cboStatus.setImmediate(true);
    cboStatus.setTextInputAllowed(false);
    cboStatus.setFilteringMode(FilteringMode.OFF);
    cboStatus.setWidth("100.0%");
    cboStatus.setHeight("-1px");
    cboStatus.setStyleName("notRequireStyle");
    gridLayout_1.addComponent(cboStatus, 1, 2);

    // lblToDate
    lblParamDesc = new Label();
    lblParamDesc.setImmediate(false);
    lblParamDesc.setWidth("100%");
    lblParamDesc.setHeight("-1px");
    lblParamDesc.setValue(BundleUtils.getString("lb.appParam.description"));
    gridLayout_1.addComponent(lblParamDesc, 2, 2);

    // pdfToDate
    txtAreaParamDesc = new TextArea();
    txtAreaParamDesc.setImmediate(true);
    txtAreaParamDesc.setWidth("100.0%");
    txtAreaParamDesc.setHeight("-1px");
    txtAreaParamDesc.setMaxLength(300);
    //        txtAreaParamDesc.addValidator(new StringLengthValidator(BundleUtils.getString("message.error.overlengthString")));
    gridLayout_1.addComponent(txtAreaParamDesc, 3, 2);

    //        // btnReset
    //        GridLayout button = new GridLayout(1, 1);
    //        button.setWidth("100%");
    //        button.setHeight("-1px");
    //        btnReset = new Button();
    //        btnReset.setStyleName("v-button-link");
    //        btnReset.setIcon(new ThemeResource("img/refresh-icon.png"));
    //        btnReset.setImmediate(true);
    //        btnReset.setHeight("-1px");
    //        btnReset.setDescription(Constants.BUTTON_REFRESH);
    //        button.addComponent(btnReset);
    //        button.setComponentAlignment(btnReset, Alignment.TOP_RIGHT);
    //        gridLayout_1.addComponent(button, 3, 3);
    return gridLayout_1;
}

From source file:com.anphat.list.ui.DialogCreateDepartment.java

@AutoGenerated
private GridLayout buildGridLayoutDepartInfo() {
    // common part: create layout
    gridLayoutDepartInfo = new GridLayout();
    gridLayoutDepartInfo.setStyleName("custom-feildset");
    gridLayoutDepartInfo//  ww w  .jav  a2  s  . c  o m
            .setCaption(MakeURL.makeURLForGrid(BundleUtils.getString("department.fieldset.title.deptInfo")));
    gridLayoutDepartInfo.setCaptionAsHtml(true);
    gridLayoutDepartInfo.setImmediate(true);
    gridLayoutDepartInfo.setWidth("100.0%");
    gridLayoutDepartInfo.setHeight("-1px");
    gridLayoutDepartInfo.setMargin(true);
    gridLayoutDepartInfo.setSpacing(true);
    gridLayoutDepartInfo.setColumns(4);
    gridLayoutDepartInfo.setRows(7);

    // lblDepartmentCode
    lblDepartmentCode = new Label();
    lblDepartmentCode.setImmediate(true);
    lblDepartmentCode.setWidth("100.0%");
    lblDepartmentCode.setHeight("-1px");
    lblDepartmentCode.setValue(BundleUtils.getString("lb.deptstaff.dept.code"));
    gridLayoutDepartInfo.addComponent(lblDepartmentCode, 0, 0);

    // txtDepartmentCode
    txtDepartmentCode = new TextField();
    txtDepartmentCode.setImmediate(true);
    txtDepartmentCode.setWidth("100.0%");
    txtDepartmentCode.setHeight("-1px");
    txtDepartmentCode.setMaxLength(50);
    txtDepartmentCode.setRequired(true);
    txtDepartmentCode.addValidator(
            new RegexpValidator("^[a-zA-Z0-9-_]+$", BundleUtils.getString("lb.deptstaff.dept.code") + " "
                    + BundleUtils.getString("message.error.code.format")));
    gridLayoutDepartInfo.addComponent(txtDepartmentCode, 1, 0);

    // lblDepartmentName
    lblDepartmentName = new Label();
    lblDepartmentName.setImmediate(true);
    lblDepartmentName.setWidth("100.0%");
    lblDepartmentName.setHeight("-1px");
    lblDepartmentName.setValue(BundleUtils.getString("lb.deptstaff.dept.name"));
    gridLayoutDepartInfo.addComponent(lblDepartmentName, 2, 0);

    // txtDepartmentName
    txtDepartmentName = new TextField();
    txtDepartmentName.setImmediate(true);
    txtDepartmentName.setWidth("100.0%");
    txtDepartmentName.setHeight("-1px");
    txtDepartmentName.setMaxLength(100);
    txtDepartmentName.setRequired(true);
    gridLayoutDepartInfo.addComponent(txtDepartmentName, 3, 0);

    // lblSuperiorUnit
    //        lblSuperiorUnit = new Label();
    //        lblSuperiorUnit.setImmediate(true);
    //        lblSuperiorUnit.setWidth("100.0%");
    //        lblSuperiorUnit.setHeight("-1px");
    //        lblSuperiorUnit.setValue(BundleUtils.getString("lb.deptstaff.dept.level"));
    //        gridLayoutDepartInfo.addComponent(lblSuperiorUnit, 0, 1);

    // txtSuperiorUnit
    //        txtSuperiorUnit = new TextField();
    //        txtSuperiorUnit.setImmediate(true);
    //        txtSuperiorUnit.setWidth("100.0%");
    //        txtSuperiorUnit.setHeight("-1px");
    //        comboDeptTopLevel = new MappingCombobox(3, 1);
    //        comboDeptTopLevel.getNameCombo().setRequired(true);
    //        gridLayoutDepartInfo.addComponent(comboDeptTopLevel.getLayout(), 1, 1, 3, 1);

    // lblDescription
    lblDescription = new Label();
    lblDescription.setImmediate(true);
    lblDescription.setWidth("100.0%");
    lblDescription.setHeight("-1px");
    lblDescription.setValue(BundleUtils.getString("lb.deptstaff.desc"));
    gridLayoutDepartInfo.addComponent(lblDescription, 0, 1);

    // textArea_1
    textArea_1 = new TextArea();
    textArea_1.setImmediate(true);
    textArea_1.setWidth("100.0%");
    textArea_1.setHeight("-1px");
    textArea_1.setMaxLength(300);
    textArea_1.setStyleName("notRequireStyle");
    gridLayoutDepartInfo.addComponent(textArea_1, 1, 1, 3, 1);

    // lblStatus
    lblStatus = new Label();
    lblStatus.setImmediate(true);
    lblStatus.setWidth("100.0%");
    lblStatus.setHeight("-1px");
    lblStatus.setValue(BundleUtils.getString("lb.deptstaff.common.status"));
    gridLayoutDepartInfo.addComponent(lblStatus, 0, 2);

    // cbxStatus
    cbxStatus = new ComboBox();
    cbxStatus.setImmediate(true);
    cbxStatus.setTextInputAllowed(false);
    cbxStatus.setFilteringMode(FilteringMode.OFF);
    cbxStatus.setWidth("100.0%");
    cbxStatus.setHeight("-1px");
    cbxStatus.setRequired(true);
    gridLayoutDepartInfo.addComponent(cbxStatus, 1, 2);

    // lblPhoneNumber
    lblPhoneNumber = new Label();
    lblPhoneNumber.setImmediate(true);
    lblPhoneNumber.setWidth("100.0%");
    lblPhoneNumber.setHeight("-1px");
    lblPhoneNumber.setValue(BundleUtils.getString("lb.deptstaff.common.phone"));
    gridLayoutDepartInfo.addComponent(lblPhoneNumber, 2, 2);

    // txtPhoneNumber
    txtPhoneNumber = new TextField();
    txtPhoneNumber.setImmediate(true);
    txtPhoneNumber.setInputPrompt(BundleUtils.getString("common.phone.format"));
    txtPhoneNumber.setWidth("100.0%");
    txtPhoneNumber.setHeight("-1px");
    txtPhoneNumber.setMaxLength(100);
    //message
    //          StringBuilder messageErrorOrder = new StringBuilder();
    //        messageErrorOrder.append(BundleUtils.getString("lb.deptstaff.common.phone"));
    //        messageErrorOrder.append(BundleUtils.getString(" "));
    //        messageErrorOrder.append(BundleUtils.getString("message.error.phoneformat"));
    //        txtPhoneNumber.addValidator(new RegexpValidator("^\\(?(\\d{3,4})\\)?[- ]?(\\d{3})[- ]?(\\d{4})$", messageErrorOrder.toString()));
    txtPhoneNumber.setStyleName("notRequireStyle");
    gridLayoutDepartInfo.addComponent(txtPhoneNumber, 3, 2);

    // lblFax
    //        lblFax = new Label();
    //        lblFax.setImmediate(true);
    //        lblFax.setWidth("100.0%");
    //        lblFax.setHeight("-1px");
    //        lblFax.setValue(BundleUtils.getString("lb.deptstaff.fax"));
    //        gridLayoutDepartInfo.addComponent(lblFax, 0, 4);

    // txtFax
    //        txtFax = new TextField();
    //        txtFax.setImmediate(true);
    //        txtFax.setWidth("100.0%");
    //        txtFax.setHeight("-1px");
    //        txtFax.setMaxLength(100);
    //message
    //        StringBuilder messageErrorFax = new StringBuilder();
    //        messageErrorFax.append(BundleUtils.getString("lb.deptstaff.fax"));
    //        messageErrorFax.append(BundleUtils.getString(" "));
    //        messageErrorFax.append(BundleUtils.getString("message.error.numberformat"));
    //        txtFax.addValidator(new RegexpValidator("[0-9]+", messageErrorFax.toString()));
    //        txtFax.setStyleName("notRequireStyle");
    //        gridLayoutDepartInfo.addComponent(txtFax, 1, 4);

    // lblEmail
    lblEmail = new Label();
    lblEmail.setImmediate(true);
    lblEmail.setWidth("100.0%");
    lblEmail.setHeight("-1px");
    lblEmail.setValue(BundleUtils.getString("lb.deptstaff.common.email"));
    gridLayoutDepartInfo.addComponent(lblEmail, 2, 3);

    // txtEmail
    txtEmail = new TextField();
    txtEmail.setImmediate(true);
    txtEmail.addValidator(new EmailValidator(BundleUtils.getString("common.error.email")));
    txtEmail.setRequiredError(BundleUtils.getString("common.error.email"));
    txtEmail.setInputPrompt(BundleUtils.getString("common.email.hint.format"));
    txtEmail.setWidth("100.0%");
    txtEmail.setHeight("-1px");
    txtEmail.setMaxLength(100);
    txtEmail.setStyleName("notRequireStyle");
    gridLayoutDepartInfo.addComponent(txtEmail, 3, 3);

    // lblAddress
    lblAddress = new Label();
    lblAddress.setImmediate(true);
    lblAddress.setWidth("100.0%");
    lblAddress.setHeight("-1px");
    lblAddress.setValue(BundleUtils.getString("lb.deptstaff.dept.addr"));
    gridLayoutDepartInfo.addComponent(lblAddress, 0, 4);

    // txtAddress
    txtAddress = new TextField();
    txtAddress.setImmediate(true);
    txtAddress.setWidth("100.0%");
    txtAddress.setHeight("-1px");
    txtAddress.setMaxLength(300);
    //        txtAddress.addValidator(new StringLengthValidator(BundleUtils.getString("common.error.length"), 0, 200, true));
    txtAddress.setRequired(true);
    txtAddress.setStyleName("notRequireStyle");
    gridLayoutDepartInfo.addComponent(txtAddress, 1, 4, 3, 4);

    // lblContact
    //        lblContact = new Label();
    //        lblContact.setImmediate(true);
    //        lblContact.setWidth("100.0%");
    //        lblContact.setHeight("-1px");
    //        lblContact.setValue(BundleUtils.getString("lb.deptstaff.contact.person"));
    //        gridLayoutDepartInfo.addComponent(lblContact, 0, 5);
    //
    //        // txtContact
    //        txtContact = new TextField();
    //        txtContact.setImmediate(true);
    //        txtContact.setWidth("100.0%");
    //        txtContact.setHeight("-1px");
    //        txtContact.setMaxLength(200);
    //        txtContact.setStyleName("notRequireStyle");
    //        gridLayoutDepartInfo.addComponent(txtContact, 1, 5, 3, 5);

    return gridLayoutDepartInfo;
}

From source file:com.anphat.list.ui.PopupAddObjects.java

public PopupAddObjects() {
    mainLayout.setImmediate(true);//from  ww w.java 2  s  .  c om
    mainLayout.setWidth("100%");
    mainLayout.setHeight("-1px");
    mainLayout.setMargin(true);
    mainLayout.setSpacing(true);
    mainLayout.setStyleName("main-popup");

    addObjectsLayout = new GridLayout();
    addObjectsLayout.setImmediate(true);
    addObjectsLayout.setWidth("100.0%");
    addObjectsLayout.setHeight("-1px");
    addObjectsLayout.setMargin(true);
    addObjectsLayout.setSpacing(true);
    addObjectsLayout.setColumns(4);
    addObjectsLayout.setRows(3);
    setWidth("70.0%");
    setHeight("-1px");
    setModal(true);
    lblCode = new Label();
    lblCode.setImmediate(true);
    lblCode.setWidth("100.0%");
    lblCode.setHeight("-1px");
    lblCode.setValue(BundleUtils.getString("label.Objects.code"));
    addObjectsLayout.addComponent(lblCode, 0, 0);

    txtCode = new TextField();
    txtCode.setImmediate(true);
    txtCode.setWidth("100.0%");
    txtCode.setHeight("-1px");
    addObjectsLayout.addComponent(txtCode, 1, 0);
    lblName = new Label();
    lblName.setImmediate(true);
    lblName.setWidth("100.0%");
    lblName.setHeight("-1px");
    lblName.setValue(BundleUtils.getString("label.Objects.name"));
    addObjectsLayout.addComponent(lblName, 2, 0);

    txtName = new TextField();
    txtName.setImmediate(true);
    txtName.setWidth("100.0%");
    txtName.setHeight("-1px");
    addObjectsLayout.addComponent(txtName, 3, 0);
    lblUrl = new Label();
    lblUrl.setImmediate(true);
    lblUrl.setWidth("100.0%");
    lblUrl.setHeight("-1px");
    lblUrl.setValue(BundleUtils.getString("label.Objects.url"));
    addObjectsLayout.addComponent(lblUrl, 0, 1);

    txtUrl = new TextField();
    txtUrl.setImmediate(true);
    txtUrl.setWidth("100.0%");
    txtUrl.setHeight("-1px");
    addObjectsLayout.addComponent(txtUrl, 1, 1);
    lblDescription = new Label();
    lblDescription.setImmediate(true);
    lblDescription.setWidth("100.0%");
    lblDescription.setHeight("-1px");
    lblDescription.setValue(BundleUtils.getString("label.Objects.description"));
    addObjectsLayout.addComponent(lblDescription, 2, 1);

    txtDescription = new TextArea();
    txtDescription.setImmediate(true);
    txtDescription.setWidth("100.0%");
    txtDescription.setHeight("-1px");
    addObjectsLayout.addComponent(txtDescription, 3, 1);
    lblObjectType = new Label();
    lblObjectType.setImmediate(true);
    lblObjectType.setWidth("100.0%");
    lblObjectType.setHeight("-1px");
    lblObjectType.setValue(BundleUtils.getString("label.Objects.objectType"));
    addObjectsLayout.addComponent(lblObjectType, 0, 2);

    txtObjectType = new TextField();
    txtObjectType.setImmediate(true);
    txtObjectType.setWidth("100.0%");
    txtObjectType.setHeight("-1px");
    addObjectsLayout.addComponent(txtObjectType, 1, 2);
    lblStatus = new Label();
    lblStatus.setImmediate(true);
    lblStatus.setWidth("100.0%");
    lblStatus.setHeight("-1px");
    lblStatus.setValue(BundleUtils.getString("label.Objects.status"));
    addObjectsLayout.addComponent(lblStatus, 2, 2);

    cbxStatus = new ComboBox();
    cbxStatus.setImmediate(true);
    cbxStatus.setWidth("100.0%");
    cbxStatus.setHeight("-1px");
    addObjectsLayout.addComponent(cbxStatus, 3, 2);

    mainLayout.addComponent(addObjectsLayout);

    GridManyButton gridBtnPrint = new GridManyButton(new String[]{BundleUtils.getString("btn.ok"), BundleUtils.getString("btn.close")});
    mainLayout.addComponent(gridBtnPrint);
    btnSave = gridBtnPrint.getBtnCommon().get(0);
    btnClose = gridBtnPrint.getBtnCommon().get(1);
    setContent(mainLayout);
}

From source file:com.anphat.list.ui.PopupAddRoles.java

public PopupAddRoles() {
    mainLayout.setImmediate(true);/*from   www  .  j a  va2 s . c o  m*/
    mainLayout.setWidth("100%");
    mainLayout.setHeight("-1px");
    mainLayout.setMargin(true);
    mainLayout.setSpacing(true);
    mainLayout.setStyleName("main-popup");

    addRolesLayout = new GridLayout();
    addRolesLayout.setImmediate(false);
    addRolesLayout.setWidth("100.0%");
    addRolesLayout.setHeight("-1px");
    addRolesLayout.setMargin(true);
    addRolesLayout.setSpacing(true);
    addRolesLayout.setColumns(4);
    addRolesLayout.setRows(2);
    setWidth("70.0%");
    setHeight("-1px");
    setModal(true);
    lblCode = new Label();
    lblCode.setImmediate(false);
    lblCode.setWidth("100.0%");
    lblCode.setHeight("-1px");
    lblCode.setValue(BundleUtils.getString("label.Roles.code"));
    addRolesLayout.addComponent(lblCode, 0, 0);

    txtCode = new TextField();
    txtCode.setImmediate(false);
    txtCode.setWidth("100.0%");
    txtCode.setHeight("-1px");
    addRolesLayout.addComponent(txtCode, 1, 0);
    lblName = new Label();
    lblName.setImmediate(false);
    lblName.setWidth("100.0%");
    lblName.setHeight("-1px");
    lblName.setValue(BundleUtils.getString("label.Roles.name"));
    addRolesLayout.addComponent(lblName, 2, 0);

    txtName = new TextField();
    txtName.setImmediate(false);
    txtName.setWidth("100.0%");
    txtName.setHeight("-1px");
    addRolesLayout.addComponent(txtName, 3, 0);
    lblDescription = new Label();
    lblDescription.setImmediate(false);
    lblDescription.setWidth("100.0%");
    lblDescription.setHeight("-1px");
    lblDescription.setValue(BundleUtils.getString("label.Roles.description"));
    addRolesLayout.addComponent(lblDescription, 0, 1);

    txtDescription = new TextArea();
    txtDescription.setImmediate(false);
    txtDescription.setWidth("100.0%");
    txtDescription.setHeight("-1px");
    addRolesLayout.addComponent(txtDescription, 1, 1);
    lblStatus = new Label();
    lblStatus.setImmediate(false);
    lblStatus.setWidth("100.0%");
    lblStatus.setHeight("-1px");
    lblStatus.setValue(BundleUtils.getString("label.Roles.status"));
    addRolesLayout.addComponent(lblStatus, 2, 1);

    cbxStatus = new ComboBox();
    cbxStatus.setImmediate(false);
    cbxStatus.setWidth("100.0%");
    cbxStatus.setHeight("-1px");
    addRolesLayout.addComponent(cbxStatus, 3, 1);

    mainLayout.addComponent(addRolesLayout);

    GridManyButton gridBtnPrint = new GridManyButton(new String[]{Constants.BUTTON_SAVE, Constants.BUTTON_CLOSE});
    mainLayout.addComponent(gridBtnPrint);
    btnSave = gridBtnPrint.getBtnCommon().get(0);
    btnClose = gridBtnPrint.getBtnCommon().get(1);
    setContent(mainLayout);
    txtCode.focus();
}

From source file:com.anphat.list.ui.PopupAddServices.java

public PopupAddServices() {
    mainLayout.setImmediate(true);/* w  ww  .  ja  v  a 2s.c  o  m*/
    mainLayout.setWidth("100%");
    mainLayout.setHeight("-1px");
    mainLayout.setMargin(true);
    mainLayout.setSpacing(true);
    mainLayout.setStyleName("main-popup");

    addServicesLayout = new GridLayout();
    addServicesLayout.setImmediate(false);
    addServicesLayout.setWidth("100.0%");
    addServicesLayout.setHeight("-1px");
    addServicesLayout.setMargin(true);
    addServicesLayout.setSpacing(true);
    addServicesLayout.setColumns(4);
    addServicesLayout.setRows(10);
    setWidth("70.0%");
    setHeight("-1px");
    setModal(true);
    lblCode = new Label();
    lblCode.setImmediate(false);
    lblCode.setWidth("100.0%");
    lblCode.setHeight("-1px");
    lblCode.setValue(BundleUtils.getString("label.Services.code"));
    addServicesLayout.addComponent(lblCode, 0, 0);

    txtCode = new TextField();
    txtCode.setImmediate(false);
    txtCode.setWidth("100.0%");
    txtCode.setHeight("-1px");
    addServicesLayout.addComponent(txtCode, 1, 0);
    lblDescription = new Label();
    lblDescription.setImmediate(false);
    lblDescription.setWidth("100.0%");
    lblDescription.setHeight("-1px");
    lblDescription.setValue(BundleUtils.getString("label.Services.description"));
    addServicesLayout.addComponent(lblDescription, 2, 0);

    txtDescription = new TextArea();
    txtDescription.setImmediate(false);
    txtDescription.setWidth("100.0%");
    txtDescription.setHeight("-1px");
    addServicesLayout.addComponent(txtDescription, 3, 0);
    lblExpiryDate = new Label();
    lblExpiryDate.setImmediate(false);
    lblExpiryDate.setWidth("100.0%");
    lblExpiryDate.setHeight("-1px");
    lblExpiryDate.setValue(BundleUtils.getString("label.Services.expiryDate"));
    addServicesLayout.addComponent(lblExpiryDate, 0, 1);

    popExpiryDate = new PopupDateField();
    popExpiryDate.setImmediate(false);
    popExpiryDate.setWidth("100.0%");
    popExpiryDate.setHeight("-1px");
    addServicesLayout.addComponent(popExpiryDate, 1, 1);
    lblIssueDate = new Label();
    lblIssueDate.setImmediate(false);
    lblIssueDate.setWidth("100.0%");
    lblIssueDate.setHeight("-1px");
    lblIssueDate.setValue(BundleUtils.getString("label.Services.issueDate"));
    addServicesLayout.addComponent(lblIssueDate, 2, 1);

    popIssueDate = new PopupDateField();
    popIssueDate.setImmediate(false);
    popIssueDate.setWidth("100.0%");
    popIssueDate.setHeight("-1px");
    addServicesLayout.addComponent(popIssueDate, 3, 1);
    lblName = new Label();
    lblName.setImmediate(false);
    lblName.setWidth("100.0%");
    lblName.setHeight("-1px");
    lblName.setValue(BundleUtils.getString("label.Services.name"));
    addServicesLayout.addComponent(lblName, 0, 2);

    txtName = new TextField();
    txtName.setImmediate(false);
    txtName.setWidth("100.0%");
    txtName.setHeight("-1px");
    addServicesLayout.addComponent(txtName, 1, 2);
    lblServiceGroup = new Label();
    lblServiceGroup.setImmediate(false);
    lblServiceGroup.setWidth("100.0%");
    lblServiceGroup.setHeight("-1px");
    lblServiceGroup.setValue(BundleUtils.getString("label.Services.serviceGroup"));
    addServicesLayout.addComponent(lblServiceGroup, 2, 2);

    txtServiceGroup = new TextField();
    txtServiceGroup.setImmediate(false);
    txtServiceGroup.setWidth("100.0%");
    txtServiceGroup.setHeight("-1px");
    addServicesLayout.addComponent(txtServiceGroup, 3, 2);
    lblStatus = new Label();
    lblStatus.setImmediate(false);
    lblStatus.setWidth("100.0%");
    lblStatus.setHeight("-1px");
    lblStatus.setValue(BundleUtils.getString("label.Services.status"));
    addServicesLayout.addComponent(lblStatus, 0, 3);

    cbxStatus = new ComboBox();
    cbxStatus.setImmediate(false);
    cbxStatus.setWidth("100.0%");
    cbxStatus.setHeight("-1px");
    addServicesLayout.addComponent(cbxStatus, 1, 3);
    lblType = new Label();
    lblType.setImmediate(false);
    lblType.setWidth("100.0%");
    lblType.setHeight("-1px");
    lblType.setValue(BundleUtils.getString("label.Services.type"));
    addServicesLayout.addComponent(lblType, 2, 3);

    cbxType = new ComboBox();
    cbxType.setImmediate(false);
    cbxType.setWidth("100.0%");
    cbxType.setHeight("-1px");
    addServicesLayout.addComponent(cbxType, 3, 3);

    mainLayout.addComponent(addServicesLayout);

    GridManyButton gridBtnPrint = new GridManyButton(
            new String[] { Constants.BUTTON_SAVE, Constants.BUTTON_CLOSE });
    mainLayout.addComponent(gridBtnPrint);
    btnSave = gridBtnPrint.getBtnCommon().get(0);
    btnClose = gridBtnPrint.getBtnCommon().get(1);
    setContent(mainLayout);
    txtCode.focus();
}

From source file:com.anphat.list.ui.RolesSearchPanel.java

public void buildSearchLayout() {
    searchLayout = new GridLayout();
    searchLayout.setCaption(MakeURL.makeURLForGrid(BundleUtils.getString("caption.search.info")));
    searchLayout.setCaptionAsHtml(true);
    searchLayout.setImmediate(false);/*  ww w  . j a  v  a 2s  . com*/
    searchLayout.setWidth("100.0%");
    searchLayout.setHeight("-1px");
    searchLayout.setMargin(true);
    searchLayout.setSpacing(true);
    searchLayout.setColumns(4);
    searchLayout.setRows(2);
    searchLayout.setStyleName("custom-feildset");

    lblCode = new Label();
    lblCode.setImmediate(false);
    lblCode.setWidth("100.0%");
    lblCode.setHeight("-1px");
    lblCode.setValue(BundleUtils.getString("label.Roles.code"));
    searchLayout.addComponent(lblCode, 0, 0);

    txtCode = new TextField();
    txtCode.setImmediate(false);
    txtCode.setWidth("100.0%");
    txtCode.setHeight("-1px");
    searchLayout.addComponent(txtCode, 1, 0);
    lblName = new Label();
    lblName.setImmediate(false);
    lblName.setWidth("100.0%");
    lblName.setHeight("-1px");
    lblName.setValue(BundleUtils.getString("label.Roles.name"));
    searchLayout.addComponent(lblName, 2, 0);

    txtName = new TextField();
    txtName.setImmediate(false);
    txtName.setWidth("100.0%");
    txtName.setHeight("-1px");
    searchLayout.addComponent(txtName, 3, 0);
    lblDescription = new Label();
    lblDescription.setImmediate(false);
    lblDescription.setWidth("100.0%");
    lblDescription.setHeight("-1px");
    lblDescription.setValue(BundleUtils.getString("label.Roles.description"));
    searchLayout.addComponent(lblDescription, 0, 1);

    txtDescription = new TextArea();
    txtDescription.setImmediate(false);
    txtDescription.setWidth("100.0%");
    txtDescription.setHeight("-1px");
    searchLayout.addComponent(txtDescription, 1, 1);
    lblStatus = new Label();
    lblStatus.setImmediate(false);
    lblStatus.setWidth("100.0%");
    lblStatus.setHeight("-1px");
    lblStatus.setValue(BundleUtils.getString("label.Roles.status"));
    searchLayout.addComponent(lblStatus, 2, 1);

    cbxStatus = new ComboBox();
    cbxStatus.setImmediate(false);
    cbxStatus.setWidth("100.0%");
    cbxStatus.setHeight("-1px");
    searchLayout.addComponent(cbxStatus, 3, 1);

}

From source file:com.cms.view.ObjectsView.java

public void buildSearchLayout() {
    searchLayout = new GridLayout();
    searchLayout.setCaption(MakeURL.makeURLForGrid(BundleUtils.getString("caption.search.info")));
    searchLayout.setCaptionAsHtml(true);
    searchLayout.setImmediate(true);/*from  www .ja  v a  2  s .  co m*/
    searchLayout.setWidth("100.0%");
    searchLayout.setHeight("-1px");
    searchLayout.setMargin(true);
    searchLayout.setSpacing(true);
    searchLayout.setColumns(4);
    searchLayout.setRows(3);
    searchLayout.setStyleName("custom-feildset");

    lblCode = new Label();
    lblCode.setImmediate(true);
    lblCode.setWidth("100.0%");
    lblCode.setHeight("-1px");
    lblCode.setValue(BundleUtils.getString("label.Objects.code"));
    searchLayout.addComponent(lblCode, 0, 0);

    txtCode = new TextField();
    txtCode.setImmediate(true);
    txtCode.setWidth("100.0%");
    txtCode.setHeight("-1px");
    searchLayout.addComponent(txtCode, 1, 0);
    lblName = new Label();
    lblName.setImmediate(true);
    lblName.setWidth("100.0%");
    lblName.setHeight("-1px");
    lblName.setValue(BundleUtils.getString("label.Objects.name"));
    searchLayout.addComponent(lblName, 2, 0);

    txtName = new TextField();
    txtName.setImmediate(true);
    txtName.setWidth("100.0%");
    txtName.setHeight("-1px");
    searchLayout.addComponent(txtName, 3, 0);
    lblUrl = new Label();
    lblUrl.setImmediate(true);
    lblUrl.setWidth("100.0%");
    lblUrl.setHeight("-1px");
    lblUrl.setValue(BundleUtils.getString("label.Objects.url"));
    searchLayout.addComponent(lblUrl, 0, 1);

    txtUrl = new TextField();
    txtUrl.setImmediate(true);
    txtUrl.setWidth("100.0%");
    txtUrl.setHeight("-1px");
    searchLayout.addComponent(txtUrl, 1, 1);
    lblDescription = new Label();
    lblDescription.setImmediate(true);
    lblDescription.setWidth("100.0%");
    lblDescription.setHeight("-1px");
    lblDescription.setValue(BundleUtils.getString("label.Objects.description"));
    searchLayout.addComponent(lblDescription, 2, 1);

    txtDescription = new TextArea();
    txtDescription.setImmediate(true);
    txtDescription.setWidth("100.0%");
    txtDescription.setHeight("-1px");
    searchLayout.addComponent(txtDescription, 3, 1);
    lblObjectType = new Label();
    lblObjectType.setImmediate(true);
    lblObjectType.setWidth("100.0%");
    lblObjectType.setHeight("-1px");
    lblObjectType.setValue(BundleUtils.getString("label.Objects.objectType"));
    searchLayout.addComponent(lblObjectType, 0, 2);

    txtObjectType = new TextField();
    txtObjectType.setImmediate(true);
    txtObjectType.setWidth("100.0%");
    txtObjectType.setHeight("-1px");
    searchLayout.addComponent(txtObjectType, 1, 2);
    lblStatus = new Label();
    lblStatus.setImmediate(true);
    lblStatus.setWidth("100.0%");
    lblStatus.setHeight("-1px");
    lblStatus.setValue(BundleUtils.getString("label.Objects.status"));
    searchLayout.addComponent(lblStatus, 2, 2);

    cbxStatus = new ComboBox();
    cbxStatus.setImmediate(true);
    cbxStatus.setWidth("100.0%");
    cbxStatus.setHeight("-1px");
    searchLayout.addComponent(cbxStatus, 3, 2);

}

From source file:com.cms.view.ServicesView.java

public void buildSearchLayout() {
    searchLayout = new GridLayout();
    searchLayout.setCaption(MakeURL.makeURLForGrid(BundleUtils.getString("caption.search.info")));
    searchLayout.setCaptionAsHtml(true);
    searchLayout.setImmediate(false);//from w w w.j av  a 2  s.  com
    searchLayout.setWidth("100.0%");
    searchLayout.setHeight("-1px");
    searchLayout.setMargin(true);
    searchLayout.setSpacing(true);
    searchLayout.setColumns(4);
    searchLayout.setRows(10);
    searchLayout.setStyleName("custom-feildset");

    lblCode = new Label();
    lblCode.setImmediate(false);
    lblCode.setWidth("100.0%");
    lblCode.setHeight("-1px");
    lblCode.setValue(BundleUtils.getString("label.Services.code"));
    searchLayout.addComponent(lblCode, 0, 0);

    txtCode = new TextField();
    txtCode.setImmediate(false);
    txtCode.setWidth("100.0%");
    txtCode.setHeight("-1px");
    searchLayout.addComponent(txtCode, 1, 0);
    lblDescription = new Label();
    lblDescription.setImmediate(false);
    lblDescription.setWidth("100.0%");
    lblDescription.setHeight("-1px");
    lblDescription.setValue(BundleUtils.getString("label.Services.description"));
    searchLayout.addComponent(lblDescription, 2, 0);

    txtDescription = new TextArea();
    txtDescription.setImmediate(false);
    txtDescription.setWidth("100.0%");
    txtDescription.setHeight("-1px");
    searchLayout.addComponent(txtDescription, 3, 0);
    lblExpiryDate = new Label();
    lblExpiryDate.setImmediate(false);
    lblExpiryDate.setWidth("100.0%");
    lblExpiryDate.setHeight("-1px");
    lblExpiryDate.setValue(BundleUtils.getString("label.Services.expiryDate"));
    searchLayout.addComponent(lblExpiryDate, 0, 1);

    popExpiryDate = new PopupDateField();
    popExpiryDate.setImmediate(false);
    popExpiryDate.setWidth("100.0%");
    popExpiryDate.setHeight("-1px");
    searchLayout.addComponent(popExpiryDate, 1, 1);
    lblIssueDate = new Label();
    lblIssueDate.setImmediate(false);
    lblIssueDate.setWidth("100.0%");
    lblIssueDate.setHeight("-1px");
    lblIssueDate.setValue(BundleUtils.getString("label.Services.issueDate"));
    searchLayout.addComponent(lblIssueDate, 2, 1);

    popIssueDate = new PopupDateField();
    popIssueDate.setImmediate(false);
    popIssueDate.setWidth("100.0%");
    popIssueDate.setHeight("-1px");
    searchLayout.addComponent(popIssueDate, 3, 1);
    lblName = new Label();
    lblName.setImmediate(false);
    lblName.setWidth("100.0%");
    lblName.setHeight("-1px");
    lblName.setValue(BundleUtils.getString("label.Services.name"));
    searchLayout.addComponent(lblName, 0, 2);

    txtName = new TextField();
    txtName.setImmediate(false);
    txtName.setWidth("100.0%");
    txtName.setHeight("-1px");
    searchLayout.addComponent(txtName, 1, 2);
    lblServiceGroup = new Label();
    lblServiceGroup.setImmediate(false);
    lblServiceGroup.setWidth("100.0%");
    lblServiceGroup.setHeight("-1px");
    lblServiceGroup.setValue(BundleUtils.getString("label.Services.serviceGroup"));
    searchLayout.addComponent(lblServiceGroup, 2, 2);

    txtServiceGroup = new TextField();
    txtServiceGroup.setImmediate(false);
    txtServiceGroup.setWidth("100.0%");
    txtServiceGroup.setHeight("-1px");
    searchLayout.addComponent(txtServiceGroup, 3, 2);
    lblStatus = new Label();
    lblStatus.setImmediate(false);
    lblStatus.setWidth("100.0%");
    lblStatus.setHeight("-1px");
    lblStatus.setValue(BundleUtils.getString("label.Services.status"));
    searchLayout.addComponent(lblStatus, 0, 3);

    cbxStatus = new ComboBox();
    cbxStatus.setImmediate(false);
    cbxStatus.setWidth("100.0%");
    cbxStatus.setHeight("-1px");
    searchLayout.addComponent(cbxStatus, 1, 3);
    lblType = new Label();
    lblType.setImmediate(false);
    lblType.setWidth("100.0%");
    lblType.setHeight("-1px");
    lblType.setValue(BundleUtils.getString("label.Services.type"));
    searchLayout.addComponent(lblType, 2, 3);

    cbxType = new ComboBox();
    cbxType.setImmediate(false);
    cbxType.setWidth("100.0%");
    cbxType.setHeight("-1px");
    searchLayout.addComponent(cbxType, 3, 3);

}