Package com.smartgwt.client.widgets.form.fields

Examples of com.smartgwt.client.widgets.form.fields.SpacerItem


    private List<FormItem> createFormItems() {
        final List<FormItem> formItems = new ArrayList<FormItem>();
        HeaderItem headerItem = new HeaderItem("header", MSG.view_inventory_summary_agent_title());
        headerItem.setValue(MSG.view_inventory_summary_agent_title());
        formItems.add(headerItem);
        formItems.add(new SpacerItem());

        // Name
        nameValue = new StaticTextItem("name", MSG.common_title_name());
        formItems.add(nameValue);
View Full Code Here


                headerItem.setValue(MSG.view_inventory_summary_agent_title());
                StaticTextItem permissionsMessage = new StaticTextItem("permissions", "permissionsFailure");
                permissionsMessage.setShowTitle(false);
                permissionsMessage.setValue(MSG.view_inventory_summary_agent_error3());
                permissionsMessage.setWrap(false);
                form.setFields(headerItem, new SpacerItem(), permissionsMessage);
                form.markForRedraw();
            }

            @Override
            public void onSuccess(Agent agent) {
View Full Code Here

                    }
                });

                masterUnsetItem = unsetItem;
            } else {
                masterUnsetItem = new SpacerItem();
            }

            masterUnsetItem.setShowTitle(false);
            masterUnsetItem.setStartRow(false);
            masterUnsetItem.setEndRow(false);
View Full Code Here

    ArrayList<ListGridField> fields = new ArrayList<ListGridField>();
    fields.add(new ListGridField(Endpoints.KEY_TITLE, "Dataset", COL_WIDTH_DATASET_TITLE));
    fields.add(new ListGridField(Endpoints.KEY_ENDPOINT, "Endpoint"));
    fields.add(new ListGridField(Endpoints.KEY_DESCRIPTION, "Description"));
    ListGridField dataUriField = new ListGridField(Endpoints.KEY_DATASETURI, " ", COL_WIDTH_MORE_INFO);
    dataUriField.setFilterEditorProperties(new SpacerItem());//don't want to be able to filter on datauri
    fields.add(dataUriField);
    searchGrid.setFields(fields.toArray(new ListGridField[fields.size()]));
    searchGrid.setFilterOnKeypress(true);
    searchGrid.setDataSource(view.getEndpointDataSource());
    searchGrid.setWrapCells(true);
View Full Code Here

        okButton.setTitle("Login");
        okButton.setWidth(100);

        VStack vStack = new VStack();

        SpacerItem spacerItem1 = new SpacerItem();
        SpacerItem spacerItem2 = new SpacerItem();
        spacerItem1.setStartRow(true);
        spacerItem1.setEndRow(true);
        spacerItem2.setStartRow(true);
        spacerItem2.setEndRow(false);

        okButton.setStartRow(false);
        okButton.setEndRow(true);
       
        this.addSubmitValuesHandler(new SubmitValuesHandler() {
View Full Code Here

        int i = 0;
        for (FormItem item : items) {
            controls[i++] = item;
        }
       
        controls[i++] = new SpacerItem();
        controls[i++] = confirmButton;
        controls[i++] = cancelButton;
       
        form.setItems(controls);
    }
View Full Code Here

        int i = 0;
        for (FormItem item : items) {
            controls[i++] = item;
        }

        controls[i++] = new SpacerItem();
        controls[i++] = confirmButton;
        controls[i++] = cancelButton;

        form.setItems(controls);
    }
View Full Code Here

    this.countryItem = new TextItem( "countryItem" );
    this.countryItem.setHint( "Country" );
    this.countryItem.setShowHintInField( true );
    this.countryItem.setShowTitle( false );

    SpacerItem firstSpacer = new SpacerItem();
    firstSpacer.setStartRow( true );
    SpacerItem secondSpacer = new SpacerItem();
    secondSpacer.setStartRow( true );
    SpacerItem thirdSpacer = new SpacerItem();
    thirdSpacer.setStartRow( true );

    setItems( this.typeSelectionItem, this.streetItem, this.removeItem, this.addItem, firstSpacer, this.cityItem,
        secondSpacer, this.stateItem, this.zipItem, thirdSpacer, this.countryItem );
  }
View Full Code Here

TOP

Related Classes of com.smartgwt.client.widgets.form.fields.SpacerItem

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.