Package net.rim.device.api.system

Examples of net.rim.device.api.system.Clipboard


      contextMenu.addItem(hotpItem);
    }

    MenuItem copyItem = new MenuItem(sResources, COPY_TO_CLIPBOARD, 0, 0) {
      public void run() {
        Clipboard clipboard = Clipboard.getClipboard();
        clipboard.put(item.mPin);

        String message = sResources.getString(COPIED);
        Dialog.inform(message);
      }
    };
View Full Code Here


        final Field fieldWithFocus = this.getFieldWithFocus();

        if (fieldWithFocus == _editField) {
            // Get selected text from the EditField
            final Clipboard clipboard = Clipboard.getClipboard();
            _editField.selectionCopy(clipboard);
            final Object obj = clipboard.get();

            if (obj instanceof String) {
                final String selectedText = (String) obj;
                addSendMenuForText(menu, selectedText);
            }
View Full Code Here

TOP

Related Classes of net.rim.device.api.system.Clipboard

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.