ca.sqlpower.architect.swingui.olap
Class DnDOLAPTransferable

java.lang.Object
  extended by ca.sqlpower.architect.swingui.olap.DnDOLAPTransferable
All Implemented Interfaces:
java.awt.datatransfer.Transferable, java.io.Serializable

public class DnDOLAPTransferable
extends java.lang.Object
implements java.awt.datatransfer.Transferable, java.io.Serializable

See Also:
Serialized Form

Field Summary
static java.awt.datatransfer.DataFlavor PP_COORDINATE_FLAVOR
           
 
Constructor Summary
DnDOLAPTransferable(PlayPen pp, java.util.List<PlayPenCoordinate<? extends OLAPObject,? extends OLAPObject>> selectedCoordinates)
          Creates a transferable for the given selection.
 
Method Summary
 java.lang.Object getTransferData(java.awt.datatransfer.DataFlavor flavor)
           
 java.awt.datatransfer.DataFlavor[] getTransferDataFlavors()
           
 boolean isDataFlavorSupported(java.awt.datatransfer.DataFlavor flavor)
           
static java.util.List<PlayPenCoordinate<? extends OLAPObject,? extends OLAPObject>> resolve(PlayPen pp, java.util.List<java.util.List<java.lang.Integer>> coords)
          Gets back the objects given to the transferable constructor, subject to a few limitations: pp must be the same playpen passed in to the constructor pp's content pane must not have been added to or removed from since the constructor was invoked none of the panes represented in the selection must have had any items or sections added or removed.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PP_COORDINATE_FLAVOR

public static final java.awt.datatransfer.DataFlavor PP_COORDINATE_FLAVOR
Constructor Detail

DnDOLAPTransferable

public DnDOLAPTransferable(PlayPen pp,
                           java.util.List<PlayPenCoordinate<? extends OLAPObject,? extends OLAPObject>> selectedCoordinates)
Creates a transferable for the given selection.

This has the same disadvantages described in DnDTreePathTransferable.

Parameters:
node - The SQLObject you want the path to
Method Detail

getTransferDataFlavors

public java.awt.datatransfer.DataFlavor[] getTransferDataFlavors()
Specified by:
getTransferDataFlavors in interface java.awt.datatransfer.Transferable

isDataFlavorSupported

public boolean isDataFlavorSupported(java.awt.datatransfer.DataFlavor flavor)
Specified by:
isDataFlavorSupported in interface java.awt.datatransfer.Transferable

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
Throws:
java.awt.datatransfer.UnsupportedFlavorException
java.io.IOException

resolve

public static java.util.List<PlayPenCoordinate<? extends OLAPObject,? extends OLAPObject>> resolve(PlayPen pp,
                                                                                                   java.util.List<java.util.List<java.lang.Integer>> coords)
Gets back the objects given to the transferable constructor, subject to a few limitations:


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2003-2007 SQL Power Group Inc. www.sqlpower.ca