Package net.rim.device.api.ui.input

Examples of net.rim.device.api.ui.input.InputSettings


        vfm.add(_bitmapField);
        hfm.add(vfm);
        add(hfm);

        // Enable pinch
        final InputSettings inputSettings =
                TouchscreenSettings.createEmptySet();
        inputSettings.set(TouchscreenSettings.DETECT_PINCH, 1);
        addInputSettings(inputSettings);
    }
View Full Code Here


    /**
     * Creates a new TrackPadGesturesScreen object
     */
    public TrackpadGesturesScreen() {
        // Tell the screen to handle trackpad swipes
        final InputSettings settings =
                NavigationDeviceSettings.createEmptySet();
        settings.set(NavigationDeviceSettings.DETECT_SWIPE, 1);
        addInputSettings(settings);

        // Create label fields for directions/display of gestures
        final LabelField directions =
                new LabelField(
View Full Code Here

        setTitle("Map Action Demo");

        // Activate pinch gesturing
        if (Touchscreen.isSupported()) {
            final InputSettings is = TouchscreenSettings.createEmptySet();
            is.set(TouchscreenSettings.DETECT_PINCH, 1);
            this.addInputSettings(is);
        }

        _map = MapFactory.getInstance().generateRichMapField();
        _map.getMapField()
View Full Code Here

            }));

            addMenuItem(encodingMenuItem);

            // Allow the screen to capture trackpad swipes
            final InputSettings settings =
                    NavigationDeviceSettings.createEmptySet();
            settings.set(NavigationDeviceSettings.DETECT_SWIPE, 1);
            addInputSettings(settings);
        }
        // If not, display an error message to the user
        else {
            add(new RichTextField("Error connecting to camera."));
View Full Code Here

TOP

Related Classes of net.rim.device.api.ui.input.InputSettings

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.