Class DndBrowserNodes
- java.lang.Object
-
- org.opends.guitools.controlpanel.ui.nodes.DndBrowserNodes
-
- All Implemented Interfaces:
Transferable
public class DndBrowserNodes extends Object implements Transferable
An implementation of Transferable used in the LDAP entry browser to use drag and drop. Currently drag and drop is used for instance to drag a number of entries from a browser and drop them in the list of members of a group.
-
-
Field Summary
Fields Modifier and Type Field Description static DataFlavorINFO_FLAVORThe data flavor managed by this transferable.
-
Constructor Summary
Constructors Constructor Description DndBrowserNodes()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BrowserNodeInfo[]getNodes()Returns the nodes that are being dragged (and dropped).ComponentgetParent()Returns the component that contains the nodes (for instance the tree in the LDAP browser).ObjectgetTransferData(DataFlavor df)DataFlavor[]getTransferDataFlavors()booleanisDataFlavorSupported(DataFlavor df)voidsetNodes(BrowserNodeInfo[] nodes)Sets the nodes that are being dragged (and dropped).voidsetParent(Component parent)Sets the component that contains the nodes (for instance the tree in the LDAP browser).
-
-
-
Field Detail
-
INFO_FLAVOR
public static final DataFlavor INFO_FLAVOR
The data flavor managed by this transferable.
-
-
Method Detail
-
isDataFlavorSupported
public boolean isDataFlavorSupported(DataFlavor df)
- Specified by:
isDataFlavorSupportedin interfaceTransferable
-
getTransferData
public Object getTransferData(DataFlavor df) throws UnsupportedFlavorException, IOException
- Specified by:
getTransferDatain interfaceTransferable- Throws:
UnsupportedFlavorExceptionIOException
-
getTransferDataFlavors
public DataFlavor[] getTransferDataFlavors()
- Specified by:
getTransferDataFlavorsin interfaceTransferable
-
getNodes
public BrowserNodeInfo[] getNodes()
Returns the nodes that are being dragged (and dropped).- Returns:
- the nodes that are being dragged (and dropped).
-
setNodes
public void setNodes(BrowserNodeInfo[] nodes)
Sets the nodes that are being dragged (and dropped).- Parameters:
nodes- the nodes that are being dragged (and dropped).
-
getParent
public Component getParent()
Returns the component that contains the nodes (for instance the tree in the LDAP browser).- Returns:
- the component that contains the nodes (for instance the tree in the LDAP browser).
-
setParent
public void setParent(Component parent)
Sets the component that contains the nodes (for instance the tree in the LDAP browser).- Parameters:
parent- the component that contains the nodes.
-
-