|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.kex.ui.wizards.exporting.TextBoxValidator
public class TextBoxValidator
This class can be used for nice swt text widget validation. A small image decorates the textfield and a message will pop up.
Field Summary | |
---|---|
static String |
WANTS_COMPLETE
You can use that field for adding boolean flag to your control widget. |
Constructor Summary | |
---|---|
TextBoxValidator(Control control,
String msg)
When creating a new TextBoxValidator object the data Object of the control will check
and depending on that flag the decoration will show or not. |
Method Summary | |
---|---|
boolean |
check(TypedEvent e)
Has to override for custom validation. |
String |
getDecorationType()
getter for decoration-type. |
void |
modifyText(ModifyEvent e)
|
void |
setDecorationType(String decorationType)
Set the decoration-type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String WANTS_COMPLETE
Control.setData(String key)
. When creating a new
TextBoxValidator
object a first check will be triggered and depending on that flag
the decoration will show or not.
Constructor Detail |
---|
public TextBoxValidator(Control control, String msg)
TextBoxValidator
object the data Object of the control will check
and depending on that flag the decoration will show or not. Note: if WANTS_COMPLETE is not
set it will be ignored and not shown as initial.
control
- , control-field widget which should become decorate.msg
- , the popup msg.Method Detail |
---|
public final void modifyText(ModifyEvent e)
modifyText
in interface ModifyListener
e
- ModifyEventModifyListener.
public boolean check(TypedEvent e)
e
- the triggered typed-event
public final void setDecorationType(String decorationType)
decorationType
- Stringpublic final String getDecorationType()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |