org.argouml.uml.ui
Class UMLEditableComboBox.UMLComboBoxEditor
java.lang.Object
javax.swing.plaf.basic.BasicComboBoxEditor
org.argouml.uml.ui.UMLEditableComboBox.UMLComboBoxEditor
- All Implemented Interfaces:
- java.awt.event.FocusListener, java.util.EventListener, javax.swing.ComboBoxEditor
- Enclosing class:
- UMLEditableComboBox
protected class UMLEditableComboBox.UMLComboBoxEditor
- extends javax.swing.plaf.basic.BasicComboBoxEditor
The comboboxeditor for editable uml comboboxes. This has to be changed
since it controls the rendering of the textfield where the user can edit
the list elements. Setitem has to give the correct value. Furthermore,
the standard comboboxeditor (BasicComboBoxEditor) does not support
showing icons.
- Since:
- Jan 5, 2003
| Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicComboBoxEditor |
javax.swing.plaf.basic.BasicComboBoxEditor.UIResource |
| Fields inherited from class javax.swing.plaf.basic.BasicComboBoxEditor |
editor |
| Methods inherited from class javax.swing.plaf.basic.BasicComboBoxEditor |
focusGained, focusLost |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UMLEditableComboBox.UMLComboBoxEditor
public UMLEditableComboBox.UMLComboBoxEditor(boolean showIcon)
- Constructor for UMLComboBoxEditor.
- Parameters:
showIcon - true if an icon is to be shown
setItem
public void setItem(java.lang.Object anObject)
- Specified by:
setItem in interface javax.swing.ComboBoxEditor- Overrides:
setItem in class javax.swing.plaf.basic.BasicComboBoxEditor
isShowIcon
public boolean isShowIcon()
- Returns the showIcon.
- Returns:
- boolean
setShowIcon
public void setShowIcon(boolean showIcon)
- Sets the showIcon.
- Parameters:
showIcon - The showIcon to set
getEditorComponent
public java.awt.Component getEditorComponent()
- Specified by:
getEditorComponent in interface javax.swing.ComboBoxEditor- Overrides:
getEditorComponent in class javax.swing.plaf.basic.BasicComboBoxEditor
addActionListener
public void addActionListener(java.awt.event.ActionListener l)
- Specified by:
addActionListener in interface javax.swing.ComboBoxEditor- Overrides:
addActionListener in class javax.swing.plaf.basic.BasicComboBoxEditor
removeActionListener
public void removeActionListener(java.awt.event.ActionListener l)
- Specified by:
removeActionListener in interface javax.swing.ComboBoxEditor- Overrides:
removeActionListener in class javax.swing.plaf.basic.BasicComboBoxEditor
selectAll
public void selectAll()
- Specified by:
selectAll in interface javax.swing.ComboBoxEditor- Overrides:
selectAll in class javax.swing.plaf.basic.BasicComboBoxEditor
getItem
public java.lang.Object getItem()
- Specified by:
getItem in interface javax.swing.ComboBoxEditor- Overrides:
getItem in class javax.swing.plaf.basic.BasicComboBoxEditor