org.simBio.sim.gui.toolKit.dndmenu
Class DnDTransferBean
java.lang.Object
org.simBio.sim.gui.toolKit.dndmenu.DnDTransferBean
- All Implemented Interfaces:
- Transferable
public class DnDTransferBean
- extends Object
- implements Transferable
Drag&Dropで転送されるオブジェクトを入れるBean.
- Author:
- misaki
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DnDTransferBean
public DnDTransferBean(JComponent jComponent,
Action action,
String id)
getAction
public Action getAction()
setAction
public void setAction(Action action)
- Parameters:
action
-
getJComponent
public JComponent getJComponent()
setJComponent
public void setJComponent(JComponent component)
- Parameters:
component
-
getTransferDataFlavors
public DataFlavor[] getTransferDataFlavors()
- 自クラスの転送可能な DataFlavor 配列を返す。
- Specified by:
getTransferDataFlavors
in interface Transferable
- See Also:
Transferable.getTransferDataFlavors()
isDataFlavorSupported
public boolean isDataFlavorSupported(DataFlavor flavor)
- Specified by:
isDataFlavorSupported
in interface Transferable
getTransferData
public Object getTransferData(DataFlavor flavor)
throws UnsupportedFlavorException,
IOException
- Specified by:
getTransferData
in interface Transferable
- Throws:
UnsupportedFlavorException
IOException
Copyright © 2005 Cell/Biodinamics simulation project. All Rights Reserved.