Example usage for com.vaadin.ui GridLayout GridLayout

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

Introduction

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

Prototype

public GridLayout() 

Source Link

Document

Constructs an empty (1x1) grid layout that is extended as needed.

Usage

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

public PopupAddObjects() {
    mainLayout.setImmediate(true);/*  w  ww  .  j  ava 2 s .co  m*/
    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   w  w w.ja 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);//from   ww w . ja v  a2s  .com
    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.PopupAddTaxAuthority.java

public PopupAddTaxAuthority() {
    mainLayout.setImmediate(true);/*from   ww  w  .j a va  2s.co m*/
    mainLayout.setWidth("100%");
    mainLayout.setHeight("-1px");
    mainLayout.setMargin(true);
    mainLayout.setSpacing(true);
    mainLayout.setStyleName("main-popup");

    addTaxAuthorityLayout = new GridLayout();
    addTaxAuthorityLayout.setImmediate(true);
    addTaxAuthorityLayout.setWidth("100.0%");
    addTaxAuthorityLayout.setHeight("-1px");
    addTaxAuthorityLayout.setMargin(true);
    addTaxAuthorityLayout.setSpacing(true);
    addTaxAuthorityLayout.setColumns(4);
    addTaxAuthorityLayout.setRows(3);
    setWidth("70.0%");
    setHeight("-1px");
    setModal(true);
    //        lblId = new Label();
    //        lblId.setImmediate(true);
    //        lblId.setWidth("100.0%");
    //        lblId.setHeight("-1px");
    //        lblId.setValue(BundleUtils.getString("label.TaxAuthority.id"));
    //        addTaxAuthorityLayout.addComponent(lblId, 0, 0);

    //        txtId = new TextField();
    //        txtId.setImmediate(true);
    //        txtId.setWidth("100.0%");
    //        txtId.setHeight("-1px");
    //        addTaxAuthorityLayout.addComponent(txtId, 1, 0);
    lblMaCqt = new Label();
    lblMaCqt.setImmediate(true);
    lblMaCqt.setWidth("100.0%");
    lblMaCqt.setHeight("-1px");
    lblMaCqt.setValue(BundleUtils.getString("label.TaxAuthority.maCqt"));
    addTaxAuthorityLayout.addComponent(lblMaCqt, 0, 0);

    txtMaCqt = new TextField();
    txtMaCqt.setImmediate(true);
    txtMaCqt.setWidth("100.0%");
    txtMaCqt.setHeight("-1px");
    addTaxAuthorityLayout.addComponent(txtMaCqt, 1, 0);
    lblTenCqt = new Label();
    lblTenCqt.setImmediate(true);
    lblTenCqt.setWidth("100.0%");
    lblTenCqt.setHeight("-1px");
    lblTenCqt.setValue(BundleUtils.getString("label.TaxAuthority.tenCqt"));
    addTaxAuthorityLayout.addComponent(lblTenCqt, 2, 0);

    txtTenCqt = new TextField();
    txtTenCqt.setImmediate(true);
    txtTenCqt.setWidth("100.0%");
    txtTenCqt.setHeight("-1px");
    addTaxAuthorityLayout.addComponent(txtTenCqt, 3, 0);
    lblMaTinh = new Label();
    lblMaTinh.setImmediate(true);
    lblMaTinh.setWidth("100.0%");
    lblMaTinh.setHeight("-1px");
    lblMaTinh.setValue(BundleUtils.getString("label.TaxAuthority.maTinh"));
    addTaxAuthorityLayout.addComponent(lblMaTinh, 0, 1);

    cboMaTinh = new ComboBox();
    cboMaTinh.setImmediate(true);
    cboMaTinh.setWidth("100.0%");
    cboMaTinh.setHeight("-1px");
    addTaxAuthorityLayout.addComponent(cboMaTinh, 1, 1);
    lblMaQuanHuyen = new Label();
    lblMaQuanHuyen.setImmediate(true);
    lblMaQuanHuyen.setWidth("100.0%");
    lblMaQuanHuyen.setHeight("-1px");
    lblMaQuanHuyen.setValue(BundleUtils.getString("label.TaxAuthority.maQuanHuyen"));
    addTaxAuthorityLayout.addComponent(lblMaQuanHuyen, 2, 1);

    txtMaQuanHuyen = new TextField();
    txtMaQuanHuyen.setImmediate(true);
    txtMaQuanHuyen.setWidth("100.0%");
    txtMaQuanHuyen.setHeight("-1px");
    addTaxAuthorityLayout.addComponent(txtMaQuanHuyen, 3, 1);
    lblStatus = new Label();
    lblStatus.setImmediate(true);
    lblStatus.setWidth("100.0%");
    lblStatus.setHeight("-1px");
    lblStatus.setValue(BundleUtils.getString("label.TaxAuthority.status"));
    addTaxAuthorityLayout.addComponent(lblStatus, 0, 2);

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

    mainLayout.addComponent(addTaxAuthorityLayout);

    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);
}

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);/*from   w  ww  .j  a v  a2 s .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.component.CommonSearchForm.java

public GridLayout buildSearchLayout() {
    searchLayout = new GridLayout();
    searchLayout.setImmediate(true);//from www.j  a v  a2 s  .co  m
    searchLayout.setWidth("100.0%");
    searchLayout.setHeight("-1px");
    searchLayout.setMargin(true);
    searchLayout.setSpacing(false);
    return searchLayout;
}

From source file:com.cms.ui.PopupImportFileUI.java

public PopupImportFileUI() {
    mainLayout.setImmediate(true);/*from  w  w w .  j  ava 2s  . c  o  m*/
    mainLayout.setCaption(BundleUtils.getString("title.choseFile"));
    mainLayout.setWidth("100%");
    mainLayout.setHeight("-1px");
    mainLayout.setMargin(true);
    mainLayout.setSpacing(true);
    mainLayout.setStyleName("main-popup");
    setWidth("30.0%");
    setHeight("-1px");
    setModal(true);

    gridLayout = new GridLayout();
    //        gridLayout.setCaption(MakeURL.makeURLForGrid(BundleUtils.getString("stone.label.search.info")));
    //        gridLayout.setCaptionAsHtml(true);
    gridLayout.setImmediate(false);
    gridLayout.setWidth("100.0%");
    gridLayout.setHeight("-1px");
    gridLayout.setMargin(true);
    gridLayout.setSpacing(true);
    gridLayout.setColumns(2);
    gridLayout.setRows(5);
    gridLayout.setStyleName("custom-feildset");

    uploadFile = new Upload();
    uploadFile.setImmediate(false);
    uploadFile.setWidth("100.0%");
    uploadFile.setHeight("-1px");
    gridLayout.addComponent(uploadFile, 0, 0);

    linkTemplate = new Link();
    linkTemplate.setCaption("Ti file biu mu");
    linkTemplate.setImmediate(false);
    linkTemplate.setWidth("100%");
    linkTemplate.setHeight("-1px");
    gridLayout.addComponent(linkTemplate, 0, 1);

    mainLayout.addComponent(gridLayout);
    setContent(mainLayout);
}

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

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

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

    txtCode = new TextField();
    //        txtCode.setRequired(true);
    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.CategoryList.name"));
    searchLayout.addComponent(lblName, 2, 0);

    txtName = new TextField();
    txtName.setImmediate(true);
    txtName.setWidth("100.0%");
    txtName.setHeight("-1px");
    searchLayout.addComponent(txtName, 3, 0);

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

    dfReceivedDate = new DateField();
    //        dfReceivedDate.setRequired(true);
    dfReceivedDate.setImmediate(true);
    dfReceivedDate.setWidth("100.0%");
    dfReceivedDate.setHeight("-1px");
    searchLayout.addComponent(dfReceivedDate, 1, 1);
    lblEndDate = new Label();
    lblEndDate.setImmediate(true);
    lblEndDate.setWidth("100.0%");
    lblEndDate.setHeight("-1px");
    lblEndDate.setValue(BundleUtils.getString("label.CategoryList.endDate"));
    searchLayout.addComponent(lblEndDate, 2, 1);

    dfEndDate = new DateField();
    //        dfEndDate.setRequired(true);
    dfEndDate.setImmediate(true);
    dfEndDate.setWidth("100.0%");
    dfEndDate.setHeight("-1px");
    searchLayout.addComponent(dfEndDate, 3, 1);
    lblDescription = new Label();
    lblDescription.setImmediate(true);
    lblDescription.setWidth("100.0%");
    lblDescription.setHeight("-1px");
    lblDescription.setValue(BundleUtils.getString("label.CategoryList.description"));
    searchLayout.addComponent(lblDescription, 0, 2);

    txtDescription = new TextField();
    txtDescription.setImmediate(true);
    txtDescription.setWidth("100.0%");
    txtDescription.setHeight("-1px");
    searchLayout.addComponent(txtDescription, 1, 2);
    lblCreator = new Label();
    lblCreator.setImmediate(true);
    lblCreator.setWidth("100.0%");
    lblCreator.setHeight("-1px");
    lblCreator.setValue(BundleUtils.getString("label.CategoryList.creator"));
    searchLayout.addComponent(lblCreator, 2, 2);

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

    lblService = new Label();
    lblService.setImmediate(true);
    lblService.setWidth("100.0%");
    lblService.setHeight("-1px");
    lblService.setValue(BundleUtils.getString("customerStatusForm.service"));
    searchLayout.addComponent(lblService, 0, 3);

    cboService = CommonUtils.buildComboBox();
    cboService.setImmediate(true);
    cboService.setWidth("100.0%");
    cboService.setHeight("-1px");

    searchLayout.addComponent(cboService, 1, 3);

}

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

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

    lblCode = new Label();
    lblCode.setImmediate(false);
    lblCode.setWidth("100.0%");
    lblCode.setHeight("-1px");
    lblCode.setValue(BundleUtils.getString("label.ContractTemplateList.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.ContractTemplateList.name"));
    searchLayout.addComponent(lblName, 2, 0);

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

    lblPathFile = new Label();
    lblPathFile.setImmediate(false);
    lblPathFile.setWidth("100.0%");
    lblPathFile.setHeight("-1px");
    lblPathFile.setValue(BundleUtils.getString("label.ContractTemplateList.pathFile"));
    //        searchLayout.addComponent(lblPathFile, 0, 1);

    txtPathFile = new TextField();
    txtPathFile.setImmediate(false);
    txtPathFile.setWidth("100.0%");
    txtPathFile.setHeight("-1px");
    //        searchLayout.addComponent(txtPathFile, 1, 1);

    lblCreatedDate = new Label();
    lblCreatedDate.setImmediate(false);
    lblCreatedDate.setWidth("100.0%");
    lblCreatedDate.setHeight("-1px");
    lblCreatedDate.setValue(BundleUtils.getString("label.ContractTemplateList.createdDate"));
    //        searchLayout.addComponent(lblCreatedDate, 0, 1);

    popCreatedDate = new PopupDateField();
    popCreatedDate.setImmediate(false);
    popCreatedDate.setWidth("100.0%");
    popCreatedDate.setHeight("-1px");
    //        searchLayout.addComponent(popCreatedDate, 3, 1);
    lblLastUpdatedDate = new Label();
    lblLastUpdatedDate.setImmediate(false);
    lblLastUpdatedDate.setWidth("100.0%");
    lblLastUpdatedDate.setHeight("-1px");
    lblLastUpdatedDate.setValue(BundleUtils.getString("label.ContractTemplateList.lastUpdatedDate"));
    //        searchLayout.addComponent(lblLastUpdatedDate, 0, 2);

    popLastUpdatedDate = new PopupDateField();
    popLastUpdatedDate.setImmediate(false);
    popLastUpdatedDate.setWidth("100.0%");
    popLastUpdatedDate.setHeight("-1px");
    //        searchLayout.addComponent(popLastUpdatedDate, 1, 2);

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

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

    lblProvider = new Label();
    lblProvider.setImmediate(false);
    lblProvider.setWidth("100.0%");
    lblProvider.setHeight("-1px");
    lblProvider.setValue(BundleUtils.getString("label.ContractTemplateList.provider"));
    searchLayout.addComponent(lblProvider, 2, 1);

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

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

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

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

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

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

}