Package net.rim.device.api.ui.component

Examples of net.rim.device.api.ui.component.CheckboxField


    return fieldManager;
  }

  protected Field createCheckBoxAndTextField(String label, boolean checked, final Execution exec, String text) {
    HorizontalFieldManager fieldManager = new HorizontalFieldManager();
    final CheckboxField checkBoxField = new CheckboxField(label, checked, NO_USE_ALL_WIDTH);
    FieldChangeListener changeListener = new FieldChangeListener() {
      public void fieldChanged(Field field, int context) {
        boolean checked = checkBoxField.getChecked();
        if (!exec.execute(new Boolean(checked))) {
          checkBoxField.setChecked(!checked);
        }
      }
    };
    checkBoxField.setChangeListener(changeListener);
    RichTextField textField = new RichTextField(text, RichTextField.TEXT_ALIGN_RIGHT | RichTextField.NON_FOCUSABLE);
    fieldManager.add(checkBoxField);
    fieldManager.add(textField);

    return fieldManager;
View Full Code Here


            calendarSourceUriField  = new BasicEditField
                                        (sdh.getLanguage("source-uri-calendar") + "  " ,
                                        c.calendarSourceUri );
                                       

            syncContactField        = new CheckboxField
                                        (sdh.getLanguage("enable-sync-contact")       ,
                                        c.syncContact );

            syncCalendarField       = new CheckboxField
                                        (sdh.getLanguage("enable-sync-calendar")      ,
                                        c.syncCalendar );
                                       
            syncMailField           = new CheckboxField
                                        (sdh.getLanguage("enable-sync-mail")      ,
                                        c.syncMail);
                                       
            pollingField            = new CheckboxField(
                                        sdh.getLanguage("enable-polling"),
                                        c.enablePolling);
                                      
            smsField                = new CheckboxField(
                                        sdh.getLanguage("enable-sms-server-alerted-sync"),
                                        c.enableSmsSync);
                                      
            gatewayApnField         = new BasicEditField
                                        (sdh.getLanguage("gateway-apn") + " "        ,
View Full Code Here

        buttonPanel.add(new SimpleButton("XYZ"));
        _eyelidFieldManager.addBottom(buttonPanel);

        // Add checkbox in non-eyelid region for showing eyelids on user input
        _showOnInputCheckbox =
                new CheckboxField("Show eyelids on user input", true,
                        Field.FIELD_HCENTER);
        _showOnInputCheckbox.setChangeListener(this);
        _eyelidFieldManager.add(_showOnInputCheckbox, 0, 85);

        // Add checkbox in non-eyelid region for locking the eyelids
        _lockCheckbox =
                new CheckboxField("Lock eyelids", false, Field.FIELD_HCENTER);
        _lockCheckbox.setChangeListener(this);
        _eyelidFieldManager.add(_lockCheckbox, 0, 115);

        add(_eyelidFieldManager);
View Full Code Here

    public ReverseGeocodeScreen() {
        setTitle("Reverse Geocode");

        _editFieldLatitude = new BasicEditField("Latitude: ", "");
        _editFieldLongitude = new BasicEditField("Longitude: ", "");
        _blockingCheckBox = new CheckboxField("Blocking:", false);
        _bearingEditField =
                new BasicEditField("Bearing: ", "-1", 4,
                        BasicEditField.FILTER_INTEGER);

        add(_editFieldLatitude);
View Full Code Here

        _editFieldLatitude = new BasicEditField("Latitude: ", "");
        _editFieldLongitude = new BasicEditField("Longitude: ", "");
        add(_editFieldLatitude);
        add(_editFieldLongitude);

        _blockingCheckbox = new CheckboxField("Blocking:", false);
        add(_blockingCheckbox);

        _choiceField =
                new ObjectChoiceField("Search Type: ", new String[] {
                        "Freeform", "Structured" }, 0);
View Full Code Here

        add(new SeparatorField());

        // Initialize a check box for toggling the center lens
        _centerLensCheckBox =
                new CheckboxField("Enable center lens", false,
                        Field.FIELD_HCENTER);
        _centerLensCheckBox.setChangeListener(this);
        add(_centerLensCheckBox);

        // Initialize a check box for overlapping images
        _overlapCheckBox =
                new CheckboxField("Overlap images", false, Field.FIELD_HCENTER);
        _overlapCheckBox.setChangeListener(this);
        add(_overlapCheckBox);
    }
View Full Code Here

            // Get the FilePicker instance
            _filePicker = FilePicker.getInstance();
            _filePicker.setTitle("Choose file");

            // Initialize a check box for toggling the file filter
            final CheckboxField checkBox =
                    new CheckboxField("Filter", false, Field.FIELD_HCENTER);
            checkBox.setChangeListener(new FieldChangeListener() {
                /**
                 * @see FieldChangeListener#fieldChanged(Field, int)
                 */
                public void fieldChanged(final Field field, final int context) {
                    if (checkBox.getChecked()) {
                        // Set the FilePicker to filter by extension
                        FilePickerDemoScreen.this.setFilter(true);
                        _filterTextChoiceField.setEditable(true);
                        _viewChoiceField.setSelectedIndex(0);
                        _viewChoiceField.setEditable(false);
View Full Code Here

        // 'localhost' and 127.0.0.1 is restricted.
        _hostField = new EditField("Local Host: ", "");
        add(_hostField);

        _useDirectTcpField =
                new CheckboxField("Use Direct TCP",
                        RadioInfo.getNetworkType() == RadioInfo.NETWORK_IDEN);
        add(_useDirectTcpField);

        _statusField = new RichTextField(Field.NON_FOCUSABLE);
        add(_statusField);
View Full Code Here

                new LabelField(
                        "Enter a destination URL and send a fire-and-forget message to it. "
                                + "Responses are not processed.",
                        Field.NON_FOCUSABLE);

        _isLocal = new CheckboxField("Local Address ", true);
        _isLocal.setChangeListener(new FieldChangeListener() {
            /**
             * @see FieldChangeListener#fieldChanged(Field, int)
             */
            public void fieldChanged(final Field field, final int context) {
View Full Code Here

                        "Speed Optimal(m)", "MS-Based(m)",
                        "Accuracy Optimal(s)", "PDE Calculate(s)",
                        "Cellsite(s)", "Cellsite(m)", "AFLT(s)",
                        "SmartMode(m)", "Default(s)", "Default(m)",
                        "NULL Criteria(s)", "NULL Criteria(m)" }, 1);
        _enableMapLocationField = new CheckboxField("Map Location", false);
        _isVerizonField = new CheckboxField("Verizon?", false);
        _zoomLevelField = new BasicEditField("Zoom: ", "1");
        _horizontalAccuracyField =
                new BasicEditField("Horizontal Accuracy (meters): ", "100", 6,
                        BasicEditField.FILTER_INTEGER);
        _preferredResponseTimeField =
View Full Code Here

TOP

Related Classes of net.rim.device.api.ui.component.CheckboxField

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.