46 |
import java.awt.datatransfer.UnsupportedFlavorException; |
import java.awt.datatransfer.UnsupportedFlavorException; |
47 |
import java.util.List; |
import java.util.List; |
48 |
|
|
49 |
|
/** |
50 |
|
* @author Michael Koch <konqueror@gmx.de> |
51 |
|
* @since 1.2 |
52 |
|
*/ |
53 |
public class DropTargetContext implements Serializable |
public class DropTargetContext implements Serializable |
54 |
{ |
{ |
55 |
static final long serialVersionUID = -634158968993743371L; |
static final long serialVersionUID = -634158968993743371L; |
59 |
protected boolean isLocal; |
protected boolean isLocal; |
60 |
protected Transferable transferable; |
protected Transferable transferable; |
61 |
|
|
62 |
|
TransferableProxy (Transferable t, boolean local) |
63 |
|
{ |
64 |
|
this.transferable = t; |
65 |
|
this.isLocal = local; |
66 |
|
} |
67 |
|
|
68 |
public DataFlavor[] getTransferDataFlavors () |
public DataFlavor[] getTransferDataFlavors () |
69 |
{ |
{ |
70 |
// FIXME: implement this |
// FIXME: implement this |
120 |
} |
} |
121 |
|
|
122 |
/** |
/** |
123 |
* FIXME |
* Signals that the drop is completed. |
124 |
* |
* |
125 |
* @exception InvalidDnDOperationException FIXME |
* @exception InvalidDnDOperationException If a drop is not outstanding. |
126 |
*/ |
*/ |
127 |
public void dropComplete (boolean success) |
public void dropComplete (boolean success) |
128 |
{ |
{ |
168 |
} |
} |
169 |
|
|
170 |
/** |
/** |
171 |
* FIXME |
* Return the <code>Transferable</code> operandof this operation. |
172 |
* |
* |
173 |
* @exception InvalidDnDOperationException FIXME |
* @exception InvalidDnDOperationException If a drag is not outstanding. |
174 |
*/ |
*/ |
175 |
protected Transferable getTransferable() throws InvalidDnDOperationException |
protected Transferable getTransferable() throws InvalidDnDOperationException |
176 |
{ |
{ |
180 |
|
|
181 |
protected Transferable createTransferableProxy(Transferable t, boolean local) |
protected Transferable createTransferableProxy(Transferable t, boolean local) |
182 |
{ |
{ |
183 |
// FIXME: implement this |
return new TransferableProxy (t, local); |
|
return null; |
|
184 |
} |
} |
185 |
} // class DropTargetContext |
} // class DropTargetContext |