org.pentaho.di.core.dnd
Class DragAndDropContainer

java.lang.Object
  extended by org.pentaho.di.core.dnd.DragAndDropContainer
All Implemented Interfaces:
XMLInterface

public class DragAndDropContainer
extends Object
implements XMLInterface

This class contains code to help you drag data from one part of a GUI to another by using XML as an intermediate step.

Since:
2006-04-16
Author:
matt

Field Summary
static int TYPE_BASE_JOB_ENTRY
           
static int TYPE_BASE_STEP_TYPE
           
static int TYPE_BUSINESS_COLUMN
           
static int TYPE_BUSINESS_MODEL
           
static int TYPE_BUSINESS_TABLE
           
static int TYPE_BUSINESS_VIEW
           
static int TYPE_DATABASE_CONNECTION
           
static int TYPE_JOB_ENTRY
           
static int TYPE_PHYSICAL_COLUMN
           
static int TYPE_PHYSICAL_TABLE
           
static int TYPE_RELATIONSHIP
           
static int TYPE_STEP
           
static int TYPE_TEXT
           
static int TYPE_TRANS_HOP
           
 
Constructor Summary
DragAndDropContainer(int type, String data)
          Create a new DragAndDropContainer
DragAndDropContainer(String xml)
          Construct a Drag and drop container from an XML String
 
Method Summary
 String getData()
           
 int getType()
           
static int getType(String typeCode)
           
 String getTypeCode()
           
 String getXML()
          Describes the Object implementing this interface as XML
 void setData(String data)
           
 void setType(int type)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE_STEP

public static final int TYPE_STEP
See Also:
Constant Field Values

TYPE_BASE_STEP_TYPE

public static final int TYPE_BASE_STEP_TYPE
See Also:
Constant Field Values

TYPE_DATABASE_CONNECTION

public static final int TYPE_DATABASE_CONNECTION
See Also:
Constant Field Values

TYPE_TRANS_HOP

public static final int TYPE_TRANS_HOP
See Also:
Constant Field Values

TYPE_TEXT

public static final int TYPE_TEXT
See Also:
Constant Field Values

TYPE_JOB_ENTRY

public static final int TYPE_JOB_ENTRY
See Also:
Constant Field Values

TYPE_BASE_JOB_ENTRY

public static final int TYPE_BASE_JOB_ENTRY
See Also:
Constant Field Values

TYPE_PHYSICAL_TABLE

public static final int TYPE_PHYSICAL_TABLE
See Also:
Constant Field Values

TYPE_PHYSICAL_COLUMN

public static final int TYPE_PHYSICAL_COLUMN
See Also:
Constant Field Values

TYPE_BUSINESS_VIEW

public static final int TYPE_BUSINESS_VIEW
See Also:
Constant Field Values

TYPE_BUSINESS_TABLE

public static final int TYPE_BUSINESS_TABLE
See Also:
Constant Field Values

TYPE_BUSINESS_COLUMN

public static final int TYPE_BUSINESS_COLUMN
See Also:
Constant Field Values

TYPE_RELATIONSHIP

public static final int TYPE_RELATIONSHIP
See Also:
Constant Field Values

TYPE_BUSINESS_MODEL

public static final int TYPE_BUSINESS_MODEL
See Also:
Constant Field Values
Constructor Detail

DragAndDropContainer

public DragAndDropContainer(int type,
                            String data)
Create a new DragAndDropContainer

Parameters:
type - The type of drag&drop to perform
data - The data in the form of a String

DragAndDropContainer

public DragAndDropContainer(String xml)
                     throws KettleXMLException
Construct a Drag and drop container from an XML String

Parameters:
xml - The XML string to convert from
Throws:
KettleXMLException
Method Detail

getType

public int getType()

setType

public void setType(int type)

getData

public String getData()

setData

public void setData(String data)

getTypeCode

public String getTypeCode()

getType

public static final int getType(String typeCode)

getXML

public String getXML()
Description copied from interface: XMLInterface
Describes the Object implementing this interface as XML

Specified by:
getXML in interface XMLInterface
Returns:
the XML string for this object