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

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


        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);

        CheckboxItem plannedItem = new CheckboxItem("fPlanned");
        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);
View Full Code Here


        topTabSet.setWidth(400);
        topTabSet.setHeight(200);

        final Tab preferencesTab = new Tab("Preferences");
        DynamicForm preferencesForm = new DynamicForm();
        CheckboxItem useTabsCheckbox = new CheckboxItem();
        useTabsCheckbox.setTitle("Use Smart GWT tabs");
        preferencesForm.setFields(useTabsCheckbox);
        preferencesTab.setPane(preferencesForm);

        Tab profileTab = new Tab("Profile");
        DynamicForm profileForm = new DynamicForm();
View Full Code Here

        valueMap.put("lifeSpan", "Life Span");
        valueMap.put("status", "Endangered Status");

        sortItem.setValueMap(valueMap);

        final CheckboxItem ascendingItem = new CheckboxItem("chkSortDir");
        ascendingItem.setTitle("Ascending");

        sortForm.setFields(sortItem, ascendingItem);

        sortForm.addItemChangedHandler(new ItemChangedHandler() {
            public void onItemChanged(ItemChangedEvent event) {
                String sortVal = sortForm.getValueAsString("sortBy");
                Boolean sortDir = (Boolean) ascendingItem.getValue();
                if(sortDir == null) sortDir = false;
                if(sortVal != null) {
                   tileGrid.sortByProperty(sortVal, sortDir);
                }
            }
View Full Code Here

            }
        });

        DynamicForm df = new DynamicForm();

        final CheckboxItem partialSelection = new CheckboxItem("partialSelect", "Allow Partial Selection");
        partialSelection.setDefaultValue(true);
        partialSelection.addChangeHandler(new ChangeHandler() {
            public void onChange(ChangeEvent event) {
                boolean selected = partialSelection.getValueAsBoolean();
                employeeTreeGrid.setShowPartialSelection(!selected);
                employeeTreeGrid.redraw();
            }
        });
View Full Code Here

        DynamicForm sortForm = new DynamicForm();
        sortForm.setWidth(300);
        sortForm.setTop(310);

        final CheckboxItem restrictItem = new CheckboxItem();
        restrictItem.setName("restrict");
        restrictItem.setTitle("Limit to Dictionaries");
        restrictItem.addChangedHandler(new ChangedHandler() {
            public void onChanged(ChangedEvent event) {
                Criteria criteria = new Criteria();
                Object value = restrictItem.getValue();
                boolean filter = value != null && (Boolean) value;
                if (filter) {
                    criteria.addCriteria("category", "Dictionaries");
                }
                supplyItemGrid.fetchData(criteria);
View Full Code Here

        layout.addMember(countryGrid);

        DynamicForm form = new DynamicForm();
        form.setWidth(300);

        CheckboxItem checkboxItem = new CheckboxItem("cbItem", "Alternate Record Styles");
        checkboxItem.setWidth(150);
        checkboxItem.setValue(true);
        checkboxItem.addChangeHandler(new ChangeHandler() {
            @Override
            public void onChange(ChangeEvent event) {
                boolean checked = (Boolean) event.getValue();
                countryGrid.setAlternateRecordStyles(checked);
            }
View Full Code Here

        if (event.getKeyName().equalsIgnoreCase("enter")) {
          bookmark();
        }
      }});
    if (view.getEnabledFeatures().endpointSelectionEnabled()) {
      includeEndpoint = new CheckboxItem();
      includeEndpoint.setValue(true);
      includeEndpoint.setTitle("Include endpoint");
      includeEndpoint.setLabelAsTitle(true);
      form.setItems(bookmarkTitle, includeEndpoint);
    } else {
View Full Code Here

      DynamicForm fieldForm = new DynamicForm();
      fieldForm.setTitleWidth( 5 );
      fieldForm.setAutoHeight();

      this.checkBoxFrom = new CheckboxItem( MessageListFields.FROM.name(), TextProvider.get()
          .extended_search_panel_from() );
      this.checkBoxTo = new CheckboxItem( MessageListFields.TO.name(), TextProvider.get()
          .extended_search_panel_to() );
      this.checkBoxCc = new CheckboxItem( MessageListFields.CC.name(), TextProvider.get()
          .extended_search_panel_cc() );
      this.checkBoxSubject = new CheckboxItem( MessageListFields.SUBJECT.name(), TextProvider.get()
          .extended_search_panel_subject() );
      this.checkBoxContent = new CheckboxItem( MessageListFields.CONTENT.name(), TextProvider.get()
          .extended_search_panel_body() );

      final IButton searchButton = new IButton( TextProvider.get().extended_search_panel_search() );
      searchButton.setAutoFit( true );
      searchButton.setAlign( Alignment.CENTER );
View Full Code Here

        configureFormsItems(nameItem, WIDTH_FIELD, HEIGHT_FIELD, constants.name(), nameValue);

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

        CheckboxItem assignedItem = new CheckboxItem("fAssigned");
        configureFormsCheckboxItem(assignedItem, WIDTH_FIELD_CHECK, constants.assigned(), assignedValue);

        CheckboxItem plannedItem = new CheckboxItem("fPlanned");
        configureFormsCheckboxItem(plannedItem, WIDTH_FIELD_CHECK, constants.planned(), plannedValue);

        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);
View Full Code Here

    rasterDpiSlider.setHeight(PrintingLayout.printPreferencesResolutionHeight);
    rasterDpiSlider.setMinValue(72);
    rasterDpiSlider.setMaxValue(600);
    rasterDpiSlider.setNumValues(5);
    // north arrow
    arrowCheckbox = new CheckboxItem();
    arrowCheckbox.setValue(true);
    arrowCheckbox.setTitle(MESSAGES.printPrefsWithArrow());
    // scale bar
    scaleBarCheckbox = new CheckboxItem();
    scaleBarCheckbox.setValue(true);
    scaleBarCheckbox.setTitle(MESSAGES.printPrefsWithScaleBar());
    // filename
    fileNameItem = new TextItem();
    fileNameItem.setName(FILENAME);
View Full Code Here

TOP

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

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.