Rational Developer for Power Systems Software

Class DefinesConditionEditor

  extended by FieldEditor
      extended by com.ibm.etools.iseries.rse.ui.preferences.ListEditor
          extended by com.ibm.etools.iseries.edit.ui.preferences.DefinesConditionEditor

public class DefinesConditionEditor
extends ListEditor

Field Summary
static String copyright
Fields inherited from class com.ibm.etools.iseries.rse.ui.preferences.ListEditor
_bUpperCase, _iMaxItems, addButton, buttonBox, Copyright, downButton, list, removeButton, selectionListener, upButton
Constructor Summary
DefinesConditionEditor(String strName, String strLabel, Composite compositeParent)
Method Summary
protected  String createList(String[] straArguments)
          Creates a comma separated string from an array of individual strings.
protected  String getNewInputObject()
          Create a input dialog when user click on "Add" to define a new condition.
 String isValid(String strInput)
          Declared in IInputValidator.
protected  String[] parseString(String str)
          Called to create the list from the string saved in the ini file.
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

Field Detail


public static String copyright
Constructor Detail


public DefinesConditionEditor(String strName,
                              String strLabel,
                              Composite compositeParent)
Method Detail


protected String[] parseString(String str)
Called to create the list from the string saved in the ini file.

Specified by:
parseString in class ListEditor
str - the string
an array of String
See Also:


protected String getNewInputObject()
Create a input dialog when user click on "Add" to define a new condition.

Specified by:
getNewInputObject in class ListEditor
a new item


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
straArguments - the list of items
the combined string
See Also:


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.

Rational Developer for Power Systems Software

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.