Examples of RichTextField


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

        GPSDemoScreen() {
            // Initialize UI
            _statusTextField = new TextField(Field.NON_FOCUSABLE);
            _statusTextField.setLabel("GPS Status: ");
            add(_statusTextField);
            final RichTextField instructions =
                    new RichTextField("Waiting for location update...",
                            Field.NON_FOCUSABLE);
            add(instructions);

            // Menu Item to add the current location to the list of WayPoints
            final MenuItem markWayPoint =
View Full Code Here

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

        // Add GUI components.
        add(_latitudeField);
        add(_logitudeField);
        add(_zoomField);
        add(new SeparatorField());
        add(new RichTextField(
                "Edit latitude, longitude and zoom level settings and select View Map from the menu.",
                Field.NON_FOCUSABLE));

        // Displays a map of a specified locaton.
        final MenuItem viewMapItem =
View Full Code Here

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

    public USBDemo() {

        final USBScreen screen = new USBScreen();
        screen.setTitle("USB Demo");

        _output = new RichTextField("<output>");

        screen.add(_output);

        pushScreen(screen);
    }
View Full Code Here

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

            // Calculate average speed travelled enroute to WayPoint
            final float avgSpeed =
                    point._distance / (point._endTime - point._startTime);

            add(new RichTextField("Start: " + startTime, Field.NON_FOCUSABLE));
            add(new RichTextField("End: " + endTime, Field.NON_FOCUSABLE));
            add(new RichTextField("Horizontal Distance (m): "
                    + Float.toString(point._distance), Field.NON_FOCUSABLE));
            add(new RichTextField("Vertical Distance (m): "
                    + Float.toString(point._verticalDistance),
                    Field.NON_FOCUSABLE));
            add(new RichTextField("Average Speed(m/s): "
                    + Float.toString(avgSpeed), Field.NON_FOCUSABLE));

            // Display the WayPoint on a map
            final MapField map = new MapField();
            map.moveTo(new Coordinates(point._latitude, point._longitude,
View Full Code Here

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

     * Creates a new SocketDemoScreen object
     */
    public SocketDemoScreen() {
        setTitle(new LabelField("Socket Demo"));

        add(new RichTextField(
                "Enter local host name in the field below and select 'Go' from the menu.",
                Field.NON_FOCUSABLE));
        add(new SeparatorField());

        // Need to get the local host name from the user because access to
        // '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);

        _message = new StringBuffer();

        _go = new MenuItem(new StringProvider("Go"), 0x230010, 0);
View Full Code Here

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

            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

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

        _screen = screen;

        setPadding(getPaddingTop(), 0, getPaddingBottom(), 0);
        setMargin(getMarginTop(), 0, getMarginBottom(), 0);

        add(new RichTextField("Upload " + _fileHolder.getFileName(),
                Field.NON_FOCUSABLE | Field.FIELD_LEFT));
        add(new SeparatorField());

        _emailEdit = new BasicEditField("Recipient Email: ", "");
        add(_emailEdit);
View Full Code Here

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

                    Dialog.alert("Previous request pending state...");
                }
            }
        });

        _formattedMsgContentField = new RichTextField("* No SOAP Message *");
        _msgContentField = new RichTextField("");

        // Add UI components to screen
        add(_uriSenderField);
        add(postButton);
        add(_formattedMsgContentField);
View Full Code Here

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

        _screen.setTitle("Service Routing Demo");

        final ServiceRouting sr = ServiceRouting.getInstance();
        sr.addListener(this);
        _statusField =
                new RichTextField(
                        sr.isSerialBypassActive() ? "Serial Bypass: Connected"
                                : "Serial Bypass: Disconnected");
        _screen.add(_statusField);

        _treeField = new TreeField(this, Field.FOCUSABLE);
View Full Code Here

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

     */
    public boolean spellCheckStarted(final SpellCheckUI ui, final Field field) {
        final VerticalFieldManager vfm =
                new VerticalFieldManager(Field.FIELD_HCENTER);
        final StatusScreen popUp = new StatusScreen(vfm);
        final RichTextField rtf =
                new RichTextField("Spell check started",
                        RichTextField.USE_TEXT_WIDTH | Field.NON_FOCUSABLE);
        popUp.add(rtf);
        popUp.show(1500);
        return true;
    }
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.