|
EGF Engine Release 0.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectStringButtonFieldEditor
org.eclipse.egf.common.ui.toolkit.adapters.StringButtonFieldEditorAdapter
org.eclipse.egf.common.ui.toolkit.fields.StringBrowserFieldEditor
org.eclipse.egf.common.ui.field.ValidatingStringButtonFieldEditor
public class ValidatingStringButtonFieldEditor
Implement a string button field editor that delegated its validation to an IValidator
object if provided.
Field Summary |
---|
Fields inherited from class org.eclipse.egf.common.ui.toolkit.adapters.StringButtonFieldEditorAdapter |
---|
_labelStyle, _valueStyle |
Constructor Summary | |
---|---|
ValidatingStringButtonFieldEditor(Composite parent_p,
String label_p,
SelectionDialog dialogToOpen_p)
Constructor. |
Method Summary | |
---|---|
protected String |
changePressed()
|
protected SelectionDialog |
createDialog()
Create a specific dialog. |
protected SelectionDialog |
getDialogToOpen()
Return the provided dialog to open when 'Browse' button is pressed. |
protected String |
handleSelection(Object selectedObject_p)
Offers a way to convert the end-user object selection into a string representation displayed in the text field editor. |
boolean |
isValid(boolean force_p)
Checks whether the class text field contains a valid value or not. |
protected void |
setDialogToOpen(SelectionDialog dialogToOpen_p)
Set the dialog to open. |
Methods inherited from class org.eclipse.egf.common.ui.toolkit.fields.StringBrowserFieldEditor |
---|
getChangeControl, getCurrentSelection, setCurrentSelection |
Methods inherited from class org.eclipse.egf.common.ui.toolkit.adapters.StringButtonFieldEditorAdapter |
---|
checkState, checkValueStyle, createControl, defaultLayout, doCheckState, doFillIntoGrid, getFieldName, getFieldPage, getHelperControl, getLabel, getValidator, getValueControl, init, isFocused, isHelperEnabled, isValueEnabled, layout, setFieldPage, setFocus, setHelperEnabled, setValidator, setValueEnabled |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.egf.common.ui.toolkit.fields.IFieldEditor |
---|
getErrorMessage, isValid |
Constructor Detail |
---|
public ValidatingStringButtonFieldEditor(Composite parent_p, String label_p, SelectionDialog dialogToOpen_p)
parent_p
- label_p
- dialogToOpen_p
- Method Detail |
---|
public boolean isValid(boolean force_p)
force_p
- true means force to compute the valid state again.
true
if the field value is valid, and false
if invalid.protected String changePressed()
changePressed
in class org.eclipse.egf.common.ui.toolkit.fields.StringBrowserFieldEditor
org.eclipse.egf.common.ui.toolkit.fields.CStringButtonFieldEditor#changePressed()
protected SelectionDialog createDialog()
protected String handleSelection(Object selectedObject_p)
selectedObject_p
-
protected void setDialogToOpen(SelectionDialog dialogToOpen_p)
dialogToOpen_p
- protected SelectionDialog getDialogToOpen()
|
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.