Examples of ClipboardManager


Examples of android.text.ClipboardManager

        break;
      }
      case R.id.list_copy_password_to_clipboard:
      case R.id.list_copy_username_to_clipboard: {
        Secret secret = secretsList.getSecret(cmenuPosition);
        ClipboardManager cm = (ClipboardManager) getSystemService(
            CLIPBOARD_SERVICE);
        int typeId;
        if (item.getItemId() == R.id.list_copy_password_to_clipboard) {
          cm.setText(secret.getPassword(false));
          typeId = R.string.password_copied_to_clipboard;
        } else {
          cm.setText(secret.getUsername());
          typeId = R.string.username_copied_to_clipboard;
        }
        String template = getText(R.string.copied_to_clipboard).toString();
        String typeOfCopy = getText(typeId).toString();
        String msg = MessageFormat.format(template, secret.getDescription(),
View Full Code Here

Examples of se.runa.clipboard.ClipboardManager

  }
    }

    void paste() {
  try {
      ClipboardManager manager = ClipboardManager.instance();
      List<File> files = manager.getFileContent();
      ClipboardStrategy strategy = manager.getStrategyContent();
      if (files == null || files.isEmpty()) {
    Toolkit.getDefaultToolkit().beep();
      } else {
    File destDir = getSelectedTreeNode();
    new PasteDialog(this, files, destDir, strategy);
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.