|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.isti.util.gui.JTextFieldComboBoxEditor
public class JTextFieldComboBoxEditor
An implementation of a ComboBoxEditor that uses a JTextField.
Field Summary | |
---|---|
static int |
DEFAULT_COLUMNS
The default number of columns. |
Constructor Summary | |
---|---|
JTextFieldComboBoxEditor()
Creates the ComboBoxEditor with a new text field. |
|
JTextFieldComboBoxEditor(javax.swing.JTextField textField)
Creates the ComboBoxEditor with the specified text field. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int DEFAULT_COLUMNS
Constructor Detail |
---|
public JTextFieldComboBoxEditor()
public JTextFieldComboBoxEditor(javax.swing.JTextField textField)
textField
- the text field.DEFAULT_COLUMNS
Method Detail |
---|
public void addActionListener(java.awt.event.ActionListener actionListener)
addActionListener
in interface javax.swing.ComboBoxEditor
actionListener
- the action listener to add.public java.awt.Component getEditorComponent()
getEditorComponent
in interface javax.swing.ComboBoxEditor
public java.lang.Object getItem()
getItem
in interface javax.swing.ComboBoxEditor
public javax.swing.JTextField getTextField()
public void removeActionListener(java.awt.event.ActionListener actionListener)
removeActionListener
in interface javax.swing.ComboBoxEditor
actionListener
- the action listener to remove.public void selectAll()
selectAll
in interface javax.swing.ComboBoxEditor
public void setItem(java.lang.Object anObject)
setItem
in interface javax.swing.ComboBoxEditor
anObject
- the item that should be edited.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |