Examples of ObjectChoiceField


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

        // user to select a NFC technology type to emulate.
        _techTypes =
                new String[] { NFCEmulatorScreen.ISO_14443_A,
                        NFCEmulatorScreen.ISO_14443_B, NFCEmulatorScreen.NDEF };
        _emulationTypeChoiceField =
                new ObjectChoiceField("Technology type to emulate: ",
                        _techTypes);

        // Set up the screen's label fields
        _fieldPresentStatus = new LabelField("NFC Field Present: ");
        _tagStatus = new LabelField();
View Full Code Here

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

            final String[] choices =
                    { "Received Call", "Placed Call", "Missed Call (Unopened)",
                            "Missed Call (Opened)" };

            _type =
                    new ObjectChoiceField("Call Type: ", choices, phoneCallLog
                            .getType());
            _participant =
                    new BasicEditField("Participant: ", phoneCallLog
                            .getParticipant().getNumber(), Integer.MAX_VALUE,
                            BasicEditField.FILTER_PHONE);
View Full Code Here

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

        add(new SeparatorField());
        add(new LabelField());

        final String choices[] = _resources.getStringArray(FIELD_COUNTRIES);
        _choiceField =
                new ObjectChoiceField(_resources.getString(FIELD_CHOICE),
                        choices);
        _choiceField.setChangeListener(this);
        add(_choiceField);

        // Views the country's information
View Full Code Here

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

            versions[1] = "OpenGL ES 2.0";

            // Initialize and add the ObjectChoiceField that lets the users
            // choose what version of OpenGL they want to use.
            _glVersionField =
                    new ObjectChoiceField("", new String[] { "OpenGL ES 1.1",
                            "OpenGL ES 2.0" }, 1, Field.FIELD_HCENTER);
            vfm.add(_glVersionField);
        }

        // Initialize "Controls" button
View Full Code Here

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

        _labelConnectionOpt = new LabelField("Connection Settings [optional]");

        // Connection mode
        final String[] connectionModes = { "READ", "WRITE", "READ/WRITE" };
        _connectionMode =
                new ObjectChoiceField("  Connection Mode: ", connectionModes, 2);

        // Connection timeout
        _timeoutSupported = new CheckboxField("  Support timeouts", false);
        _connectionTimeout =
                new BasicEditField("Connection timeout: ", "", 6,
                        BasicEditField.FILTER_INTEGER);

        // Connection security settings for tls/ssl
        _endToEndRequired =
                new CheckboxField("  tls/ssl end to end required", false);
        _endToEndDesired =
                new CheckboxField("  tls/ssl end to end desired", false);

        // Connection retry options
        _labelRetriesOpt = new LabelField("Retry options [optional]");
        _timeLimit =
                new BasicEditField("  Time Limit for Connections: ", "0", 6,
                        BasicEditField.FILTER_INTEGER);
        _attemptsLimit =
                new BasicEditField("  Attempts Limit: ", "0", 4,
                        BasicEditField.FILTER_INTEGER);
        _retryFactor =
                new BasicEditField("  Retry Factor: ", "0", 6,
                        BasicEditField.FILTER_INTEGER);

        // Transport selection
        final String[] transportNames =
                { "none", "TCP Cellular", "Wap", "Wap2", "Mds", "Bis B",
                        "TCP Wifi" };

        // Preferred transport types option
        _transportSelection =
                new CheckboxField("Preferred Transport Types [Optional]", false);
        _transportSelection.setChangeListener(new FieldChangeListener() {
            public void fieldChanged(final Field field, final int context) {
                if (_transportSelection.getChecked()) {
                    // Transport selection check box is checked. Enable drop
                    // downs for choosing the preferred transport.
                    _order1.setEditable(true);
                    _order2.setEditable(true);
                    _order3.setEditable(true);
                    _order4.setEditable(true);
                    _order5.setEditable(true);
                    _order6.setEditable(true);
                } else {
                    // Transport selection check box is not checked. Disable
                    // drop
                    // downs for choosing the preferred transport and set them
                    // to
                    // "none".
                    _order1.setSelectedIndex(0);
                    _order1.setEditable(false);
                    _order2.setSelectedIndex(0);
                    _order2.setEditable(false);
                    _order3.setSelectedIndex(0);
                    _order3.setEditable(false);
                    _order4.setSelectedIndex(0);
                    _order4.setEditable(false);
                    _order5.setSelectedIndex(0);
                    _order5.setEditable(false);
                    _order6.setSelectedIndex(0);
                    _order6.setEditable(false);
                }
            }
        });

        // Initialize preferred transport types option.
        // By default disable the options.
        _order1 = new ObjectChoiceField("First:", transportNames);
        _order1.setEditable(false);
        _order2 = new ObjectChoiceField("Second:", transportNames);
        _order2.setEditable(false);
        _order3 = new ObjectChoiceField("Third:", transportNames);
        _order3.setEditable(false);
        _order4 = new ObjectChoiceField("Forth:", transportNames);
        _order4.setEditable(false);
        _order5 = new ObjectChoiceField("Fifth:", transportNames);
        _order5.setEditable(false);
        _order6 = new ObjectChoiceField("Sixth:", transportNames);
        _order6.setEditable(false);

        // Initialize disallowed transport types check boxes
        _labelDisallowedTrasnports =
                new LabelField("Disallowed Transport Types [optional]:");
View Full Code Here

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

        final FieldSet fieldSetOne =
                new FieldSet("Field Set 1", BorderFactory
                        .createBevelBorder(xyEdges), BorderFactory
                        .createSimpleBorder(xyEdges), Border.STYLE_SOLID);
        _objectChoiceField =
                new ObjectChoiceField("Choices: ", new String[] { "RIM",
                        "Options", "Demo" }, index);
        _checkboxField =
                new CheckboxField("Checkbox: ", checked, Field.FIELD_TRAILING
                        | Field.USE_ALL_WIDTH);
        fieldSetOne.add(_objectChoiceField);
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.