|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.TransferHandler
antsnest.datatransfer.AttributeListTransferHandler
public class AttributeListTransferHandler
The handler that sets up data transfer on the attribute list
| Field Summary |
|---|
| Fields inherited from class javax.swing.TransferHandler |
|---|
COPY, COPY_OR_MOVE, MOVE, NONE |
| Constructor Summary | |
|---|---|
AttributeListTransferHandler()
Constructs a new handler |
|
| Method Summary | |
|---|---|
boolean |
canImport(JComponent c,
DataFlavor[] flavors)
Tells whether a component can accept a data drop |
protected Transferable |
createTransferable(JComponent c)
Creates a transferable from a list |
int |
getSourceActions(JComponent c)
Informs what transfer actions are supported |
boolean |
importData(JComponent c,
Transferable trans)
Does the importing of the data into the list |
| Methods inherited from class javax.swing.TransferHandler |
|---|
exportAsDrag, exportDone, exportToClipboard, getCopyAction, getCutAction, getPasteAction, getVisualRepresentation |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AttributeListTransferHandler()
| Method Detail |
|---|
protected Transferable createTransferable(JComponent c)
createTransferable in class TransferHandlerc - the list that holds the Ant attributes
public int getSourceActions(JComponent c)
getSourceActions in class TransferHandlerc - the component using this handler
public boolean canImport(JComponent c,
DataFlavor[] flavors)
canImport in class TransferHandlerc - the component receiving the dropflavors - the data flavors the drop can come in
public boolean importData(JComponent c,
Transferable trans)
importData in class TransferHandlerc - the component receiving the droptrans - the transferable encapsulating the data
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||