Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.rse.ui.preferences
Class StripSequenceNumberFieldEditor

java.lang.Object
  extended by FieldEditor
      extended by com.ibm.etools.iseries.rse.ui.preferences.ListEditor
          extended by com.ibm.etools.iseries.rse.ui.preferences.StripSequenceNumberFieldEditor

public class StripSequenceNumberFieldEditor
extends ListEditor

A field editor for stripping sequence numbers.


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
StripSequenceNumberFieldEditor(String strName, String strLabel, String tooltip, String dialogTooltip, String dialogHelpContext, Composite compositeParent)
          The constructor for this class
 
Method Summary
protected  void addPressed()
          Notifies that the Add button has been pressed.
protected  void createButtons(Composite buttonBox)
          Creates the Add, Remove, Up, and Down button in the given button box.
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)
           
protected  String[] parseString(String str)
          Called to create the list from the string saved in the ini file.
protected  void selectionChanged()
          Notifies that the list selection has changed.
 
Methods inherited from class com.ibm.etools.iseries.rse.ui.preferences.ListEditor
adjustForNumColumns, createPushButton, createSelectionListener, doFillIntoGrid, doLoad, doLoadDefault, doStore, downPressed, getButtonBoxControl, getListControl, getNumberOfControls, getSelectionListener, getShell, removePressed, 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 final String copyright
See Also:
Constant Field Values
Constructor Detail

StripSequenceNumberFieldEditor

public StripSequenceNumberFieldEditor(String strName,
                                      String strLabel,
                                      String tooltip,
                                      String dialogTooltip,
                                      String dialogHelpContext,
                                      Composite compositeParent)
The constructor for this class

Parameters:
strName - The name of the preference
strLabel - The label to use
tooltip - The tooltip string to be used.
dialogTooltip - The tooltip for the dialog when new is pressed
compositeParent - The composite the preference should be one
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)

createButtons

protected void createButtons(Composite buttonBox)
Description copied from class: ListEditor
Creates the Add, Remove, Up, and Down button in the given button box.

Overrides:
createButtons in class ListEditor
Parameters:
buttonBox - the box for the buttons

selectionChanged

protected void selectionChanged()
Description copied from class: ListEditor
Notifies that the list selection has changed.

Overrides:
selectionChanged in class ListEditor

addPressed

protected void addPressed()
Description copied from class: ListEditor
Notifies that the Add button has been pressed.

Overrides:
addPressed in class ListEditor

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.