javatools.util
Class Clipboard

java.lang.Object
  |
  +--javatools.util.Clipboard

public class Clipboard
extends java.lang.Object

It represents a simple clipboard, that can contains one element at a time.


Constructor Summary
Clipboard()
          Creates a new instance of Clipboard
 
Method Summary
 void clear()
          Clears everything.
 void copy(Clippable clip)
          Copies an item.
 void cut(Clippable clip)
          Cuts an item.
 Clippable getClipObject()
          Returns the clipped object.
 void paste(Clippable father)
          Pastes an item.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Clipboard

public Clipboard()
Creates a new instance of Clipboard

Method Detail

cut

public void cut(Clippable clip)
Cuts an item.

Parameters:
clip - The item to be cut.

copy

public void copy(Clippable clip)
Copies an item.

Parameters:
clip - The item to be copied.

paste

public void paste(Clippable father)
Pastes an item.

Parameters:
father - The item to paste the saved item into.

getClipObject

public Clippable getClipObject()
Returns the clipped object.

Returns:
The clipped object.

clear

public void clear()
Clears everything.