DESY ACOP Beans Home

com.cosylab.gui.util
Class MultipleDisplayerParametersTransferHandler

java.lang.Object
  extended by javax.swing.TransferHandler
      extended by com.cosylab.gui.components.util.CosyTransferHandler
          extended by com.cosylab.gui.util.AbstractDisplayerParametersTransferHandler
              extended by com.cosylab.gui.util.MultipleDisplayerParametersTransferHandler
All Implemented Interfaces:
java.awt.datatransfer.Transferable, java.awt.event.MouseMotionListener, java.io.Serializable, java.util.EventListener

public class MultipleDisplayerParametersTransferHandler
extends AbstractDisplayerParametersTransferHandler

MultipleDisplayerParametersTransferHandler can handle MultipleDisplayerParameters.

Author:
tkusterle
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.cosylab.gui.components.util.CosyTransferHandler
CosyTransferHandler.MouseFilter
 
Nested classes/interfaces inherited from class javax.swing.TransferHandler
javax.swing.TransferHandler.DropLocation, javax.swing.TransferHandler.TransferSupport
 
Field Summary
protected  MultipleDisplayer mDisplayer
           
 
Fields inherited from class com.cosylab.gui.util.AbstractDisplayerParametersTransferHandler
dialog, displayer, flavors
 
Fields inherited from class com.cosylab.gui.components.util.CosyTransferHandler
isDragging
 
Fields inherited from class javax.swing.TransferHandler
COPY, COPY_OR_MOVE, LINK, MOVE, NONE
 
Constructor Summary
MultipleDisplayerParametersTransferHandler(MultipleDisplayer comp, boolean reciveEnabled, boolean exportEnabled)
           
MultipleDisplayerParametersTransferHandler(MultipleDisplayer comp, boolean reciveEnabled, boolean exportEnabled, java.awt.datatransfer.DataFlavor[] f, boolean resetFlavors)
           
 
Method Summary
 int displayerParametersDimension()
           
protected  DisplayerParameters exportDisplayerParameters()
           
protected  DisplayerParameters[] exportMultipleDisplayerParameters()
           
 MultipleDisplayer getMultipleDisplayer()
          Returns the displayer.
 java.lang.Object getTransferData(java.awt.datatransfer.DataFlavor flavor)
           
 boolean importData(javax.swing.JComponent comp, java.awt.datatransfer.Transferable t)
           
 
Methods inherited from class com.cosylab.gui.util.AbstractDisplayerParametersTransferHandler
canImport, castParameters, getComponent, getParameterSelectionDialog, getTransferDataFlavors, importDisplayerParameters, importString, selectParameters, selectParameters, setParametersToDisplayer
 
Methods inherited from class com.cosylab.gui.components.util.CosyTransferHandler
addMouseFilter, canDrag, createTransferable, exportDone, getMouseFilters, getSourceActions, hookTransferHandler, hookTransferHandler, isDataFlavorSupported, isExportEnabled, isMouseDragGesture, isReceiveEnabled, mouseDragged, mouseMoved, registerTransferHandler, removeMouseFilter, setExportEnabled, setReceiveEnabled, unhookTransferHandler
 
Methods inherited from class javax.swing.TransferHandler
canImport, exportAsDrag, 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

mDisplayer

protected MultipleDisplayer mDisplayer
Constructor Detail

MultipleDisplayerParametersTransferHandler

public MultipleDisplayerParametersTransferHandler(MultipleDisplayer comp,
                                                  boolean reciveEnabled,
                                                  boolean exportEnabled)

MultipleDisplayerParametersTransferHandler

public MultipleDisplayerParametersTransferHandler(MultipleDisplayer comp,
                                                  boolean reciveEnabled,
                                                  boolean exportEnabled,
                                                  java.awt.datatransfer.DataFlavor[] f,
                                                  boolean resetFlavors)
Method Detail

getTransferData

public java.lang.Object getTransferData(java.awt.datatransfer.DataFlavor flavor)
                                 throws java.awt.datatransfer.UnsupportedFlavorException,
                                        java.io.IOException
Specified by:
getTransferData in interface java.awt.datatransfer.Transferable
Overrides:
getTransferData in class AbstractDisplayerParametersTransferHandler
Throws:
java.awt.datatransfer.UnsupportedFlavorException
java.io.IOException

exportDisplayerParameters

protected DisplayerParameters exportDisplayerParameters()
Specified by:
exportDisplayerParameters in class AbstractDisplayerParametersTransferHandler

exportMultipleDisplayerParameters

protected DisplayerParameters[] exportMultipleDisplayerParameters()

importData

public boolean importData(javax.swing.JComponent comp,
                          java.awt.datatransfer.Transferable t)
Overrides:
importData in class AbstractDisplayerParametersTransferHandler

displayerParametersDimension

public int displayerParametersDimension()

getMultipleDisplayer

public MultipleDisplayer getMultipleDisplayer()
Returns the displayer.

Returns:
Returns the displayer.


Copyright © 2010. All Rights Reserved.