1 | public DataFlavor[] getTransferDataFlavors() {↵ | | 1 | public DataFlavor[] getTransferDataFlavors() {↵
|
2 | return new DataFlavor[] { FLAVOR };↵ | | 2 | return new DataFlavor[] { FLAVOR };↵
|
3 | }↵ | | 3 | }↵
|
|
4 | /** {@inheritDoc} */↵ | | 4 | /** {@inheritDoc} */↵
|
5 | public boolean isDataFlavorSupported(DataFlavor flavor) {↵ | | 5 | public boolean isDataFlavorSupported(DataFlavor flavor) {↵
|
6 | return FLAVOR.equals(flavor);↵ | | 6 | return FLAVOR.equals(flavor);↵
|
7 | }↵ | | 7 | }↵
|
|
8 | /** {@inheritDoc} */↵ | | 8 | /** {@inheritDoc} */↵
|
9 | public Object getTransferData(DataFlavor flavor)↵ | | 9 | public Object getTransferData(DataFlavor flavor)↵
|
10 | throws UnsupportedFlavorException, IOException {↵ | | 10 | throws UnsupportedFlavorException, IOException {↵
|
11 | if (!isDataFlavorSupported(flavor)) {↵ | | 11 | if (!isDataFlavorSupported(flavor)) {↵
|
12 | throw new UnsupportedFlavorException(flavor);↵ | | 12 | throw new UnsupportedFlavorException(flavor);↵
|
13 | }↵ | | 13 | }↵
|
|
14 | return this | | 14 | return this
|