|
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 javax.swing.plaf.basic.BasicComboBoxEditor javax.swing.plaf.metal.MetalComboBoxEditor com.ibm.etools.iseries.ui.MetalFormattedComboBoxEditor
public class MetalFormattedComboBoxEditor
MetalFormattedComboBoxEditor extends javax.swing.plaf.metal.MetalComboBoxEditor and implements FormattedComboBoxEditor. It sets JFormattedTextField as the editor of a ComboBox. The MetalFormattedComboBoxEditor is used by com.ibm.etools.iseries.ui.JFormattedComboBox for a metal platform.
FormattedComboBoxEditor
,
BasicFormattedComboBoxEditor
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.plaf.metal.MetalComboBoxEditor |
---|
MetalComboBoxEditor.UIResource |
Field Summary | |
---|---|
static String |
Copyright
|
protected JFormattedTextField |
textFieldEditor
|
Fields inherited from class javax.swing.plaf.metal.MetalComboBoxEditor |
---|
editorBorderInsets |
Fields inherited from class javax.swing.plaf.basic.BasicComboBoxEditor |
---|
editor |
Fields inherited from interface com.ibm.etools.iseries.ui.FormattedComboBoxEditor |
---|
copyright |
Constructor Summary | |
---|---|
MetalFormattedComboBoxEditor()
Constructs a new MetalComboBoxFormattedEditor. |
|
MetalFormattedComboBoxEditor(FieldModel fm)
Constructs a new MetalComboBoxFormattedEditor with the specified FieldModel used by the editor. |
Method Summary | |
---|---|
void |
addActionListener(ActionListener l)
Adds an ActionListener. |
static String |
Copyright()
This method returns the copyright notice for this class. |
void |
focusGained(FocusEvent e)
Process this method when focus is gained on the editor. |
void |
focusLost(FocusEvent e)
Process this when focus is lost on the editor. |
Color |
getBackgroundColor()
Returns the background color of the editor. |
Component |
getEditorComponent()
Return the component that should be added to the tree hierarchy for this editor |
Color |
getForegroundColor()
Return the foreground color of the editor. |
Object |
getItem()
Return the edited item |
void |
removeActionListener(ActionListener l)
Remove an ActionListener |
void |
selectAll()
Ask the editor to start editing and to select everything |
void |
setBackgroundColor(Color c)
Return the background color of the editor. |
void |
setFieldModel(FieldModel fm)
Return the FieldModel of the editor. |
void |
setForegroundColor(Color c)
Return the foreground color of the editor. |
void |
setItem(Object anObject)
Set the item that should be edited. |
Methods inherited from class javax.swing.plaf.basic.BasicComboBoxEditor |
---|
createEditorComponent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String Copyright
protected JFormattedTextField textFieldEditor
Constructor Detail |
---|
public MetalFormattedComboBoxEditor()
public MetalFormattedComboBoxEditor(FieldModel fm)
fm
- et400.util.FieldModelMethod Detail |
---|
public void addActionListener(ActionListener l)
addActionListener
in interface ComboBoxEditor
addActionListener
in class BasicComboBoxEditor
l
- java.awt.event.ActionListenerpublic static String Copyright()
public void focusGained(FocusEvent e)
focusGained
in interface FocusListener
focusGained
in class BasicComboBoxEditor
e
- java.awt.event.FocusEventpublic void focusLost(FocusEvent e)
focusLost
in interface FocusListener
focusLost
in class BasicComboBoxEditor
e
- java.awt.event.FocusEventpublic Color getBackgroundColor()
public Component getEditorComponent()
getEditorComponent
in interface ComboBoxEditor
getEditorComponent
in class BasicComboBoxEditor
public Color getForegroundColor()
public Object getItem()
getItem
in interface ComboBoxEditor
getItem
in class BasicComboBoxEditor
public void removeActionListener(ActionListener l)
removeActionListener
in interface ComboBoxEditor
removeActionListener
in class BasicComboBoxEditor
l
- java.awt.event.ActionListenerpublic void selectAll()
selectAll
in interface ComboBoxEditor
selectAll
in class BasicComboBoxEditor
public void setBackgroundColor(Color c)
c
- java.awt.Colorpublic void setFieldModel(FieldModel fm)
setFieldModel
in interface FormattedComboBoxEditor
fm
- et400.util.FieldModelpublic void setForegroundColor(Color c)
c
- java.awt.Colorpublic void setItem(Object anObject)
setItem
in interface ComboBoxEditor
setItem
in class BasicComboBoxEditor
anObject
- java.lang.Object
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |