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

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


        final DynamicForm form = configureForm(widthForm, heightForm);

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

        final TextAreaItem descriptionItem = new TextAreaItem("fDescription");
        configureFormsItems(descriptionItem, WIDTH_FIELD, HEIGHT_FIELD_AREA, constants.description(), description);
        descriptionItem.setTitleVAlign(VerticalAlignment.TOP);
        descriptionItem.setHoverVAlign(VerticalAlignment.TOP);

        if (action != SHOW) {
            ButtonItem button = createButton();
            button.addClickHandler(new  com.smartgwt.client.widgets.form.fields.events.ClickHandler() {
            @Override
View Full Code Here


        preferecesGrid.setEmptyMessage("No Saved Preferences");
        preferecesGrid.setSelectionType(SelectionStyle.SINGLE);
        preferecesGrid.setCanRemoveRecords(true);
        final ListGridField name = new ListGridField("name", "Preference");
        ListGridField viewState = new ListGridField("viewState", "View State String");
        viewState.setEditorType(new TextAreaItem());
        viewState.setCellFormatter(new CellFormatter() {
            @Override
            public String format(Object value, ListGridRecord record, int rowNum, int colNum) {
                //prettier display
                return ((String) value).replace("\\r", "");
View Full Code Here

        CheckboxItem doneItem = new CheckboxItem("fDone");
        configureFormsCheckboxItem(doneItem, WIDTH_FIELD_CHECK, constants.done(), doneValue);
       

        final TextAreaItem descriptionItem = new TextAreaItem("fDescription");
        configureFormsItems(descriptionItem, WIDTH_FIELD, HEIGHT_FIELD_AREA, constants.description(), descriptionValue);

        ButtonItem button = createButton();
        button.addClickHandler(new  com.smartgwt.client.widgets.form.fields.events.ClickHandler() {
            @Override
View Full Code Here

       
        TextItem subjectItem = new TextItem();
        subjectItem.setTitle("Subject");
        subjectItem.setWidth("*");

        TextAreaItem messageItem = new TextAreaItem();
        messageItem.setShowTitle(false);
        messageItem.setLength(5000);
        messageItem.setColSpan(2);
        messageItem.setWidth("*");
        messageItem.setHeight("*");

        form.setFields(subjectItem, messageItem);
       
        return form;
    }
View Full Code Here

        preferecesGrid.setEmptyMessage("No Saved Preferences");
        preferecesGrid.setSelectionType(SelectionStyle.SINGLE);
        preferecesGrid.setCanRemoveRecords(true);
        final ListGridField name = new ListGridField("name", "Preference");
        ListGridField viewState = new ListGridField("viewState", "View State String");
        viewState.setEditorType(new TextAreaItem());
        viewState.setCellFormatter(new CellFormatter() {
            @Override
            public String format(Object value, ListGridRecord record, int rowNum, int colNum) {
                //prettier display
                return ((String) value).replace("\\r", "");
View Full Code Here

        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("*");
        messageItem.setWidth("*");
        messageItem.setLength(5000);
        form.setFields(subjectItem, messageItem);
       
        messageLayout.addMember(textCanvas);
        messageLayout.addMember(form);
       
View Full Code Here

        configureFormsCheckboxItem(plannedItem, WIDTH_FIELD_CHECK, constants.planned(), planned);

        CheckboxItem doneItem = new CheckboxItem("fDone");
        configureFormsCheckboxItem(doneItem, WIDTH_FIELD_CHECK, constants.done(), done);

        final TextAreaItem descriptionItem = new TextAreaItem("fDescription");
        configureFormsItems(descriptionItem, WIDTH_FIELD, HEIGHT_FIELD_AREA, constants.description(), description);

        if (action != SHOW) {
            ButtonItem button = createButton();
            button.addClickHandler(new  com.smartgwt.client.widgets.form.fields.events.ClickHandler() {
View Full Code Here

        configureFormsCheckboxItem(plannedItem, WIDTH_FIELD_CHECK, constants.planned(), planned);

        CheckboxItem doneItem = new CheckboxItem("fDone");
        configureFormsCheckboxItem(doneItem, WIDTH_FIELD_CHECK, constants.done(), done);

        final TextAreaItem descriptionItem = new TextAreaItem("fDescription");
        configureFormsItems(descriptionItem, WIDTH_FIELD, HEIGHT_FIELD_AREA, constants.description(), description);

        if (action != SHOW){
            ButtonItem button = createButton();
            button.addClickHandler(new  com.smartgwt.client.widgets.form.fields.events.ClickHandler() {
View Full Code Here

        ListGridField nameField = new ListGridField("countryName", "Country", 100);


        ListGridField governmentField = new ListGridField("government", "Government", 175);

        TextAreaItem textAreaItem = new TextAreaItem();
        textAreaItem.setHeight(70);
        governmentField.setEditorType(textAreaItem);

        ListGridField populationField = new ListGridField("population", "Population", 100);
        populationField.setEditorType(new SpinnerItem());
View Full Code Here

        countryCodeField.setImageURLPrefix("flags/16/");
        countryCodeField.setImageURLSuffix(".png");
        countryCodeField.setCanEdit(false);
        ListGridField nameField = new ListGridField("countryName", "Country");
        ListGridField governmentField = new ListGridField("government", "Government");
        TextAreaItem textAreaItem = new TextAreaItem();
        textAreaItem.setHeight(70);
        governmentField.setEditorType(textAreaItem);

        countryGrid.setFields(countryCodeField, nameField, governmentField);
        countryGrid.setData(CountryData.getRecords());
        canvas.addChild(countryGrid);
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.