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

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


        final DynamicForm form = new DynamicForm();
        form.setNumCols(2);
        form.setHeight("*");
        form.setColWidths(60, "*");
       
        TextItem subjectItem = new TextItem();
        subjectItem.setTitle("Subject");
        subjectItem.setWidth("*");
        subjectItem.setDefaultValue("Re: your message");

        TextAreaItem messageItem = new TextAreaItem();
        messageItem.setShowTitle(false);
        messageItem.setColSpan(2);
        messageItem.setHeight("*");
 
View Full Code Here


        HLayout layout = new HLayout(20);
       
        final DynamicForm form = new DynamicForm();
        form.setWidth(250);
       
        TextItem usernameItem = new TextItem();
        usernameItem.setTitle("Username");
        usernameItem.setRequired(true);
        usernameItem.setDefaultValue("bob");

        TextItem emailItem = new TextItem();
        emailItem.setTitle("Email");
        emailItem.setRequired(true);
        emailItem.setDefaultValue("bob@isomorphic.com");

        PasswordItem passwordItem = new PasswordItem();
        passwordItem.setTitle("Password");
        passwordItem.setRequired(true);
View Full Code Here

        findItem = new ButtonItem("Find");
        findItem.setIcon("silk/find.png");
        findItem.setWidth(70);
        findItem.setEndRow(false);

        TextItem skuItem = new TextItem("SKU");

        itemName = new ComboBoxItem("itemName");
        itemName.setOptionDataSource(supplyItemDS);
        itemName.setPickListWidth(250);
View Full Code Here

        tileGrid.setFields(thumbnailField, titleField);

        final SearchForm form = new SearchForm();
        form.setTop(50);
        form.setNumCols(3);
        TextItem query = new TextItem();
        query.setName("query");
        query.setTitle("Query");
        query.setDefaultValue("snowboarding");

        ButtonItem button = new ButtonItem();
        button.setTitle("Search");
        button.setStartRow(false);
        button.addClickHandler(new ClickHandler() {
View Full Code Here

    public final DynamicForm formStory(final String name, final String description, final int priority, final String inEstimation, final String currEstimation, final boolean assigned, final boolean planned, final boolean done, final int action) {
        final int widthForm = 430;
        final int heightForm = 85;
        final DynamicForm form = configureForm(widthForm, heightForm);

        final TextItem nameItem = new TextItem("fName");
        configureFormsItems(nameItem, WIDTH_FIELD, HEIGHT_FIELD, constants.nameStory(), name);

        final TextItem priorityItem = new TextItem("fPriority");
        configureFormsItems(priorityItem, WIDTH_FIELD, HEIGHT_FIELD, constants.priority(), String.valueOf(priority));

        final TextItem initialEstimationItem = new TextItem("fInitialEstimation");
        configureFormsItems(initialEstimationItem, WIDTH_FIELD, HEIGHT_FIELD, constants.initialEstimation(), inEstimation);

        CheckboxItem assignedItem = new CheckboxItem("fAssigned");
        configureFormsCheckboxItem(assignedItem, WIDTH_FIELD_CHECK, constants.assigned(), assigned);
View Full Code Here

    public final DynamicForm formTask(final String name, final String description, final String inEstimation, final String currEstimation, final boolean assigned, final boolean planned, final boolean done, final int action) {
        final int widthForm = 430;
        final int heightForm = 85;
        final DynamicForm form = configureForm(widthForm, heightForm);

        final TextItem nameItem = new TextItem("fName");
        configureFormsItems(nameItem, WIDTH_FIELD, HEIGHT_FIELD, constants.nameTask(), name);

        final TextItem initialEstimationItem = new TextItem("fInitialEstimation");
        configureFormsItems(initialEstimationItem, WIDTH_FIELD, HEIGHT_FIELD, constants.initialEstimation(), inEstimation);

        CheckboxItem assignedItem = new CheckboxItem("fAssigned");
        configureFormsCheckboxItem(assignedItem, WIDTH_FIELD_CHECK, constants.assigned(), assigned);
View Full Code Here

        preferencesForm.setFields(useTabsCheckbox);
        preferencesTab.setPane(preferencesForm);

        Tab profileTab = new Tab("Profile");
        DynamicForm profileForm = new DynamicForm();
        TextItem nameTextItem = new TextItem();
        nameTextItem.setTitle("Your Name");
        nameTextItem.addChangedHandler(new ChangedHandler() {
            public void onChanged(ChangedEvent event) {
                String newTitle = (event.getValue() == null ? "" : event.getValue() + "'s ") + "Preferences";
                topTabSet.setTabTitle(preferencesTab, newTitle);
            }
        });
View Full Code Here

        grid.setDataSource(yahooDS);

        final SearchForm form = new SearchForm();
        form.setTop(50);
        form.setNumCols(3);
        TextItem query = new TextItem();
        query.setName("query");
        query.setTitle("Query");
        query.setDefaultValue("snowboarding");

        ButtonItem button = new ButtonItem();
        button.setTitle("Search");
        button.setStartRow(false);
        button.addClickHandler(new ClickHandler() {
View Full Code Here

        grid.setDataSource(yahooDS);

        final SearchForm form = new SearchForm();
        form.setTop(50);
        form.setNumCols(3);
        TextItem query = new TextItem();
        query.setName("query");
        query.setTitle("Query");
        query.setDefaultValue("snowboarding");

        ButtonItem button = new ButtonItem();
        button.setTitle("Search");
        button.setStartRow(false);
        button.addClickHandler(new ClickHandler() {
View Full Code Here

        final DynamicForm boundForm = new DynamicForm();
        boundForm.setNumCols(6);
        boundForm.setDataSource(AnimalXmlDS.getInstance());
        boundForm.setAutoFocus(false);

        TextItem commonNameItem = new TextItem("commonName");
        TextItem lifeSpanItem = new TextItem("lifeSpan");

        SelectItem statusItem = new SelectItem("status");

        boundForm.setFields(commonNameItem, lifeSpanItem, statusItem);
View Full Code Here

TOP

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

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.