JAligner

jaligner.ui.clipboard
Class ClipboardHandlerAWT

java.lang.Object
  extended byjaligner.ui.clipboard.ClipboardHandlerAWT
All Implemented Interfaces:
ClipboardHandler

public class ClipboardHandlerAWT
extends java.lang.Object
implements ClipboardHandler

Sets and gets the contents of the system clipboard.

Author:
Ahmed Moustafa (ahmed@users.sf.net)

Constructor Summary
ClipboardHandlerAWT()
           
 
Method Summary
 java.lang.String getContents()
          Gets the contents of the system clipboard
 void setContents(java.lang.String s)
          Sets the contents of the system clipboard
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClipboardHandlerAWT

public ClipboardHandlerAWT()
Method Detail

getContents

public java.lang.String getContents()
Gets the contents of the system clipboard

Specified by:
getContents in interface ClipboardHandler
Returns:
The text contents of the system clipboard

setContents

public void setContents(java.lang.String s)
Sets the contents of the system clipboard

Specified by:
setContents in interface ClipboardHandler
Parameters:
s - the clipboard contents to set

JAligner

Ahmed Moustafa (ahmed@users.sf.net)SourceForge.net
The source code of JAligner is licensed under The GNU General Public License (GPL)