38 |
package javax.swing; |
package javax.swing; |
39 |
|
|
40 |
import java.io.Serializable; |
import java.io.Serializable; |
41 |
|
import java.awt.event.InputEvent; |
42 |
|
import java.awt.datatransfer.*; |
43 |
|
|
44 |
public class TransferHandler implements Serializable |
public class TransferHandler implements Serializable |
45 |
{ |
{ |
50 |
public static final int MOVE = 2; |
public static final int MOVE = 2; |
51 |
public static final int COPY_OR_MOVE = 3; |
public static final int COPY_OR_MOVE = 3; |
52 |
|
|
53 |
|
static Action getCopyAction () |
54 |
|
{ |
55 |
|
return null; |
56 |
|
} |
57 |
|
|
58 |
|
static Action getCutAction () |
59 |
|
{ |
60 |
|
return null; |
61 |
|
} |
62 |
|
|
63 |
|
static Action getPasteAction () |
64 |
|
{ |
65 |
|
return null; |
66 |
|
} |
67 |
|
|
68 |
|
|
69 |
protected TransferHandler() |
protected TransferHandler() |
70 |
{ |
{ |
71 |
// Do nothing here. |
// Do nothing here. |
72 |
} |
} |
73 |
|
|
74 |
|
public TransferHandler(String property) |
75 |
|
{ |
76 |
|
} |
77 |
|
|
78 |
|
public boolean canImport (JComponent c, DataFlavor[] flavors) |
79 |
|
{ |
80 |
|
return false; |
81 |
|
} |
82 |
|
|
83 |
|
public Transferable createTransferable(JComponent c) |
84 |
|
{ |
85 |
|
return null; |
86 |
|
} |
87 |
|
|
88 |
|
public void exportAsDrag (JComponent c, InputEvent e, int action) |
89 |
|
{ |
90 |
|
} |
91 |
|
|
92 |
|
protected void exportDone (JComponent c, Transferable data, int action) |
93 |
|
{ |
94 |
|
} |
95 |
|
|
96 |
|
public void exportToClipboard(JComponent c, Clipboard clip, int action) |
97 |
|
{ |
98 |
|
} |
99 |
|
|
100 |
|
public int getSourceActions (JComponent c) |
101 |
|
{ |
102 |
|
return 0; |
103 |
|
} |
104 |
|
|
105 |
|
public Icon getVisualRepresentation (Transferable t) |
106 |
|
{ |
107 |
|
return null; |
108 |
|
} |
109 |
|
|
110 |
|
public boolean importData (JComponent c, Transferable t) |
111 |
|
{ |
112 |
|
return false; |
113 |
|
} |
114 |
|
|
115 |
} |
} |