org.pentaho.di.ui.core.widget.warning
Class WarningText

java.lang.Object
  extended by Composite
      extended by org.pentaho.di.ui.core.widget.warning.WarningText
All Implemented Interfaces:
SupportsWarningInterface

public class WarningText
extends Composite
implements SupportsWarningInterface

A Widget that combines a Text widget with a "Warning" image to the left. It's shown when there is a warning condition in the text field.

Since:
25-FEB-2009
Author:
Matt

Constructor Summary
WarningText(Composite composite, int flags)
           
 
Method Summary
 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)
           
 void addWarningInterface(WarningInterface warningInterface)
           
 String getText()
           
 Text getTextWidget()
           
 List<WarningInterface> getWarningInterfaces()
           
 void removeWarningInterface(WarningInterface warningInterface)
           
 void selectAll()
           
 void setEchoChar(char c)
           
 void setEditable(boolean editable)
           
 void setEnabled(boolean flag)
           
 boolean setFocus()
           
 void setSelection(int i)
           
 void setText(String text)
           
 void showSelection()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WarningText

public WarningText(Composite composite,
                   int flags)
Method Detail

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)

setEditable

public void setEditable(boolean editable)

setSelection

public void setSelection(int i)

selectAll

public void selectAll()

showSelection

public void showSelection()

addWarningInterface

public void addWarningInterface(WarningInterface warningInterface)
Specified by:
addWarningInterface in interface SupportsWarningInterface

removeWarningInterface

public void removeWarningInterface(WarningInterface warningInterface)

getWarningInterfaces

public List<WarningInterface> getWarningInterfaces()