KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sslexplorer > vfs > clipboard > Clipboard


1 package com.sslexplorer.vfs.clipboard;
2
3 import java.util.ArrayList JavaDoc;
4 import java.util.List JavaDoc;
5
6 /**
7  * A class which holds a list of clipboard content.
8  *
9  * @author James D Robinson <a HREF="mailto:james@3sp.com">&lt;james@3sp.com&gt;</a>
10  *
11  */

12 public class Clipboard {
13
14     private List JavaDoc<ClipboardContent> content;
15
16     /**
17      * Constructor
18      */

19     public Clipboard() {
20         this.content = new ArrayList JavaDoc<ClipboardContent>();
21     }
22
23     /**
24      * @return List of ClipboardContent
25      */

26     public List JavaDoc<ClipboardContent> getContent() {
27         return content;
28     }
29
30     /**
31      * @param clipboardContent
32      */

33     public void addContent(ClipboardContent clipboardContent) {
34         this.content.add(clipboardContent);
35     }
36
37     /**
38      *
39      */

40     public void clearClipboard() {
41         this.content.clear();
42     }
43
44 }
45
Popular Tags