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

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


        calendar.setDataSource(eventDS);
        calendar.setAutoFetchData(true);

        //specify the last field from the default fields so that subsequent fields come after the
        //default fields
        TextItem descItem = new TextItem();
        descItem.setName("description");

        //custom fields below
        HeaderItem eventOptions = new HeaderItem();
        eventOptions.setDefaultValue("Event Options");

        SelectItem repeatsItem = new SelectItem();
        repeatsItem.setName("repeats");
        repeatsItem.setTitle("Repeats");
        repeatsItem.setColSpan(4);
        repeatsItem.setDefaultToFirstOption(true);
        repeatsItem.setValueMap("Does not repeat", "Daily", "Weekly", "Monthly", "Yearly");

        SelectItem reminderItem = new SelectItem();
        reminderItem.setName("reminderType");
        reminderItem.setTitle("Reminder");
        reminderItem.setWidth(70);
        reminderItem.setDefaultToFirstOption(true);
        reminderItem.setValueMap("Pop-up", "Email");

        TextItem reminderValue = new TextItem();
        reminderValue.setName("reminderValue");
        reminderValue.setShowTitle(false);
        reminderValue.setWidth(60);
        reminderValue.setDefaultValue(10);

        SelectItem reminderUnits = new SelectItem();
        reminderUnits.setName("reminderUnits");
        reminderUnits.setShowTitle(false);
        reminderUnits.setWidth(70);
        reminderUnits.setDefaultToFirstOption(false);
        reminderUnits.setValueMap("minutes", "hours", "days");

        calendar.setEventEditorFields(descItem, eventOptions, repeatsItem, reminderItem, reminderValue, reminderUnits);

        TextItem nameItem = new TextItem();
        nameItem.setType("text");
        nameItem.setName("name");

        RadioGroupItem radioGroupItem = new RadioGroupItem("sharing");
        radioGroupItem.setTitle("Sharing");
        radioGroupItem.setVertical(false);
        radioGroupItem.setValueMap("Public", "Private");
View Full Code Here


        filterForm.setGroupTitle("Search");
        filterForm.setNumCols(6);
        filterForm.setDataSource(AnimalXmlDS.getInstance());
        filterForm.setAutoFocus(false);

        TextItem commonNameItem = new TextItem("commonName");
        SliderItem lifeSpanItem = new SliderItem("lifeSpan");
        lifeSpanItem.setTitle("Max Life Span");
        lifeSpanItem.setMinValue(1);
        lifeSpanItem.setMaxValue(60);
        lifeSpanItem.setDefaultValue(60);
View Full Code Here

        form.setLeft(50);
        form.setTop(50);
        form.setNumCols(3);
        form.setCellSpacing(5);

        TextItem zipField = new TextItem();
        zipField.setName("ZipCode");
        zipField.addKeyPressHandler(new KeyPressHandler() {
            public void onKeyPress(KeyPressEvent event) {
                if(event.getKeyName().equals("Enter")) {
                    form.callService();
                }
            }
View Full Code Here

                DynamicForm form = new DynamicForm();
                form.setHeight100();
                form.setWidth100();
                form.setPadding(5);
                form.setLayoutAlign(VerticalAlignment.BOTTOM);
                TextItem textItem = new TextItem();
                textItem.setTitle("Text");
                DateItem dateItem = new DateItem();
                dateItem.setTitle("Date");
                DateItem dateItem2 = new DateItem();
                dateItem2.setTitle("Date");
                dateItem2.setUseTextField(true);
View Full Code Here

        form.setAutoFocus(true);
        form.setNumCols(2);
        form.setMargin(10);

        //item with the name of the user
        final TextItem usernameItem = new TextItem("fName");
        usernameItem.setTitle(constants.username());
        usernameItem.setRequired(true);
        usernameItem.setSelectOnFocus(true);
        usernameItem.setWrapTitle(false);
       
        usernameItem.setColSpan(1);
        usernameItem.setStartRow(false);
        usernameItem.setEndRow(true);

        //item with the password of the user
        PasswordItem passwordItem = new PasswordItem("fPassword");
        passwordItem.setTitle(constants.password());
        passwordItem.setRequired(true);
View Full Code Here

    hlayout.setHeight100();
    DynamicForm form = new DynamicForm();
    form.setHeight100();
    form.setWidth(260);
    form.setTitleWidth(100);
    bookmarkTitle = new TextItem();
    bookmarkTitle.setTitle("Title");
    bookmarkTitle.addKeyPressHandler(new KeyPressHandler(){
      @Override
      public void onKeyPress(KeyPressEvent event) {
        if (event.getKeyName().equalsIgnoreCase("enter")) {
View Full Code Here

    item.setShowTitle(false);
    item.setEndRow(false);
    item.setIconWidth(60);
    item.setIconHeight(75);

    TextItem lastname = new TextItem("lastName", "Last Name");
    TextItem firstname = new TextItem("firstName", "First Name");

    headForm.setFields(item, lastname, firstname);

    return headForm;
  }
View Full Code Here

    this.emailForm = new DynamicForm();
    this.emailForm.setNumCols(4);
    this.emailForm.setWrapItemTitles(false);
    this.emailForm.setColWidths("*", "20", "20");

    TextItem email = new TextItem("email", "Email Home");
    email.setEndRow(false);
    StaticTextItem remove = new StaticTextItem("remove");
    remove.setShowTitle(false);
    remove.setIcons(this.removeIcon);
    StaticTextItem add = new StaticTextItem("add");
    add.setShowTitle(false);
    add.setIcons(this.addIcon);
    this.emailForm.setFields(email, remove, add);

    add.addIconClickHandler(new IconClickHandler() {

      public void onIconClick(IconClickEvent event) {
        final TextItem email2 = new TextItem("enail", "Email Business");
        email2.setEndRow(false);
        final StaticTextItem remove2 = new StaticTextItem("remove");
        remove2.setShowTitle(false);
        remove2.setIcons(removeIcon);
        final StaticTextItem add2 = new StaticTextItem("add");
        add2.setShowTitle(false);
View Full Code Here

      form.setNumCols(4);
      form.setColWidths(LABEL_WIDTH, "*", BUTTON_WIDTH, BUTTON_WIDTH);
      SelectItem phoneTypesSelect = new SelectItem();
      phoneTypesSelect.setShowTitle(false);
      phoneTypesSelect.setValueMap(this.phoneTypes);
      TextItem phone = new TextItem("phone" + value, "phone");
      phone.setEndRow(false);
      phone.setShowTitle(false);
      StaticTextItem remove = new StaticTextItem("remove");
      remove.setShowTitle(false);
      remove.setIcons(this.removeIcon);
      StaticTextItem add = new StaticTextItem("add");
      add.setShowTitle(false);
View Full Code Here

      form.setNumCols(4);
      form.setColWidths(LABEL_WIDTH, "*", BUTTON_WIDTH, BUTTON_WIDTH);
      SelectItem phoneTypesSelect = new SelectItem();
      phoneTypesSelect.setShowTitle(false);
      phoneTypesSelect.setValueMap(this.phoneTypes);
      TextItem phone = new TextItem("email" + value, "email");
      phone.setEndRow(false);
      phone.setShowTitle(false);
      StaticTextItem remove = new StaticTextItem("remove");
      remove.setShowTitle(false);
      remove.setIcons(this.removeIcon);
      StaticTextItem add = new StaticTextItem("add");
      add.setShowTitle(false);
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.