com.ibm.spinner
Class SpinnerEditor
java.lang.Object
|
+--com.ibm.spinner.SpinnerEditor
- public class SpinnerEditor
- extends java.lang.Object
- implements javax.swing.ComboBoxEditor, java.awt.event.FocusListener, java.io.Serializable
A default eidtor used in editable ObjectListSpinner. The editor uses
a JTextField to edit or display the current spinner value.
Constructor Summary |
SpinnerEditor()
Default constructor of SpinnerEditor. |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
SpinnerEditor
public SpinnerEditor()
- Default constructor of SpinnerEditor.
Creat a borderless text field as editor.
getEditorComponent
public java.awt.Component getEditorComponent()
- Gets current editor of SpinnerEditor.
- Specified by:
- getEditorComponent in interface javax.swing.ComboBoxEditor
- Returns:
- editor a borderless text field.
setItem
public void setItem(java.lang.Object anObject)
- Sets current editor's contents.
- Specified by:
- setItem in interface javax.swing.ComboBoxEditor
- Parameters:
anObject
- the editor's new contents to be set.
getItem
public java.lang.Object getItem()
- Gets current editor's contents.
- Specified by:
- getItem in interface javax.swing.ComboBoxEditor
- Returns:
- editor's contents.
selectAll
public void selectAll()
- Specified by:
- selectAll in interface javax.swing.ComboBoxEditor
focusGained
public void focusGained(java.awt.event.FocusEvent e)
- Specified by:
- focusGained in interface java.awt.event.FocusListener
focusLost
public void focusLost(java.awt.event.FocusEvent e)
- Specified by:
- focusLost in interface java.awt.event.FocusListener
addActionListener
public void addActionListener(java.awt.event.ActionListener l)
- Specified by:
- addActionListener in interface javax.swing.ComboBoxEditor
removeActionListener
public void removeActionListener(java.awt.event.ActionListener l)
- Specified by:
- removeActionListener in interface javax.swing.ComboBoxEditor