|
JAPI 0.9.0 Yet another Java API API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.TransferHandler net.sf.japi.swing.bookmarks.BookmarkTransferHandler
public class BookmarkTransferHandler
Class for DnD in Bookmarks displaying JTrees.
Field Summary |
---|
Fields inherited from class javax.swing.TransferHandler |
---|
COPY, COPY_OR_MOVE, MOVE, NONE |
Constructor Summary | |
---|---|
BookmarkTransferHandler()
|
Method Summary | |
---|---|
boolean |
canImport(JComponent comp,
DataFlavor[] transferFlavors)
Indicates whether a component would accept an import of the given set of data flavors prior to actually attempting to import it. |
Transferable |
createTransferable(JComponent c)
Creates a Transferable to use as the source for
a data transfer. |
int |
getSourceActions(JComponent c)
Returns the type of transfer actions supported by the source. |
Methods inherited from class javax.swing.TransferHandler |
---|
exportAsDrag, exportDone, exportToClipboard, getCopyAction, getCutAction, getPasteAction, getVisualRepresentation, importData |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BookmarkTransferHandler()
Method Detail |
---|
public Transferable createTransferable(JComponent c)
Transferable
to use as the source for
a data transfer. Returns the representation of the data to
be transferred, or null
if the component's
property is null
createTransferable
in class TransferHandler
c
- the component holding the data to be transferred; this
argument is provided to enable sharing of TransferHandler
s
by multiple components
null
if the property associated with c
is null
public boolean canImport(JComponent comp, DataFlavor[] transferFlavors)
canImport
in class TransferHandler
comp
- the component to receive the transfer; this
argument is provided to enable sharing of TransferHandlers
by multiple componentstransferFlavors
- the data formats available
public int getSourceActions(JComponent c)
COPY
only should be advertised in that case.
getSourceActions
in class TransferHandler
c
- the component holding the data to be transferred; this
argument is provided to enable sharing of TransferHandler
s
by multiple components.
COPY
if the transfer property can be found,
otherwise returns NONE
; a return value of
of NONE
disables any transfers out of the component
|
JAPI Yet another Java API API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |