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

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


        return new DataSourceTextField();
      }
    }, new FormItemFactory() {

      public FormItem create() {
        TextAreaItem textAreaItem = new TextAreaItem();
        textAreaItem.setColSpan(4);
        textAreaItem.setHeight(150);
        return textAreaItem;
      }
    }, null);

    final FeatureFormFactory<DynamicForm> myFactory = new FeatureFormFactory<DynamicForm>() {
View Full Code Here


        VLayout layout = new VLayout();
        DynamicForm form = new DynamicForm();
        form.setWidth100();
        form.setHeight100();

        TextAreaItem textArea = new TextAreaItem();
        textArea.setShowTitle(false);
        textArea.setColSpan(2);
        textArea.setValue(contents);
        textArea.setWidth("*");
        textArea.setHeight("*");

        form.setItems(textArea);
        layout.addMember(form);

        PopupWindow window = new PopupWindow(layout);
View Full Code Here

    }

    @Override
    protected FormItem instantiateEditFormItem() {

        TextAreaItem item = new TextAreaItem();
        return item;
    }
View Full Code Here

                        nameTextItem.setWidth(300);
                        String escapedBundleDeploymentName = StringUtility.escapeHtml(bundleDeploymentName);
                        wizard.setSubtitle(escapedBundleDeploymentName);
                        nameTextItem.setValue(escapedBundleDeploymentName);

                        final TextAreaItem descriptionTextAreaItem = new TextAreaItem("description", MSG
                            .view_bundle_revertWizard_getInfoStep_revertDeployDesc());
                        descriptionTextAreaItem.setWidth(300);
                        String liveDesc = wizard.getLiveDeployment().getDescription();
                        liveDesc = (null == liveDesc) ? wizard.getLiveDeployment().getName() : liveDesc;
                        String escapedLiveDesc = StringUtility.escapeHtml(liveDesc);
                        String prevDesc = wizard.getPreviousDeployment().getDescription();
                        prevDesc = (null == prevDesc) ? wizard.getPreviousDeployment().getName() : prevDesc;
                        String escapedPrevDesc = StringUtility.escapeHtml(prevDesc);
                        wizard.setDeploymentDescription(MSG.view_bundle_revertWizard_getInfoStep_revertDeployDescFull(
                            escapedLiveDesc, escapedPrevDesc));
                        descriptionTextAreaItem.setValue(StringUtility.escapeHtml(wizard.getDeploymentDescription()));
                        descriptionTextAreaItem.setValidateOnChange(true);
                        descriptionTextAreaItem.setValidateOnExit(true);
                        LengthRangeValidator validator = new LengthRangeValidator();
                        validator.setMin(0);
                        validator.setMax(500); // database column limit
                        descriptionTextAreaItem.setValidators(validator);
                        descriptionTextAreaItem.addChangedHandler(new ChangedHandler() {
                            public void onChanged(ChangedEvent event) {
                                Object value = event.getValue();
                                if (value == null) {
                                    value = "";
                                }
View Full Code Here

    private Tab createRecipeTab() {
        Tab tab = new Tab(MSG.view_bundle_recipe());
        DynamicForm form = new DynamicForm();

        TextAreaItem recipeCanvas = new TextAreaItem("recipe", MSG.view_bundle_recipe());
        recipeCanvas.setShowTitle(false);
        recipeCanvas.setColSpan(2);
        recipeCanvas.setWidth("100%");
        recipeCanvas.setHeight("100%");
        recipeCanvas.setValue(version.getRecipe());
        recipeCanvas.addChangeHandler(new ChangeHandler() {
            @Override
            public void onChange(ChangeEvent event) {
                // makes this read-only; however, since its not disabled, user can still select/copy the text
                event.cancel();
            }
View Full Code Here

        StaticTextItem timestamp = new StaticTextItem("timestamp", MSG.view_inventory_eventHistory_timestamp());
        timestamp.setValue(TimestampCellFormatter.format(composite.getTimestamp(),
            TimestampCellFormatter.DATE_TIME_FORMAT_FULL));

        TextAreaItem detail = new TextAreaItem("details", MSG.view_inventory_eventHistory_details());
        detail.setValue(composite.getEventDetail());
        detail.setTitleOrientation(TitleOrientation.TOP);
        detail.setColSpan(2);
        detail.setWidth("100%");
        detail.setHeight("100%");

        form.setItems(id, severity, source, timestamp, detail);

        addMember(form);
    }
View Full Code Here

                case LONG:
                    // Treat values with type LONG as strings, since GWT does not support longs.
                    valueItem = new TextItem();
                    break;
                case LONG_STRING:
                    valueItem = new TextAreaItem();
                    break;
                case PASSWORD:
                    valueItem = new PasswordItem();
                    valueItem.setAttribute("autocomplete", "off");
                    break;
View Full Code Here

            StaticTextItem nextFireTimeItem = new StaticTextItem(Field.NEXT_FIRE_TIME,
                MSG.dataSource_operationSchedule_field_nextFireTime());
            notesFields.add(nextFireTimeItem);
        }

        TextAreaItem notesItem = new TextAreaItem(Field.DESCRIPTION,
            MSG.dataSource_operationSchedule_field_description());
        notesItem.setWidth(450);
        notesItem.setHeight(60);
        notesItem.setShowTitle(true);
        FormUtility.addContextualHelp(notesItem, MSG.view_operationScheduleDetails_fieldHelp_description());
        notesFields.add(notesItem);

        this.notesForm.setFields(notesFields.toArray(new FormItem[notesFields.size()]));
View Full Code Here

                enableDisableComponents();
                buildExpressionValue();
            }
        });

        this.expressionItem = new TextAreaItem("expression", MSG.view_dynagroup_exprBuilder_expression());
        this.expressionItem.setTooltip(MSG.view_dynagroup_exprBuilder_expression_tooltip());
        this.expressionItem.setHoverWidth(250);
        this.expressionItem.setHeight(75);
        this.expressionItem.setWidth("250");
        this.expressionItem.addChangeHandler(new ChangeHandler() {
View Full Code Here

        StaticTextItem category = new StaticTextItem("category", MSG.common_title_category());

        StaticTextItem message = new StaticTextItem("message", MSG.common_title_message());
        message.setTitleVAlign(VerticalAlignment.TOP);

        TextAreaItem detail = new TextAreaItem("attachment", MSG.common_title_details());
        detail.setTitleVAlign(VerticalAlignment.TOP);
        detail.setMinHeight(100);
        detail.setHeight("100%");
        detail.setWidth("100%");
        detail.addChangeHandler(new ChangeHandler() {
            @Override
            public void onChange(ChangeEvent event) {
                event.cancel(); // we want the user to interact with the text to copy it, but not to edit it
            }
        });
View Full Code Here

TOP

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

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.