Examples of CheckBoxField


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

        _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

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

        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

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

            // 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

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

        // '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

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

                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

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

                        "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

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

        _mapManager.add(_svgField);

        // Initialize a hashtable for our check boxes.
        _checkboxes = new Hashtable(3);
        // Populates the hashtable, associates listeners with the checkbox
        final CheckboxField roadsCheckBox = new CheckboxField("Roads  ", true);
        final SVGElement roadsGroup =
                (SVGElement) _document.getElementById("roads");
        _checkboxes.put(roadsCheckBox, roadsGroup);

        final CheckboxField railsCheckBox =
                new CheckboxField("Railways  ", true);
        final SVGElement railsGroup =
                (SVGElement) _document.getElementById("railways");
        _checkboxes.put(railsCheckBox, railsGroup);

        final CheckboxField interestsCheckBox =
                new CheckboxField("Points of interest ", true);
        final SVGElement interestsGroup =
                (SVGElement) _document.getElementById("interests");
        _checkboxes.put(interestsCheckBox, interestsGroup);

        final CheckboxField restaurantCheckBox =
                new CheckboxField("Restaurants ", true);
        final SVGElement restaurantGroup =
                (SVGElement) _document.getElementById("restaurants");
        _checkboxes.put(restaurantCheckBox, restaurantGroup);

        // Set this class as the handler of the change listeners.
        roadsCheckBox.setChangeListener(this);
        railsCheckBox.setChangeListener(this);
        restaurantCheckBox.setChangeListener(this);
        interestsCheckBox.setChangeListener(this);

        // Adds the checkboxes to the layout manager.
        _checkboxManager.add(roadsCheckBox);
        _checkboxManager.add(railsCheckBox);
View Full Code Here

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

    /**
     * @see FieldChangeListener#fieldChanged(Field, int)
     */
    public void fieldChanged(final Field field, final int context) {
        final CheckboxField cbf = (CheckboxField) field;
        final SVGElement svgElement = (SVGElement) _checkboxes.get(cbf);

        // If the checkbox is checked change svg display trait.
        if (cbf.getChecked() == true) {
            _animator.invokeLater(new Runnable() {
                public void run() {
                    svgElement.setTrait("display", "inline");
                }
            });
View Full Code Here

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

                        Field.NON_FOCUSABLE);

        _uriReceiverField =
                new EditField("Receiver URI:", "local://" + PATH_STRING, 140, 0);

        _isBlocking = new CheckboxField("Blocking", false);
        _isBlocking.setChangeListener(new FieldChangeListener() {
            /**
             * @see FieldChangeListener#fieldChanged(Field, int)
             */
            public void fieldChanged(final Field field, final int context) {
                // Avoid conflict blocking and non-blocking destinations with
                // the same name
                if (_isBlocking.getChecked()) {
                    _uriReceiverField.setText("local://" + PATH_STRING + "9");
                } else {
                    _uriReceiverField.setText("local://" + PATH_STRING);
                }

            }
        });

        _autoStartEnabled =
                new CheckboxField("Auto-start when message arrives", true);

        final FullWidthButton backButton = new FullWidthButton("Back");
        backButton.setChangeListener(new FieldChangeListener() {
            /**
             * @see FieldChangeListener#fieldChanged(Field, int)
View Full Code Here

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

                        "Default(m)", "Optimal Geolocation(s)",
                        "Optimal Geolocation(m)", "Cell Geolocation(s)",
                        "Cell Geolocation(m)", "WLAN Geolocation(s)",
                        "WLAN Geolocation(m)" }, 1);
        _enableGeolocationFallbackField =
                new CheckboxField("Enable Geolocation Fallback", false);
        _enableConcurrentGeolocationField =
                new CheckboxField("Enable Concurrent Geolocation", false);
        _isMapLocationField = new CheckboxField("Map Location", false);
        _useGPSRestartIntervalField =
                new CheckboxField("GPS Restart Interval?", false);
        _isSatelliteInfoRequiredField =
                new CheckboxField("Satellite information required?", false);
        _isVerizonField = new CheckboxField("Verizon?", false);
        _failOverModeField =
                new ObjectChoiceField("Failover Mode: ",
                        new String[] { "Stand Alone", "Data Optimal",
                                "Speed Optimal", "MS-Based",
                                "Accuracy Optimal", "PDE Calculate", "None" },
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.