|
EGF Engine Release 0.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.egf.pattern.ui.editor.page.AbstractPatternPage.TextValidator
protected abstract class AbstractPatternPage.TextValidator
Textual control validation class.
Field Summary | |
---|---|
protected static String |
ERROR_KEY_REG_EXP
ERROR KEY : text does not match given regular expression. |
Constructor Summary | |
---|---|
protected |
AbstractPatternPage.TextValidator(Control textControl_p)
Constructor. |
Method Summary | |
---|---|
protected void |
addErrorKey(String errorKey_p)
Add new error key. |
protected Control |
getControl()
Get control. |
protected abstract String |
getErrorMessageFor(String errorKey_p,
String value_p)
Get error message for given error key and erroneous value. |
void |
handleValueChange(ValueChangeEvent event_p)
|
protected boolean |
onError(String text_p)
On error condition for current textual value. |
protected void |
setRegularExpression(String regularExpression_p)
Set regular expression. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final String ERROR_KEY_REG_EXP
Constructor Detail |
---|
protected AbstractPatternPage.TextValidator(Control textControl_p)
textControl_p
- Method Detail |
---|
protected Control getControl()
public void handleValueChange(ValueChangeEvent event_p)
org.eclipse.core.databinding.observable.value.IValueChangeListener#handleValueChange(org.eclipse.core.databinding.observable.value.ValueChangeEvent)
protected void setRegularExpression(String regularExpression_p)
regularExpression_p
- protected void addErrorKey(String errorKey_p)
errorKey_p
- protected boolean onError(String text_p)
text_p
- the new textual value.
protected abstract String getErrorMessageFor(String errorKey_p, String value_p)
errorKey_p
- value_p
-
|
EGF Engine Release 0.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (c) Thales Corporate Services S.A.S, 2009.
This page is made available under license. For full details see the LEGAL in the documentation book that contains this page.