equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1996, 2006, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1996, 2013, 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 |
25 |
25 |
26 package java.awt.datatransfer; |
26 package java.awt.datatransfer; |
27 |
27 |
28 import java.io.*; |
28 import java.io.*; |
29 |
29 |
30 import javax.tools.annotation.GenerateNativeHeader; |
|
31 |
30 |
32 /** |
31 /** |
33 * A <code>Transferable</code> which implements the capability required |
32 * A <code>Transferable</code> which implements the capability required |
34 * to transfer a <code>String</code>. |
33 * to transfer a <code>String</code>. |
35 * |
34 * |
41 * <code>DataFlavor</code>s are supported. |
40 * <code>DataFlavor</code>s are supported. |
42 * |
41 * |
43 * @see java.awt.datatransfer.DataFlavor#stringFlavor |
42 * @see java.awt.datatransfer.DataFlavor#stringFlavor |
44 * @see java.awt.datatransfer.DataFlavor#plainTextFlavor |
43 * @see java.awt.datatransfer.DataFlavor#plainTextFlavor |
45 */ |
44 */ |
46 /* No native methods here, but the constants are needed in the supporting JNI code */ |
|
47 @GenerateNativeHeader |
|
48 public class StringSelection implements Transferable, ClipboardOwner { |
45 public class StringSelection implements Transferable, ClipboardOwner { |
49 |
46 |
50 private static final int STRING = 0; |
47 private static final int STRING = 0; |
51 private static final int PLAIN_TEXT = 1; |
48 private static final int PLAIN_TEXT = 1; |
52 |
49 |