org.pentaho.di.ui.core.widget
Class TextVar
java.lang.Object
Composite
org.pentaho.di.ui.core.widget.TextVar
public class TextVar
- extends Composite
A Widget that combines a Text widget with a Variable button that will insert an Environment variable.
The tool tip of the text widget shows the content of the Text widget with expanded variables.
- Since:
- 17-may-2006
- Author:
- Matt
Constructor Summary |
TextVar(VariableSpace space,
Composite composite,
int flags)
|
TextVar(VariableSpace space,
Composite composite,
int flags,
GetCaretPositionInterface getCaretPositionInterface,
InsertTextInterface insertTextInterface)
|
TextVar(VariableSpace space,
Composite composite,
int flags,
String toolTipText)
|
TextVar(VariableSpace space,
Composite composite,
int flags,
String toolTipText,
GetCaretPositionInterface getCaretPositionInterface,
InsertTextInterface insertTextInterface)
|
TextVar
public TextVar(VariableSpace space,
Composite composite,
int flags)
TextVar
public TextVar(VariableSpace space,
Composite composite,
int flags,
String toolTipText)
TextVar
public TextVar(VariableSpace space,
Composite composite,
int flags,
GetCaretPositionInterface getCaretPositionInterface,
InsertTextInterface insertTextInterface)
TextVar
public TextVar(VariableSpace space,
Composite composite,
int flags,
String toolTipText,
GetCaretPositionInterface getCaretPositionInterface,
InsertTextInterface insertTextInterface)
getGetCaretPositionInterface
public GetCaretPositionInterface getGetCaretPositionInterface()
- Returns:
- the getCaretPositionInterface
setGetCaretPositionInterface
public void setGetCaretPositionInterface(GetCaretPositionInterface getCaretPositionInterface)
- Parameters:
getCaretPositionInterface
- the getCaretPositionInterface to set
getInsertTextInterface
public InsertTextInterface getInsertTextInterface()
- Returns:
- the insertTextInterface
setInsertTextInterface
public void setInsertTextInterface(InsertTextInterface insertTextInterface)
- Parameters:
insertTextInterface
- the insertTextInterface to set
getText
public String getText()
- Returns:
- the text in the Text widget
setText
public void setText(String text)
- Parameters:
text
- the text in the Text widget to set.
getTextWidget
public Text getTextWidget()
addModifyListener
public void addModifyListener(ModifyListener modifyListener)
- Add a modify listener to the text widget
- Parameters:
modifyListener
-
addSelectionListener
public void addSelectionListener(SelectionAdapter lsDef)
addKeyListener
public void addKeyListener(KeyListener lsKey)
addFocusListener
public void addFocusListener(FocusListener lsFocus)
setEchoChar
public void setEchoChar(char c)
setEnabled
public void setEnabled(boolean flag)
setFocus
public boolean setFocus()
addTraverseListener
public void addTraverseListener(TraverseListener tl)
setToolTipText
public void setToolTipText(String toolTipText)
setEditable
public void setEditable(boolean editable)
setSelection
public void setSelection(int i)
selectAll
public void selectAll()
showSelection
public void showSelection()
setVariables
public void setVariables(VariableSpace vars)