Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

javatools.util
Class Clipboard  view Clipboard download Clipboard.java

java.lang.Object
  extended byjavatools.util.Clipboard

public class Clipboard
extends java.lang.Object

It represents a simple clipboard. Now it can contains several elements at a time.

Version:
0.1.8

Field Summary
private  Clippable[] clipObjects
           
 
Constructor Summary
Clipboard()
          Creates a new instance of Clipboard
 
Method Summary
static Clippable[] buildClippableArray(javax.swing.JTree tree)
           
 boolean canBeAttached(Clippable clip, boolean checkOnlyOne)
           
static boolean canBeCopied(Clippable[] clips, boolean checkOnlyOne)
           
static boolean canBeCut(Clippable[] clips, boolean checkOnlyOne)
           
 void clear()
          Clears everything.
 void copy(Clippable clip)
          Copies an item.
 void copy(Clippable[] clips)
          Copies an array of items.
 void cut(Clippable clip)
          Cuts an item.
 void cut(Clippable[] clips)
          Cuts an array of items.
 Clippable getClipObject()
          Returns the first of the array of clipped objects.
 Clippable[] getClipObjects()
          Returns the array of clipped objects.
static java.lang.String getFirstType(Clippable[] clips)
           
static boolean isOmogeneous(Clippable[] clips)
           
 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
 

Field Detail

clipObjects

private Clippable[] clipObjects
Constructor Detail

Clipboard

public Clipboard()
Creates a new instance of Clipboard

Method Detail

buildClippableArray

public static Clippable[] buildClippableArray(javax.swing.JTree tree)

isOmogeneous

public static boolean isOmogeneous(Clippable[] clips)

getFirstType

public static java.lang.String getFirstType(Clippable[] clips)

canBeCut

public static boolean canBeCut(Clippable[] clips,
                               boolean checkOnlyOne)

canBeCopied

public static boolean canBeCopied(Clippable[] clips,
                                  boolean checkOnlyOne)

canBeAttached

public boolean canBeAttached(Clippable clip,
                             boolean checkOnlyOne)

cut

public void cut(Clippable clip)
Cuts an item.


cut

public void cut(Clippable[] clips)
Cuts an array of items.


copy

public void copy(Clippable clip)
Copies an item.


copy

public void copy(Clippable[] clips)
Copies an array of items.


paste

public void paste(Clippable father)
Pastes an item.


getClipObject

public Clippable getClipObject()
Returns the first of the array of clipped objects.


getClipObjects

public Clippable[] getClipObjects()
Returns the array of clipped objects.


clear

public void clear()
Clears everything.