|
RSE Release 3.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jface.preference.FieldEditor
org.eclipse.rse.ui.propertypages.SystemKeyValueFieldEditor
public class SystemKeyValueFieldEditor
For string key,value pair properties that have a discrete list of key values. Used in preference pages.
Field Summary | |
---|---|
protected ISystemValidator |
defaultValueValidator
|
protected ISystemValidator |
valueValidator
|
Fields inherited from class org.eclipse.jface.preference.FieldEditor |
---|
HORIZONTAL_GAP, IS_VALID, VALUE |
Constructor Summary | |
---|---|
SystemKeyValueFieldEditor(String name,
String labelText,
String[] keys,
String keysLabelString,
String valueLabelString,
Composite parent)
Constructor |
Method Summary | |
---|---|
protected void |
adjustForNumColumns(int numColumns)
|
void |
createSelectionListener()
Creates a selection listener. |
protected String |
createString(Hashtable keyValues)
Convert hashtable of key-value pairs into a single string |
protected void |
doFillIntoGrid(Composite parent,
int numColumns)
|
protected void |
doLoad()
|
protected void |
doLoadDefault()
|
protected void |
doStore()
|
protected List |
getKeysControl()
Returns this field editor's List control for the keys. |
Composite |
getKeysControl(Composite parent)
Returns this field editor's text control. |
int |
getNumberOfControls()
|
String |
getToolTipText()
Get the tooltip text |
protected Text |
getValueControl()
Returns this field editor's Text control for the key value. |
Composite |
getValueControl(Composite parent)
Returns this field editor's value entry field control. |
Hashtable |
parseString(String allvalues)
Parse out list of key-value pairs into a hashtable |
void |
setDelimiterCharacters(char keyValueDelimiter,
char keyValuePairDelimiter)
Call this to set the characters used to delimit the strings in the preferences store |
void |
setHeightHint(int hint)
Change the height hint for this composite. |
void |
setKeysWidthHint(int hint)
Change the width hint for the keys list Default is 150 pixels. |
void |
setToolTipText(String tip)
Set the tooltip text |
void |
setValuesWidthHint(int hint)
Change the width hint for the values fields on the right Default is not set |
void |
setValueValidator(ISystemValidator v)
Call this to specify a validator for the value entry field. |
protected SystemMessage |
validateValueInput()
This hook method is called whenever the text changes in the input field. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ISystemValidator valueValidator
protected ISystemValidator defaultValueValidator
Constructor Detail |
---|
public SystemKeyValueFieldEditor(String name, String labelText, String[] keys, String keysLabelString, String valueLabelString, Composite parent)
Method Detail |
---|
public void setValueValidator(ISystemValidator v)
public void setDelimiterCharacters(char keyValueDelimiter, char keyValuePairDelimiter)
keyValueDelimiter
- The char to distinguish between key and value. Default is =keyValuePairDelimiter
- The char to distinguish between each key/value pair. Default is ;public int getNumberOfControls()
getNumberOfControls
in class FieldEditor
FieldEditor.getNumberOfControls()
protected void doStore()
doStore
in class FieldEditor
FieldEditor.doStore()
protected void doLoadDefault()
doLoadDefault
in class FieldEditor
FieldEditor.doLoadDefault()
protected void doLoad()
doLoad
in class FieldEditor
FieldEditor.doLoad()
public Hashtable parseString(String allvalues)
protected String createString(Hashtable keyValues)
protected void doFillIntoGrid(Composite parent, int numColumns)
doFillIntoGrid
in class FieldEditor
FieldEditor.doFillIntoGrid(Composite, int)
protected void adjustForNumColumns(int numColumns)
adjustForNumColumns
in class FieldEditor
FieldEditor.adjustForNumColumns(int)
protected List getKeysControl()
protected Text getValueControl()
public Composite getKeysControl(Composite parent)
The control is created if it does not yet exist
parent
- the parent
public Composite getValueControl(Composite parent)
parent
- the parent control
public void createSelectionListener()
protected SystemMessage validateValueInput()
ISystemValidator
object.
If the ISystemValidator
reports an error the error message is displayed
in the PreferencePage's message line.
setValueValidator(ISystemValidator)
public void setHeightHint(int hint)
public void setKeysWidthHint(int hint)
public void setValuesWidthHint(int hint)
public void setToolTipText(String tip)
public String getToolTipText()
|
RSE Release 3.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |