Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.edit.ui.preferences
Class DefinesConditionEditor

java.lang.Object
  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

copyright

public static String copyright
Constructor Detail

DefinesConditionEditor

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

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.


Rational Developer for Power Systems Software
V7.6

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.