|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object FieldEditor com.ibm.etools.iseries.rse.ui.preferences.SystemStringFieldEditor
public class SystemStringFieldEditor
A preference page field editor that prompts for a string. Unlike the eclipse-supplied StringFieldEditor, this one allows use of RSE validators and massagers for error checking and massaging of the user-entered input prior to persisting.
Constructor Summary | |
---|---|
SystemStringFieldEditor(String name,
String labelText,
String tooltipText,
Composite parent)
Constructor for SystemStringFieldEditor |
Method Summary | |
---|---|
protected void |
adjustForNumColumns(int numColumns)
Adjust grid data to support the number of columns, after all field editors have been added to the page. |
protected void |
createModifyListener()
Creates a modify text listener used in per-keystroke validation |
protected void |
doFillIntoGrid(Composite parent,
int numColumns)
This is called by our parent's constructor, which is too soon for us! So, we do nothing here and then call doOurFillIntoGrid later within our own constructor. |
protected void |
doLoad()
Load the entry field contents from the preference store current value |
protected void |
doLoadDefault()
Load the entry field contents from the preference store default value |
protected void |
doOurFillIntoGrid()
Create controls |
protected void |
doStore()
Save the user-entered value to the preference store. |
int |
getNumberOfControls()
Return number of columns we need. |
protected Text |
getTextControl()
Returns this field editor's Text control. |
Text |
getTextControl(Composite parent)
Returns this field editor's text control. |
boolean |
isValid()
Override of parent to return validity state. |
protected void |
refreshValidState()
Override of parent to refresh validity state by checking if the input is valid. |
void |
setFocus()
Set focus |
void |
setMassager(ISystemMassager massager)
Set the massager that is used to affect the user-entered text before saving it to the preference store. |
void |
setToolTipText(String tip)
Allows setting of tooltip text |
void |
setValidator(ISystemValidator validator)
Set the validator to use per keystroke. |
protected void |
validate()
Validate contents of text field |
protected void |
valueChanged()
Informs this field editor's listener, if it has one, about a change to the value ( VALUE property) provided that the old and
new values are different. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SystemStringFieldEditor(String name, String labelText, String tooltipText, Composite parent)
name
- - the unique ID for this editor. Used as index in preference storelabelText
- - the text of the LABELtooltipText
- - the text of TOOLTIPparent
- - the parent composite to host this editorMethod Detail |
---|
public void setValidator(ISystemValidator validator)
public void setMassager(ISystemMassager massager)
public int getNumberOfControls()
FieldEditor
protected void doStore()
FieldEditor
protected void doLoadDefault()
FieldEditor
protected void doLoad()
FieldEditor
protected void doFillIntoGrid(Composite parent, int numColumns)
FieldEditor
protected void doOurFillIntoGrid()
protected void adjustForNumColumns(int numColumns)
FieldEditor
protected Text getTextControl()
public Text getTextControl(Composite parent)
The control is created if it does not yet exist
parent
- the parent
public void setToolTipText(String tip)
protected void createModifyListener()
protected void validate()
protected void valueChanged()
VALUE
property) provided that the old and
new values are different.
This hook is not called when the text is initialized (or reset to the default value) from the preference store.
public boolean isValid()
protected void refreshValidState()
public void setFocus()
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |