Examples of RichTextField


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

         */
        private popUpRunner(final String msg) {
            final VerticalFieldManager vfm = new VerticalFieldManager();
            _popUp = new StatusScreen(vfm);
            _rtf =
                    new RichTextField(msg, RichTextField.USE_TEXT_WIDTH
                            | Field.NON_FOCUSABLE);
        }
View Full Code Here

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

        _app = app;

        // Add UI components to the screen.
        setTitle(new LabelField("Spell Check Demo", DrawStyle.ELLIPSIS
                | Field.USE_ALL_WIDTH));
        final RichTextField infoField =
                new RichTextField(
                        "Type a misspelled word into the test field (eg. blackbery).  Select menu items to perform spell check operations.",
                        Field.NON_FOCUSABLE);
        add(infoField);
        final SeparatorField separator = new SeparatorField();
        add(separator);
View Full Code Here

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

        setTitle("Preprocessor Demo");

        // Indicate how the user may clear the text

        // #ifdef TOUCH_API
        add(new RichTextField(
                "Swipe the screen or use the menu to clear the text"));
        // #else
        add(new RichTextField("Use the menu to clear the text"));
        // #endif

        add(new SeparatorField());

        _textArea = new BasicEditField("Text: ", "");
View Full Code Here

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

            final RadioButtonField sepia =
                    new RadioButtonField("Sepia", _options,
                            (effect != null && effect.equals("sepia")));

            // Add fields to the dialog
            add(new RichTextField("Choose Effect", Field.NON_FOCUSABLE));
            add(new SeparatorField());
            add(none);
            add(greyscale);
            add(sepia);
        }
View Full Code Here

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

     */
    public ServerScreen(final int uuid) {
        setTitle("Bluetooth JSR82 Demo Server");

        _uuid = uuid;
        _statusField = new RichTextField(Field.NON_FOCUSABLE);
        add(_statusField);

        final MenuItem infoScreen =
                new MenuItem(new StringProvider("Info Screen"), 0x230010, 0);
        infoScreen.setCommand(new Command(new CommandHandler() {
View Full Code Here

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

        public PhoneLogsDemoScreen() {
            super(Manager.NO_VERTICAL_SCROLL);

            setTitle("PhoneLogs API Demo");

            add(new RichTextField("Normal Calls",
                    RichTextField.TEXT_JUSTIFY_HCENTER | Field.NON_FOCUSABLE));

            _normalCallTable = new PhoneCallTable(_normalCallModel);

            add(_normalCallTable.getView());

            add(new RichTextField("Missed Calls",
                    RichTextField.TEXT_JUSTIFY_HCENTER | Field.NON_FOCUSABLE));

            _missedCallTable = new PhoneCallTable(_missedCallModel);

            add(_missedCallTable.getView());
View Full Code Here

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

     * Creates a new InfoScreen object
     */
    public InfoScreen() {
        setTitle("Info Screen");
        final String info = generateBluetoothString();
        add(new RichTextField(info));
    }
View Full Code Here

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

            // Populate _picDirectoryURLs with a list of directories
            // that store pictures.
            initPictureDirectories();

            add(new RichTextField(
                    "Click on a pictures directory to display a list of the pictures it contains.\n",
                    Field.NON_FOCUSABLE));

            final DemoVerticalFieldManager vfm =
                    new DemoVerticalFieldManager(Manager.NO_VERTICAL_SCROLL);

            add(vfm);

            _list = new SimpleList(vfm);

            for (int i = 0; i < _pictureDirectoryURLs.size(); i++) {
                _list.add((String) _pictureDirectoryURLs.elementAt(i));
            }

            // Set the list to display when a list item is activated
            _list.setCommand(new Command(new CommandHandler() {
                /**
                 * @see CommandHandler#execute(ReadOnlyCommandMetadata, Object)
                 */
                public void execute(final ReadOnlyCommandMetadata metadata,
                        final Object context) {
                    displayDirectoryPictures(_list.get(_list.getFocusRow()));
                }
            }));

            if (DeviceInfo.hasCamera()) {
                add(new RichTextField("\n...or invoke the camera application",
                        Field.NON_FOCUSABLE));
                _invokeButtonField =
                        new ButtonField("Invoke Camera App",
                                ButtonField.CONSUME_CLICK | Field.FIELD_HCENTER) {
                            /**
 
View Full Code Here

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

        try {
            if (info == null) {
                // Open a port to listen for incoming connections
                _rtf =
                        new RichTextField(
                                "Connect external device and then type something...",
                                Field.NON_FOCUSABLE);
                _port =
                        new BluetoothSerialPort(
                                "Hi there",
                                BluetoothSerialPort.BAUD_115200,
                                BluetoothSerialPort.DATA_FORMAT_PARITY_NONE
                                        | BluetoothSerialPort.DATA_FORMAT_STOP_BITS_1
                                        | BluetoothSerialPort.DATA_FORMAT_DATA_BITS_8,
                                BluetoothSerialPort.FLOW_CONTROL_NONE, 1024,
                                1024, this);
                _deviceName = "unknown";
            } else {
                // Connect to the selected device
                _rtf =
                        new RichTextField("Type something...",
                                Field.NON_FOCUSABLE);
                _port =
                        new BluetoothSerialPort(
                                info,
                                BluetoothSerialPort.BAUD_115200,
View Full Code Here

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

        super(Manager.NO_VERTICAL_SCROLL);

        setTitle("Bluetooth JSR82 Demo Client");

        _uuid = uuid;
        _statusField = new RichTextField(Field.NON_FOCUSABLE);
        add(_statusField);

        final MenuItem infoScreen =
                new MenuItem(new StringProvider("Info Screen"), 0x230010, 1);
        infoScreen.setCommand(new Command(new CommandHandler() {
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.