org.pentaho.di.ui.core.widget
Class ComboVar

java.lang.Object
  extended by Composite
      extended by org.pentaho.di.ui.core.widget.ComboVar

public class ComboVar
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
ComboVar(VariableSpace space, Composite composite, int flags)
           
ComboVar(VariableSpace space, Composite composite, int flags, GetCaretPositionInterface getCaretPositionInterface, InsertTextInterface insertTextInterface)
           
ComboVar(VariableSpace space, Composite composite, int flags, String toolTipText)
           
ComboVar(VariableSpace space, Composite composite, int flags, String toolTipText, GetCaretPositionInterface getCaretPositionInterface, InsertTextInterface insertTextInterface)
           
 
Method Summary
 void add(String item)
           
 void addFocusListener(FocusListener lsFocus)
           
 void addKeyListener(KeyListener lsKey)
           
 void addModifyListener(ModifyListener modifyListener)
          Add a modify listener to the text widget
 void addSelectionListener(SelectionAdapter lsDef)
           
 void addTraverseListener(TraverseListener tl)
           
 CCombo getCComboWidget()
           
 GetCaretPositionInterface getGetCaretPositionInterface()
           
 InsertTextInterface getInsertTextInterface()
           
 int getItemCount()
           
 String[] getItems()
           
 String getText()
           
 void remove(int index)
           
 void removeAll()
           
 void select(int index)
           
 void setEditable(boolean editable)
           
 void setEnabled(boolean flag)
           
 boolean setFocus()
           
 void setGetCaretPositionInterface(GetCaretPositionInterface getCaretPositionInterface)
           
 void setInsertTextInterface(InsertTextInterface insertTextInterface)
           
 void setItems(String[] items)
           
 void setText(String text)
           
 void setToolTipText(String toolTipText)
           
 void setVariables(VariableSpace vars)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComboVar

public ComboVar(VariableSpace space,
                Composite composite,
                int flags)

ComboVar

public ComboVar(VariableSpace space,
                Composite composite,
                int flags,
                String toolTipText)

ComboVar

public ComboVar(VariableSpace space,
                Composite composite,
                int flags,
                GetCaretPositionInterface getCaretPositionInterface,
                InsertTextInterface insertTextInterface)

ComboVar

public ComboVar(VariableSpace space,
                Composite composite,
                int flags,
                String toolTipText,
                GetCaretPositionInterface getCaretPositionInterface,
                InsertTextInterface insertTextInterface)
Method Detail

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.

getCComboWidget

public CCombo getCComboWidget()

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)

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)

setVariables

public void setVariables(VariableSpace vars)

setItems

public void setItems(String[] items)

getItems

public String[] getItems()

add

public void add(String item)

getItemCount

public int getItemCount()

removeAll

public void removeAll()

remove

public void remove(int index)

select

public void select(int index)