|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.TransferHandler com.alee.extended.tab.DocumentDragHandler
public class DocumentDragHandler
Custom TransferHandler for DocumentData object. This TransferHandler is made specially for WebDocumentPane component.
WebDocumentPane
,
Serialized FormNested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.TransferHandler |
---|
javax.swing.TransferHandler.DropLocation, javax.swing.TransferHandler.TransferSupport |
Field Summary | |
---|---|
protected DocumentData |
document
Dragged document. |
protected int |
documentIndex
Dragged away document index. |
protected PaneData |
paneData
PaneData to which this TransferHandler is attached. |
protected WebTabbedPane |
tabbedPane
WebTabbedPane from PaneData. |
Fields inherited from class javax.swing.TransferHandler |
---|
COPY, COPY_OR_MOVE, LINK, MOVE, NONE |
Constructor Summary | |
---|---|
DocumentDragHandler(PaneData paneData)
Constructs new DocumentDragHandler for the specified PaneData. |
Method Summary | |
---|---|
boolean |
canImport(javax.swing.TransferHandler.TransferSupport support)
|
protected java.awt.datatransfer.Transferable |
createTransferable(javax.swing.JComponent c)
|
void |
exportAsDrag(javax.swing.JComponent comp,
java.awt.event.InputEvent e,
int action)
|
protected void |
exportDone(javax.swing.JComponent source,
java.awt.datatransfer.Transferable data,
int action)
|
int |
getSourceActions(javax.swing.JComponent c)
|
boolean |
importData(javax.swing.TransferHandler.TransferSupport support)
|
static void |
install(PaneData paneData)
Quick drag handler installation method. |
Methods inherited from class javax.swing.TransferHandler |
---|
canImport, exportToClipboard, getCopyAction, getCutAction, getPasteAction, getVisualRepresentation, importData |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final PaneData paneData
protected final WebTabbedPane tabbedPane
protected int documentIndex
protected DocumentData document
Constructor Detail |
---|
public DocumentDragHandler(PaneData paneData)
paneData
- PaneDataMethod Detail |
---|
public int getSourceActions(javax.swing.JComponent c)
getSourceActions
in class javax.swing.TransferHandler
public void exportAsDrag(javax.swing.JComponent comp, java.awt.event.InputEvent e, int action)
exportAsDrag
in class javax.swing.TransferHandler
protected java.awt.datatransfer.Transferable createTransferable(javax.swing.JComponent c)
createTransferable
in class javax.swing.TransferHandler
protected void exportDone(javax.swing.JComponent source, java.awt.datatransfer.Transferable data, int action)
exportDone
in class javax.swing.TransferHandler
public boolean canImport(javax.swing.TransferHandler.TransferSupport support)
canImport
in class javax.swing.TransferHandler
public boolean importData(javax.swing.TransferHandler.TransferSupport support)
importData
in class javax.swing.TransferHandler
public static void install(PaneData paneData)
paneData
- pane into which this drag handler should be installed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |