public class JTextFieldComboBoxEditor
extends java.lang.Object
implements javax.swing.ComboBoxEditor
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_COLUMNS
The default number of columns.
|
| Constructor and Description |
|---|
JTextFieldComboBoxEditor()
Creates the ComboBoxEditor with a new text field.
|
JTextFieldComboBoxEditor(javax.swing.JTextField textField)
Creates the ComboBoxEditor with the specified text field.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addActionListener(java.awt.event.ActionListener actionListener)
Add an ActionListener.
|
java.awt.Component |
getEditorComponent()
Return the component that should be added to the tree hierarchy for this
editor.
|
java.lang.Object |
getItem()
Return the edited item.
|
javax.swing.JTextField |
getTextField()
Gets the text field.
|
void |
removeActionListener(java.awt.event.ActionListener actionListener)
Remove an ActionListener.
|
void |
selectAll()
Ask the editor to start editing and to select everything.
|
void |
setItem(java.lang.Object anObject)
Set the item that should be edited.
|
public static final int DEFAULT_COLUMNS
public JTextFieldComboBoxEditor()
public JTextFieldComboBoxEditor(javax.swing.JTextField textField)
textField - the text field.DEFAULT_COLUMNSpublic void addActionListener(java.awt.event.ActionListener actionListener)
addActionListener in interface javax.swing.ComboBoxEditoractionListener - the action listener to add.public java.awt.Component getEditorComponent()
getEditorComponent in interface javax.swing.ComboBoxEditorpublic java.lang.Object getItem()
getItem in interface javax.swing.ComboBoxEditorpublic javax.swing.JTextField getTextField()
public void removeActionListener(java.awt.event.ActionListener actionListener)
removeActionListener in interface javax.swing.ComboBoxEditoractionListener - the action listener to remove.public void selectAll()
selectAll in interface javax.swing.ComboBoxEditorpublic void setItem(java.lang.Object anObject)
setItem in interface javax.swing.ComboBoxEditoranObject - the item that should be edited.