|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object Dialog org.pentaho.di.ui.trans.step.BaseStepDialog
public class BaseStepDialog
Field Summary | |
---|---|
static LoggingObjectInterface |
loggingObject
|
Constructor Summary | |
---|---|
BaseStepDialog(Shell parent,
BaseStepMeta baseStepMeta,
TransMeta transMeta,
String stepname)
|
|
BaseStepDialog(Shell parent,
int nr,
BaseStepMeta in,
TransMeta tr)
|
Method Summary | |
---|---|
CCombo |
addConnectionLine(Composite parent,
Control previous,
int middle,
int margin)
|
CCombo |
addConnectionLine(Composite parent,
Control previous,
int middle,
int margin,
Class<? extends DatabaseInterface> databaseType)
|
CCombo |
addConnectionLine(Composite parent,
Control previous,
int middle,
int margin,
Label wlConnection,
Button wbnConnection,
Button wbeConnection)
|
CCombo |
addConnectionLine(Composite parent,
Control previous,
int middle,
int margin,
Label wlConnection,
Button wbnConnection,
Button wbeConnection,
Class<? extends DatabaseInterface> databaseType)
|
void |
addDatabases(CCombo wConnection)
|
void |
addDatabases(CCombo wConnection,
Class<? extends DatabaseInterface> databaseType)
|
void |
dispose()
|
static void |
generateFieldMapping(Shell shell,
RowMetaInterface sourceFields,
RowMetaInterface targetFields,
List<SourceToTargetMapping> fieldMapping)
Create a new field mapping between source and target steps. |
static void |
getFieldsFromPrevious(ComboVar comboVar,
TransMeta transMeta,
StepMeta stepMeta)
Gets fields from previous steps and populate a ComboVar. |
static void |
getFieldsFromPrevious(RowMetaInterface row,
TableView tableView,
int keyColumn,
int[] nameColumn,
int[] dataTypeColumn,
int lengthColumn,
int precisionColumn,
TableItemInsertListener listener)
Gets unused fields from previous steps and inserts them as rows into a table view. |
static void |
getFieldsFromPrevious(TransMeta transMeta,
StepMeta stepMeta,
TableView tableView,
int keyColumn,
int[] nameColumn,
int[] dataTypeColumn,
int lengthColumn,
int precisionColumn,
TableItemInsertListener listener)
Gets unused fields from previous steps and inserts them as rows into a table view. |
static ModifyListener |
getModifyListenerTooltipText(Text textField)
|
Repository |
getRepository()
|
boolean |
isBasic()
|
boolean |
isDebug()
|
boolean |
isDetailed()
|
boolean |
isRowLevel()
|
void |
logBasic(String message)
|
void |
logBasic(String message,
Object... arguments)
|
void |
logDebug(String message)
|
void |
logDebug(String message,
Object... arguments)
|
void |
logDetailed(String message)
|
void |
logDetailed(String message,
Object... arguments)
|
void |
logError(String message)
|
void |
logError(String message,
Object... arguments)
|
void |
logError(String message,
Throwable e)
|
void |
logMinimal(String message)
|
void |
logMinimal(String message,
Object... arguments)
|
void |
logRowlevel(String message)
|
void |
logRowlevel(String message,
Object... arguments)
|
static void |
positionBottomButtons(Composite composite,
Button[] buttons,
int margin,
Control lastControl)
Position the specified buttons at the bottom of the parent composite. |
void |
selectDatabase(CCombo wConnection,
String name)
|
static void |
setMinimalShellHeight(Shell shell,
Control[] controls,
int margin,
int extra)
|
void |
setRepository(Repository repository)
|
void |
setShellImage(Shell shell,
StepMetaInterface stepMetaInterface)
|
void |
setSize()
Set the shell size, based upon the previous time the geometry was saved in the Properties file. |
static void |
setSize(Shell shell)
|
static void |
setSize(Shell shell,
int minWidth,
int minHeight,
boolean packIt)
|
static void |
setTraverseOrder(Control[] controls)
|
void |
storeScreenSize()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final LoggingObjectInterface loggingObject
Constructor Detail |
---|
public BaseStepDialog(Shell parent, BaseStepMeta baseStepMeta, TransMeta transMeta, String stepname)
public BaseStepDialog(Shell parent, int nr, BaseStepMeta in, TransMeta tr)
Method Detail |
---|
public void setShellImage(Shell shell, StepMetaInterface stepMetaInterface)
public void dispose()
public void setSize()
public static final void positionBottomButtons(Composite composite, Button[] buttons, int margin, Control lastControl)
The default alignment for buttons in the system will be used. This is set as an LAF
property with the key Button_Position
and has the valid values
of left, center, right
with center
being the default.
buttons
- The buttons to position.margin
- The margin between the buttons in pixelspublic static final ModifyListener getModifyListenerTooltipText(Text textField)
public void addDatabases(CCombo wConnection)
public void addDatabases(CCombo wConnection, Class<? extends DatabaseInterface> databaseType)
public void selectDatabase(CCombo wConnection, String name)
public CCombo addConnectionLine(Composite parent, Control previous, int middle, int margin)
public CCombo addConnectionLine(Composite parent, Control previous, int middle, int margin, Class<? extends DatabaseInterface> databaseType)
public CCombo addConnectionLine(Composite parent, Control previous, int middle, int margin, Label wlConnection, Button wbnConnection, Button wbeConnection)
public CCombo addConnectionLine(Composite parent, Control previous, int middle, int margin, Label wlConnection, Button wbnConnection, Button wbeConnection, Class<? extends DatabaseInterface> databaseType)
public void storeScreenSize()
public Repository getRepository()
public void setRepository(Repository repository)
repository
- The repository to set.public static void setMinimalShellHeight(Shell shell, Control[] controls, int margin, int extra)
public static void setSize(Shell shell)
public static void setSize(Shell shell, int minWidth, int minHeight, boolean packIt)
public static final void setTraverseOrder(Control[] controls)
public static final void getFieldsFromPrevious(TransMeta transMeta, StepMeta stepMeta, TableView tableView, int keyColumn, int[] nameColumn, int[] dataTypeColumn, int lengthColumn, int precisionColumn, TableItemInsertListener listener)
r
- fields
- i
- js
- the column in the table view to match with the names of the fields, checks for existance if >0nameColumn
- j
- lengthColumn
- listener
- public static final void getFieldsFromPrevious(RowMetaInterface row, TableView tableView, int keyColumn, int[] nameColumn, int[] dataTypeColumn, int lengthColumn, int precisionColumn, TableItemInsertListener listener)
row
- the input fieldstableView
- the table view to modifykeyColumn
- the column in the table view to match with the names of the fields, checks for existance if >0nameColumn
- the column numbers in which the name should end up indataTypeColumn
- the target column numbers in which the data type should end up inlengthColumn
- the length column where the length should end up in (if >0)precisionColumn
- the length column where the precision should end up in (if >0)listener
- A listener that you can use to do custom modifications to the inserted table item, based on a value from the provided rowpublic static final void getFieldsFromPrevious(ComboVar comboVar, TransMeta transMeta, StepMeta stepMeta)
comboVar
- the comboVar to populateTransMeta
- the source transformationStepMeta
- the source steppublic static final void generateFieldMapping(Shell shell, RowMetaInterface sourceFields, RowMetaInterface targetFields, List<SourceToTargetMapping> fieldMapping) throws KettleException
shell
- the shell of the parent windowsourceFields
- the source fieldstargetFields
- the target fieldsfieldMapping
- the list of source to target mappings to default to (can be empty but not null)
KettleException
- in case something goes wrong during the field mappingpublic boolean isBasic()
public boolean isDetailed()
public boolean isDebug()
public boolean isRowLevel()
public void logMinimal(String message)
public void logMinimal(String message, Object... arguments)
public void logBasic(String message)
public void logBasic(String message, Object... arguments)
public void logDetailed(String message)
public void logDetailed(String message, Object... arguments)
public void logDebug(String message)
public void logDebug(String message, Object... arguments)
public void logRowlevel(String message)
public void logRowlevel(String message, Object... arguments)
public void logError(String message)
public void logError(String message, Throwable e)
public void logError(String message, Object... arguments)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |