jdk/src/share/classes/java/awt/datatransfer/Clipboard.java
changeset 22281 830790e8640d
parent 15994 5c8a3d840366
child 24153 2c19973ab9f2
equal deleted inserted replaced
22280:384c863b2462 22281:830790e8640d
     1 /*
     1 /*
     2  * Copyright (c) 1996, 2006, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1996, 2014, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    52  */
    52  */
    53 public class Clipboard {
    53 public class Clipboard {
    54 
    54 
    55     String name;
    55     String name;
    56 
    56 
       
    57     /**
       
    58      * The owner of the clipboard.
       
    59      */
    57     protected ClipboardOwner owner;
    60     protected ClipboardOwner owner;
       
    61     /**
       
    62      * Contents of the clipboard.
       
    63      */
    58     protected Transferable contents;
    64     protected Transferable contents;
    59 
    65 
    60     /**
    66     /**
    61      * An aggregate of flavor listeners registered on this local clipboard.
    67      * An aggregate of flavor listeners registered on this local clipboard.
    62      *
    68      *
    73      */
    79      */
    74     private Set<DataFlavor> currentDataFlavors;
    80     private Set<DataFlavor> currentDataFlavors;
    75 
    81 
    76     /**
    82     /**
    77      * Creates a clipboard object.
    83      * Creates a clipboard object.
    78      *
    84      * @param name for the clipboard
    79      * @see java.awt.Toolkit#getSystemClipboard
    85      * @see java.awt.Toolkit#getSystemClipboard
    80      */
    86      */
    81     public Clipboard(String name) {
    87     public Clipboard(String name) {
    82         this.name = name;
    88         this.name = name;
    83     }
    89     }
    84 
    90 
    85     /**
    91     /**
    86      * Returns the name of this clipboard object.
    92      * Returns the name of this clipboard object.
       
    93      * @return the name of this clipboard object
    87      *
    94      *
    88      * @see java.awt.Toolkit#getSystemClipboard
    95      * @see java.awt.Toolkit#getSystemClipboard
    89      */
    96      */
    90     public String getName() {
    97     public String getName() {
    91         return name;
    98         return name;