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

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


                                        EditField.FILTER_INTEGER );
           
            ///////////////////////////////////////////////////////////////////////////
           
         
            pollIntervalField  = new NumericChoiceField
                                   (sdh.getLanguage("polling-duration")+ "  "  ,
                                    1                                          ,//begin
                                    60                                         ,//end
                                    1                                          ,//increment
                                    Configuration.pollInterval - 1            );//initial index (not value!)
View Full Code Here


    modeStrings = new String[] {"OPTIMAL", "GPS", "GEOLOCATION"};
    //#endif
    modeField = new ObjectChoiceField("Mode: ", modeStrings, 0);
    modeField.setChangeListener(this);   
   
    trackingIntervalField = new NumericChoiceField("Tracking Interval: ", 1, 300, 1, 4);
    trackingIntervalField.setChangeListener(this);
   
    retryFactorField = new NumericChoiceField("Retry Factor: ", 1, 50, 1, 0);
    retryFactorField.setChangeListener(this);
   
    gpsTimeoutField = new NumericChoiceField("GPS Timeout: ", 10, 300, 1, 20);
    gpsTimeoutField.setChangeListener(this);   
   
    geoTimeoutField = new NumericChoiceField("Geolocation Timeout: ", 3, 100, 1, 12);
    geoTimeoutField.setChangeListener(this);   
   
    maxRetryDelayField = new NumericChoiceField("Maximum Retry Delay: ", 300, 43200, 300, 23);
    maxRetryDelayField.setChangeListener(this);   
   
    getSingleLocationField = new ButtonField("Get Single Location");
    getSingleLocationField.setChangeListener(this);
    getLastLocationField = new ButtonField("Get Last Location");
View Full Code Here

         *            The previous line width
         */
        public WidthChangeDialog(final int previousWidth) {
            super(Dialog.D_OK_CANCEL, "Choose Width", Dialog.OK, null,
                    Dialog.GLOBAL_STATUS);
            _widthChooser = new NumericChoiceField("Width: ", 1, 5, 1);
            _widthChooser.setSelectedIndex(previousWidth / 2 - 1);
            add(_widthChooser);
        }
View Full Code Here

                        / 100000.0 + "", 9, BasicEditField.FILTER_REAL_NUMERIC);
        _logitudeField =
                new BasicEditField("Longitude:   ", _mapview.getLongitude()
                        / 100000.0 + "", 10, BasicEditField.FILTER_REAL_NUMERIC);
        _zoomField =
                new NumericChoiceField("Zoom: ", 0, MapView.MAX_ZOOM, 1,
                        _mapview.getZoom());

        // Add GUI components.
        add(_latitudeField);
        add(_logitudeField);
View Full Code Here

                        new BasicEditField("Tap position y1: ", "");
                final BasicEditField xPos2Input =
                        new BasicEditField("Tap position x2: ", "");
                final BasicEditField yPos2Input =
                        new BasicEditField("Tap position y2: ", "");
                final NumericChoiceField touchPointInput =
                        new NumericChoiceField("Touch point: ", 1, 2, 1);

                tapDialog.add(xPos1Input);
                tapDialog.add(yPos1Input);
                tapDialog.add(xPos2Input);
                tapDialog.add(yPos2Input);
                tapDialog.add(touchPointInput);

                // Display the dialog
                tapDialog.doModal();

                if (tapDialog.getSelectedValue() == Dialog.OK) {
                    // Clear the output string
                    _output.delete(0, _output.length());

                    try {
                        final int x1 = Integer.parseInt(xPos1Input.getText());
                        final int y1 = Integer.parseInt(yPos1Input.getText());
                        final int x2 = Integer.parseInt(xPos2Input.getText());
                        final int y2 = Integer.parseInt(yPos2Input.getText());
                        final int touchPoint =
                                touchPointInput.getSelectedValue();

                        EventInjector.TouchEvent.injectTwoFingerTap(x1, y1, x2,
                                y2, touchPoint);

                        updateOutputText();
View Full Code Here

TOP

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

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.