com.threerings.opengl.gui
Class LocalTransferHandler<T>
java.lang.Object
com.threerings.opengl.gui.TransferHandler
com.threerings.opengl.gui.LocalTransferHandler<T>
public class LocalTransferHandler<T>
- extends TransferHandler
A handler for local object references.
LocalTransferHandler
public LocalTransferHandler(Class<T> clazz)
- Creates a new transfer handler for the specified class.
getVisualRepresentation
public Icon getVisualRepresentation(Transferable data)
- Description copied from class:
TransferHandler
- Returns the visual representation for the specified transferable, or null to use the
default.
- Overrides:
getVisualRepresentation in class TransferHandler
canImport
public boolean canImport(Component comp,
DataFlavor[] transferFlavors)
- Description copied from class:
TransferHandler
- Determines whether the specified component can accept an import prior to attempting one.
- Overrides:
canImport in class TransferHandler
importData
public boolean importData(Component comp,
Transferable data)
- Description copied from class:
TransferHandler
- Attempts to import data from the specified component.
- Overrides:
importData in class TransferHandler
- Returns:
- true if the data was successfully imported, false if not.
Copyright © 2011. All Rights Reserved.