Java Platform 1.2

javax.swing.plaf.basic
Class BasicComboBoxEditor

java.lang.Object
  |
  +--javax.swing.plaf.basic.BasicComboBoxEditor
Direct Known Subclasses:
BasicComboBoxEditor.UIResource, MetalComboBoxEditor

public class BasicComboBoxEditor
extends Object
implements ComboBoxEditor, FocusListener

The default editor for editable combo boxes


Inner Class Summary
static class BasicComboBoxEditor.UIResource
          A subclass of BasicComboBoxEditor that implements UIResource.
 
Field Summary
protected  JTextField editor
           
 
Constructor Summary
BasicComboBoxEditor()
           
 
Method Summary
 void addActionListener(ActionListener l)
           
 void focusGained(FocusEvent e)
           
 void focusLost(FocusEvent e)
           
 Component getEditorComponent()
           
 Object getItem()
           
 void removeActionListener(ActionListener l)
           
 void selectAll()
           
 void setItem(Object anObject)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

editor

protected JTextField editor
Constructor Detail

BasicComboBoxEditor

public BasicComboBoxEditor()
Method Detail

getEditorComponent

public Component getEditorComponent()
Specified by:
getEditorComponent in interface ComboBoxEditor

setItem

public void setItem(Object anObject)
Specified by:
setItem in interface ComboBoxEditor

getItem

public Object getItem()
Specified by:
getItem in interface ComboBoxEditor

selectAll

public void selectAll()
Specified by:
selectAll in interface ComboBoxEditor

focusGained

public void focusGained(FocusEvent e)
Specified by:
focusGained in interface FocusListener

focusLost

public void focusLost(FocusEvent e)
Specified by:
focusLost in interface FocusListener

addActionListener

public void addActionListener(ActionListener l)
Specified by:
addActionListener in interface ComboBoxEditor

removeActionListener

public void removeActionListener(ActionListener l)
Specified by:
removeActionListener in interface ComboBoxEditor

Java Platform 1.2

Submit a bug or feature Version 1.2 of Java Platform API Specification
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1998 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.