com.ibm.etools.iseries.edit.ui.preferences
Class DefinesConditionEditor
java.lang.Object
FieldEditor
com.ibm.etools.iseries.rse.ui.preferences.ListEditor
com.ibm.etools.iseries.edit.ui.preferences.DefinesConditionEditor
public class DefinesConditionEditor
- extends ListEditor
Methods inherited from class com.ibm.etools.iseries.rse.ui.preferences.ListEditor |
addPressed, adjustForNumColumns, createButtons, createPushButton, createSelectionListener, doFillIntoGrid, doLoad, doLoadDefault, doStore, downPressed, getButtonBoxControl, getListControl, getNumberOfControls, getSelectionListener, getShell, removePressed, selectionChanged, setFocus, setItemLimit, setUpperCase, swap, upPressed |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
copyright
public static String copyright
DefinesConditionEditor
public DefinesConditionEditor(String strName,
String strLabel,
Composite compositeParent)
parseString
protected String[] parseString(String str)
- Called to create the list from the string saved in the ini file.
- Specified by:
parseString
in class ListEditor
- Parameters:
str
- the string
- Returns:
- an array of
String
- See Also:
ListEditor.createList(java.lang.String[])
getNewInputObject
protected String getNewInputObject()
- Create a input dialog when user click on "Add" to define a new condition.
- Specified by:
getNewInputObject
in class ListEditor
- Returns:
- a new item
createList
protected String createList(String[] straArguments)
- Creates a comma separated string from an array of individual strings.
Each entry is uppercased.
- Specified by:
createList
in class ListEditor
- Parameters:
straArguments
- the list of items
- Returns:
- the combined string
- See Also:
ListEditor.parseString(java.lang.String)
isValid
public String isValid(String strInput)
- Declared in IInputValidator.
This is a callback function used by the InputDialog to determine
whether the input string is valid. Check for duplicate or empty strings.
Returns null if no error.
Otherwise may return a message string. Here we return an empty message
string to indicate an error.
Copyright © 2011 IBM Corp. All Rights Reserved.
Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.