|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object FieldEditor com.ibm.etools.iseries.edit.ui.preferences.HistoryComboFieldEditor
public class HistoryComboFieldEditor
Field editor for history combo.
Field Summary | |
---|---|
static String |
copyright
|
Constructor Summary | |
---|---|
HistoryComboFieldEditor(Composite parent,
String name,
String label,
String historyKey,
String[] contents,
boolean readonly)
Constructor |
Method Summary | |
---|---|
void |
addModifyListener(ModifyListener listener)
Adds a ModifyListener to listen for changes in the Combo widget |
protected void |
adjustForNumColumns(int numColumns)
|
protected void |
doFillIntoGrid(Composite parent,
int numColumns)
|
protected void |
doLoad()
|
protected void |
doLoadDefault()
|
protected void |
doStore()
|
int |
getNumberOfControls()
|
String |
getText()
|
boolean |
isValid()
|
protected void |
refreshValidState()
|
void |
removeModifyListener(ModifyListener listener)
Removes a ModifyListener that was listening for changes in the Combo widget. |
void |
setAutoUppercase(boolean enable)
Set auto-uppercase. |
void |
setDefaultContent(String[] contents)
This method could be used to change the default contents of the Combo widget after the widget has been initialized. |
void |
setEnabled(boolean state)
Sets if this Field Editor is enabled or disabled. |
void |
setHelp(String id)
Sets the context help message for the text control. |
void |
setInitialSelection(String item)
When loaded, the Combo widget will have an initial selection. |
void |
setText(String text)
Sets the String shown in the Text control. |
void |
setTextLimit(int limit)
Sets the maximum number of characters that the receiver's text field is capable of holding to be the argument. |
void |
setValidator(ISystemValidator validator)
Specifies the validator that will be used to ensure that the content of the Combo widget is valid. |
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 HistoryComboFieldEditor(Composite parent, String name, String label, String historyKey, String[] contents, boolean readonly)
parent
- Composite
on which this FieldEditor
would be placed.name
- Unique name identifying this FieldEditor
.label
- The label shown next to the Combo widget.historyKey
- Unique identifier used to store the history in the Preference Store.contents
- Default contents to be inserted into the Combo widget. Those can not be cleared by the user.readonly
- If true
, the widget would be disabled.Method Detail |
---|
public void addModifyListener(ModifyListener listener)
ModifyListener
to listen for changes in the Combo widget
listener
- interface for listening to changes in the Combo widgetModifyListener
protected void adjustForNumColumns(int numColumns)
protected void doFillIntoGrid(Composite parent, int numColumns)
protected void doLoad()
protected void doLoadDefault()
protected void doStore()
public int getNumberOfControls()
public String getText()
String
that is contained in the Combo widget.public void setDefaultContent(String[] contents)
contents
- The new default content that would be persisted in the history.public boolean isValid()
ISystemValidator
that you provide.ISystemValidator
protected void refreshValidState()
public void removeModifyListener(ModifyListener listener)
ModifyListener
that was listening for changes in the Combo widget.
listener
- interface for listening to changes in the Combo widgetModifyListener
public void setAutoUppercase(boolean enable)
public void setEnabled(boolean state)
state
- of the FieldEditor
public void setHelp(String id)
id
- the id for the context help messagepublic void setInitialSelection(String item)
item
- The item that will be selected by default.public void setText(String text)
String
shown in the Text
control.
text
- the value to be set.public void setTextLimit(int limit)
limit
- new text limitpublic void setValidator(ISystemValidator validator)
validator
- the validator to be used.
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |