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

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


        setTitle("Search Screen");

        // Create input field and choice field and add to a
        // JustifiedHorizontalFieldManager
        final BasicEditField searchInput = new BasicEditField("Search: ", "");
        final String[] choices = new String[] { "Value 1", "Value 2" };
        final ObjectChoiceField searchProvider =
                new ObjectChoiceField("", choices, 0, Field.FIELD_RIGHT);
        final JustifiedHorizontalFieldManager jhfm =
                new JustifiedHorizontalFieldManager(searchInput,
View Full Code Here


                new ObjectChoiceField("Subsequent Mode: ",
                        new String[] { "Stand Alone", "Data Optimal",
                                "Speed Optimal", "MS-Based",
                                "Accuracy Optimal", "PDE Calculate", "None" },
                        6);
        _zoomLevelField = new BasicEditField("Zoom: ", "1");
        _preferredResponseTimeField =
                new BasicEditField("Pref'd Response Time (sec): ", "16", 6,
                        BasicEditField.FILTER_INTEGER);
        _frequencyField =
                new BasicEditField("Fix Frequency (sec): ", "5", 5,
                        BasicEditField.FILTER_INTEGER);
        _timeoutField =
                new BasicEditField("Timeout (sec): ", "-1", 5,
                        BasicEditField.FILTER_INTEGER);
        _maxAgeField =
                new BasicEditField("MaxAge (sec): ", "-1", 5,
                        BasicEditField.FILTER_INTEGER);
        _failOverRetriesField =
                new BasicEditField("Max Retries [0-3]: ", "0", 1,
                        BasicEditField.FILTER_INTEGER);
        _failoverTimeoutField =
                new BasicEditField("Failover Timeout [30-300]: ", "30", 3,
                        BasicEditField.FILTER_INTEGER);
        _gpsRestartIntervalField =
                new BasicEditField("Restart Interval [2-900]: ", "100", 3,
                        BasicEditField.FILTER_INTEGER);
        _gpsRestartRetriesField =
                new BasicEditField("Restart Retries [1-3]: ", "3", 1,
                        BasicEditField.FILTER_INTEGER);
        _pdeIPField = new BasicEditField("PDE IP: ", "");
        _pdePortField = new BasicEditField("PDE Port: ", "");
        _supportedSourcesField = new BasicEditField("Supported Sources: ", "-");
        _availableSourcesField = new BasicEditField("Available Sources: ", "-");
        _currentModeField = new BasicEditField("Current Mode: ", "-");
        _currentSatellitesCountField = new BasicEditField("Satellites: ", "-");
        _currentLocationField = new EditField("Location: ", "-");
        _currentAverageSatelliteSignalField =
                new EditField("Satellite Signal: ", "-");
        _currentDataSourceField = new EditField("Data Source: ", "-");
        _currentErrorField = new EditField("Error: ", "-");
View Full Code Here

                            "Call lost due to fading",
                            "Call failed, try again", "FDN mismatch",
                            "Connection denied" };

            _callLog = callLog;
            _notes = new BasicEditField("Notes: ", callLog.getNotes());
            _date =
                    new DateField("Date: ", callLog.getDate().getTime(),
                            DateField.DATE_TIME);
            _duration =
                    new BasicEditField("Duration (seconds): ", Integer
                            .toString(callLog.getDuration()),
                            Integer.MAX_VALUE, BasicEditField.FILTER_INTEGER);
            _status =
                    new ObjectChoiceField("Call Status: ", choices, callLog
                            .getStatus());
View Full Code Here

            final int numParticipants =
                    conferencePhoneCallLog.numberOfParticipants();
            _participants = new Vector(numParticipants);

            for (int i = 0; i < numParticipants; ++i) {
                _participants.addElement(new BasicEditField("Participant: ",
                        conferencePhoneCallLog.getParticipantAt(i).getNumber(),
                        Integer.MAX_VALUE, BasicEditField.FILTER_PHONE));
            }
        }
View Full Code Here

         */
        public boolean validate() {
            final int numParticipants = _participants.size();

            for (int i = 0; i < numParticipants; ++i) {
                final BasicEditField participant =
                        (BasicEditField) _participants.elementAt(i);

                if (participant.getText().length() < 7) {
                    Dialog.alert("Please enter a valid phone number for participant "
                            + (i + 1) + ".");

                    return false;
                }
View Full Code Here

            final ConferencePhoneCallLog conferencePhoneCallLog =
                    (ConferencePhoneCallLog) _callLog;
            final int numParticipants = _participants.size();

            for (int i = 0; i < numParticipants; ++i) {
                final BasicEditField participant =
                        (BasicEditField) _participants.elementAt(i);
                conferencePhoneCallLog.setParticipantAt(i, new PhoneCallLogID(
                        participant.getText()));
            }

            final int oldNumParticipants =
                    conferencePhoneCallLog.numberOfParticipants();
View Full Code Here

            super.setEditable(editable);

            final int numParticipants = _participants.size();

            for (int i = 0; i < numParticipants; ++i) {
                final BasicEditField participant =
                        (BasicEditField) _participants.elementAt(i);
                participant.setEditable(editable);
            }
        }
View Full Code Here

        /**
         * Adds a new participant field to this controller
         */
        public void addParticipant() {
            _participants.addElement(new BasicEditField("Participant: ", "",
                    Integer.MAX_VALUE, BasicEditField.FILTER_PHONE));
            final ConferencePhoneCallLog conferencePhoneCallLog =
                    (ConferencePhoneCallLog) _callLog;
            conferencePhoneCallLog.addParticipant(new PhoneCallLogID(""));
        }
View Full Code Here

         * to experiment with how the virtual keyboard works in the different
         * orientations, and show how bringing the focus to a field that
         * requires input will display the virtual keyboard if it isn't already
         * visible.
         */
        _editField = new BasicEditField("Basic Edit Field: ", "");
        add(_editField);

        // Create one check box per direction
        _northCheckbox = new CheckboxField("Allow north orientation?", true);
        _eastCheckbox = new CheckboxField("Allow east orientation?", true);
View Full Code Here

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

TOP

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

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.