Package org.pentaho.di.core.dnd
Class DragAndDropContainer
- java.lang.Object
-
- org.pentaho.di.core.dnd.DragAndDropContainer
-
- All Implemented Interfaces:
org.pentaho.di.core.xml.XMLInterface
public class DragAndDropContainer extends Object implements org.pentaho.di.core.xml.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
Fields Modifier and Type Field Description 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
Constructors Constructor Description DragAndDropContainer(int type, String data)
Create a new DragAndDropContainerDragAndDropContainer(int type, String data, String id)
Create a new DragAndDropContainerDragAndDropContainer(String xml)
Construct a Drag and drop container from an XML String
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getData()
String
getId()
int
getType()
static int
getType(String typeCode)
String
getTypeCode()
String
getXML()
void
setData(String data)
void
setId(String id)
void
setType(int type)
-
-
-
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 performdata
- The data in the form of a String
-
DragAndDropContainer
public DragAndDropContainer(int type, String data, String id)
Create a new DragAndDropContainer- Parameters:
type
- The type of drag&drop to performdata
- The data in the form of a Stringid
- The id of the step in the form of a String
-
DragAndDropContainer
public DragAndDropContainer(String xml) throws org.pentaho.di.core.exception.KettleXMLException
Construct a Drag and drop container from an XML String- Parameters:
xml
- The XML string to convert from- Throws:
org.pentaho.di.core.exception.KettleXMLException
-
-
Method Detail
-
getType
public int getType()
-
setType
public void setType(int type)
-
getData
public String getData()
-
setData
public void setData(String data)
-
getId
public String getId()
-
setId
public void setId(String id)
-
getTypeCode
public String getTypeCode()
-
getType
public static final int getType(String typeCode)
-
getXML
public String getXML()
- Specified by:
getXML
in interfaceorg.pentaho.di.core.xml.XMLInterface
-
-