Package gov.nih.mipav.view.dialogs
Class JDialogRunScriptView.ArrayListTransferHandler
- java.lang.Object
-
- javax.swing.TransferHandler
-
- gov.nih.mipav.view.dialogs.JDialogRunScriptView.ArrayListTransferHandler
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- JDialogRunScriptView
private class JDialogRunScriptView.ArrayListTransferHandler extends javax.swing.TransferHandler
Transfer handler used for dragging the images and vois into the tree.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
JDialogRunScriptView.ArrayListTransferHandler.ArrayListTransferable
DOCUMENT ME!
-
Field Summary
Fields Modifier and Type Field Description (package private) java.awt.datatransfer.DataFlavor
localArrayListFlavor
DOCUMENT ME!(package private) java.lang.String
localArrayListType
DOCUMENT ME!(package private) java.awt.datatransfer.DataFlavor
serialArrayListFlavor
DOCUMENT ME!private static long
serialVersionUID
Use serialVersionUID for interoperability.(package private) javax.swing.JList
source
DOCUMENT ME!
-
Constructor Summary
Constructors Constructor Description ArrayListTransferHandler()
Creates a new ArrayListTransferHandler object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canImport(javax.swing.JComponent c, java.awt.datatransfer.DataFlavor[] flavors)
DOCUMENT ME!protected java.awt.datatransfer.Transferable
createTransferable(javax.swing.JComponent c)
DOCUMENT ME!int
getSourceActions(javax.swing.JComponent c)
DOCUMENT ME!private boolean
hasLocalArrayListFlavor(java.awt.datatransfer.DataFlavor[] flavors)
DOCUMENT ME!private boolean
hasSerialArrayListFlavor(java.awt.datatransfer.DataFlavor[] flavors)
DOCUMENT ME!
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
Use serialVersionUID for interoperability.- See Also:
- Constant Field Values
-
localArrayListFlavor
java.awt.datatransfer.DataFlavor localArrayListFlavor
DOCUMENT ME!
-
serialArrayListFlavor
java.awt.datatransfer.DataFlavor serialArrayListFlavor
DOCUMENT ME!
-
localArrayListType
java.lang.String localArrayListType
DOCUMENT ME!
-
source
javax.swing.JList source
DOCUMENT ME!
-
-
Method Detail
-
canImport
public boolean canImport(javax.swing.JComponent c, java.awt.datatransfer.DataFlavor[] flavors)
DOCUMENT ME!- Overrides:
canImport
in classjavax.swing.TransferHandler
- Parameters:
c
- DOCUMENT ME!flavors
- DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
getSourceActions
public int getSourceActions(javax.swing.JComponent c)
DOCUMENT ME!- Overrides:
getSourceActions
in classjavax.swing.TransferHandler
- Parameters:
c
- DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
createTransferable
protected java.awt.datatransfer.Transferable createTransferable(javax.swing.JComponent c)
DOCUMENT ME!- Overrides:
createTransferable
in classjavax.swing.TransferHandler
- Parameters:
c
- DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
hasLocalArrayListFlavor
private boolean hasLocalArrayListFlavor(java.awt.datatransfer.DataFlavor[] flavors)
DOCUMENT ME!- Parameters:
flavors
- DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
hasSerialArrayListFlavor
private boolean hasSerialArrayListFlavor(java.awt.datatransfer.DataFlavor[] flavors)
DOCUMENT ME!- Parameters:
flavors
- DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
-