Rational Developer for Power Systems Software
V7.6

com.ibm.etools.systems.application.visual.editor.ui.preferences
Class IDMapFieldEditor

java.lang.Object
  extended by SystemComboBoxFieldEditor
      extended by com.ibm.etools.systems.application.visual.editor.ui.preferences.IDMapFieldEditor

public class IDMapFieldEditor
extends SystemComboBoxFieldEditor

Field Editor for ID-Name mapping which displays the name strings in ComboBox but stores the corresponding ID strings to preference store.


Field Summary
static String copyright
           
 
Constructor Summary
IDMapFieldEditor(String name, String labelText, String[] contents, String[] IDs, boolean readOnly, Composite parent)
          Constructor.
 
Method Summary
protected  void doLoad()
           
protected  void doLoadDefault()
           
protected  void doStore()
           
 String getContent(String id)
          Get content from corresponding ID.
 String getID(String content)
          Get corresponding ID from content text.
 
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

IDMapFieldEditor

public IDMapFieldEditor(String name,
                        String labelText,
                        String[] contents,
                        String[] IDs,
                        boolean readOnly,
                        Composite parent)
Constructor.

Parameters:
name -
labelText -
contents: - the content strings displayed in Combo box.
IDs: - the ID strings mapping with contents, must have same number of entries as that of contents.
readOnly -
parent -
Method Detail

doStore

protected void doStore()
See Also:
FieldEditor

doLoadDefault

protected void doLoadDefault()
See Also:
FieldEditor

doLoad

protected void doLoad()
See Also:
FieldEditor

getID

public String getID(String content)
Get corresponding ID from content text.


getContent

public String getContent(String id)
Get content from corresponding ID.


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.