jsky.util.gui
Class ClipboardHelper

java.lang.Object
  extended by jsky.util.gui.ClipboardHelper

public final class ClipboardHelper
extends java.lang.Object

Utility shortcuts for accessing the system clipboard. This uses the standard Java APIs.

Author:
Klaas Waslander, Allan Brighton (added change listeners)

Method Summary
static void addChangeListener(javax.swing.event.ChangeListener l)
          Register to receive change events from this object whenever the clipboard object is set.
protected static void fireChange()
          Notify any listeners of a change in the clipboard object.
static java.lang.Object getClipboard()
          Get the clipboard contents.
static void removeChangeListener(javax.swing.event.ChangeListener l)
          Stop receiving change events from this object.
static void setClipboard(java.lang.Object arg)
          Set the clipboard contents.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setClipboard

public static void setClipboard(java.lang.Object arg)
Set the clipboard contents.


getClipboard

public static java.lang.Object getClipboard()
Get the clipboard contents.


addChangeListener

public static void addChangeListener(javax.swing.event.ChangeListener l)
Register to receive change events from this object whenever the clipboard object is set.


removeChangeListener

public static void removeChangeListener(javax.swing.event.ChangeListener l)
Stop receiving change events from this object.


fireChange

protected static void fireChange()
Notify any listeners of a change in the clipboard object.