|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.clients.util.WTObjectSelection
A class which implements the capability required to transfer an array
of WTObjects.
Supported API: true
Extendable: false
Field Summary | |
private DataFlavor[] |
flavors_
|
(package private) static int |
PLAIN_TEXT
|
(package private) static int |
STRING
|
(package private) static String |
STRING_SEPARATOR
|
(package private) static int |
WT_OBJECT_ARRAY
|
private WTObject[] |
wtObjectArray_
|
private String |
wtObjectString_
|
Constructor Summary | |
WTObjectSelection(WTObject wt_object)
Creates a transferable object capable of transfering the specified WTObject. |
|
WTObjectSelection(WTObject[] wt_object_array)
Creates a transferable object capable of transfering the specified array of WTObjects. |
Method Summary | |
Object |
getTransferData(DataFlavor flavor)
Get the data in the requested format. |
DataFlavor[] |
getTransferDataFlavors()
Determines the array of flavors in which this class can provide data. |
private String |
getWTObjectString_()
Build a string representation of the wtobject array contained in this transferable object. |
boolean |
isDataFlavorSupported(DataFlavor flavor)
Determines whether the requested flavor is supported by this object. |
void |
lostOwnership(Clipboard clipboard,
Transferable contents)
Notifies this object that it is no longer the owner of the contents of the clipboard. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
static final int WT_OBJECT_ARRAY
static final int STRING
static final int PLAIN_TEXT
static final String STRING_SEPARATOR
private DataFlavor[] flavors_
private WTObject[] wtObjectArray_
private String wtObjectString_
Constructor Detail |
public WTObjectSelection(WTObject[] wt_object_array)
wt_object_array
- an array of WTObjects to transfer.public WTObjectSelection(WTObject wt_object)
wt_object
- the WTObject to transfer.Method Detail |
public DataFlavor[] getTransferDataFlavors()
getTransferDataFlavors
in interface Transferable
DataFlavor
,
WTClipboard
public boolean isDataFlavorSupported(DataFlavor flavor)
isDataFlavorSupported
in interface Transferable
flavor
- the requested data flavor.
public Object getTransferData(DataFlavor flavor) throws UnsupportedFlavorException, IOException
getTransferData
in interface Transferable
flavor
- the requested data flavor.
UnsupportedFlavorException
- if the requested data flavor is
not supported.
IOException
private String getWTObjectString_()
public void lostOwnership(Clipboard clipboard, Transferable contents)
lostOwnership
in interface ClipboardOwner
clipboard
- the clipboard that is no longer ownedcontents
- the contents which this owner had placed on the clipboard
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |