|
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.SystemKeyValueFieldEditor
For string key,value pair properties that have a discrete list of key values. Used in preference pages.
Field Summary | |
---|---|
static String |
copyright
|
protected ISystemValidator |
defaultValueValidator
|
protected ISystemValidator |
valueValidator
|
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 |
public static final String copyright
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()
FieldEditor#getNumberOfControls()
protected void doStore()
FieldEditor#doStore()
protected void doLoadDefault()
FieldEditor#doLoadDefault()
protected void doLoad()
FieldEditor#doLoad()
public Hashtable parseString(String allvalues)
protected String createString(Hashtable keyValues)
protected void doFillIntoGrid(Composite parent, int numColumns)
FieldEditor#doFillIntoGrid(Composite, int)
protected void adjustForNumColumns(int numColumns)
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()
|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |