|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectFieldEditor
com.ibm.etools.systems.core.ui.propertypages.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.
Field Summary | |
---|---|
static String |
copyright
|
Constructor Summary | |
---|---|
SystemStringFieldEditor(String name,
ResourceBundle rb,
String rbKey,
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! |
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 |
Field Detail |
public static final String copyright
Constructor Detail |
public SystemStringFieldEditor(String name, ResourceBundle rb, String rbKey, Composite parent)
name
- - the unique ID for this editor. Used as index in preference storerb
- - the resource bundle from which to retrieve the mrirbKey
- - the key into the resource bundle, to get the label (+"label") and tooltip text (+"tooltip")parent
- - 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()
|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |