|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.TransferHandler
kr.ac.kaist.swrc.jhannanum.demo.GUIDemo.PluginTransferHandler
private class GUIDemo.PluginTransferHandler
Handler for the drag-and-drop functionality of plug-in from the plug-in pool to the work flow.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.TransferHandler |
|---|
javax.swing.TransferHandler.DropLocation, javax.swing.TransferHandler.TransferSupport |
| Field Summary | |
|---|---|
private int |
phase
The phase of the plug-in on the work flow. |
private static long |
serialVersionUID
serialVersionUID |
private int |
type
The type of the plug-in. |
| Fields inherited from class javax.swing.TransferHandler |
|---|
COPY, COPY_OR_MOVE, LINK, MOVE, NONE |
| Constructor Summary | |
|---|---|
GUIDemo.PluginTransferHandler(int phase,
int type)
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
canImport(javax.swing.TransferHandler.TransferSupport info)
Returns true when it is possible to drag and drop the plug-in. |
protected java.awt.datatransfer.Transferable |
createTransferable(javax.swing.JComponent c)
Make it possible to transfer the selected plug-in. |
int |
getSourceActions(javax.swing.JComponent c)
Returns the type of action at the source component. |
boolean |
importData(javax.swing.TransferHandler.TransferSupport info)
It transfers the meta data of the plug-in from the plug-in pool to the work flow list. |
| Methods inherited from class javax.swing.TransferHandler |
|---|
canImport, exportAsDrag, exportDone, 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 |
|---|
private static final long serialVersionUID
private int phase
private int type
| Constructor Detail |
|---|
public GUIDemo.PluginTransferHandler(int phase,
int type)
phase - - the phase of the plug-in. PluginInfo.PHASE1 or PluginInfo.PHASE2 or PluginInfo.PHASE3.type - - the type of the plug-in. PluginInfo.MAJOR or PluginInfo.SUPPLEMENT.| Method Detail |
|---|
public boolean canImport(javax.swing.TransferHandler.TransferSupport info)
canImport in class javax.swing.TransferHandlerpublic boolean importData(javax.swing.TransferHandler.TransferSupport info)
importData in class javax.swing.TransferHandlerpublic int getSourceActions(javax.swing.JComponent c)
getSourceActions in class javax.swing.TransferHandlerprotected java.awt.datatransfer.Transferable createTransferable(javax.swing.JComponent c)
createTransferable in class javax.swing.TransferHandler
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||