|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.threerings.opengl.gui.TransferHandler
public class TransferHandler
Handles drag and drop, cut and paste operations.
| Field Summary | |
|---|---|
static int |
COPY
Indicates that only the copy action is supported. |
static int |
COPY_OR_MOVE
Indicates that the copy and move actions are supported. |
static int |
MOVE
Indicates that the move action is supported. |
static int |
NONE
Indicates that no source actions are supported. |
| Constructor Summary | |
|---|---|
TransferHandler()
|
|
| Method Summary | |
|---|---|
boolean |
canImport(Component comp,
DataFlavor[] transferFlavors)
Determines whether the specified component can accept an import prior to attempting one. |
void |
exportAsDrag(Component comp,
InputEvent event,
int action)
Initiates a drag operation. |
void |
exportToClipboard(Component comp,
Clipboard clipboard,
int action)
Exports from the specified component to the given clipboard. |
int |
getSourceActions(Component comp)
Returns the source actions supported by the specified component. |
Icon |
getVisualRepresentation(Transferable data)
Returns the visual representation for the specified transferable, or null to use the default. |
boolean |
importData(Component comp,
Transferable data)
Attempts to import data from the specified component. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int NONE
public static final int COPY
public static final int MOVE
public static final int COPY_OR_MOVE
| Constructor Detail |
|---|
public TransferHandler()
| Method Detail |
|---|
public int getSourceActions(Component comp)
public void exportAsDrag(Component comp,
InputEvent event,
int action)
public void exportToClipboard(Component comp,
Clipboard clipboard,
int action)
public Icon getVisualRepresentation(Transferable data)
public boolean canImport(Component comp,
DataFlavor[] transferFlavors)
public boolean importData(Component comp,
Transferable data)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||