com.nokia.mid.ui
Class Clipboard

java.lang.Object
  extended by com.nokia.mid.ui.Clipboard

public abstract class Clipboard
extends java.lang.Object

Class to provide extra functionality that is related to text-editing

Since:
1.4

Constructor Summary
Clipboard()
           
 
Method Summary
static java.lang.String copyFromClipboard()
          Copies characters from the system clipboard.
static void copyToClipboard(java.lang.String text)
          Copies characters into the system clipboard.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Clipboard

public Clipboard()
Method Detail

copyToClipboard

public static void copyToClipboard(java.lang.String text)
Copies characters into the system clipboard.

If text parameter is null or empty string, it clears the system clipboard.

Parameters:
text - the text to be copied

copyFromClipboard

public static java.lang.String copyFromClipboard()
Copies characters from the system clipboard.

Returns empty string when there is nothing in the system clipboard. This method is not supported on S40 platform, returns null.

Returns:
the content in clipboard

forum.nokia.com/java

Copyright (c) 2002-2010 Nokia Corporation. All Rights Reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc.