org.argouml.uml.ui
Class UMLEditableComboBox.UMLComboBoxEditor
java.lang.Object
javax.swing.plaf.basic.BasicComboBoxEditor
org.argouml.uml.ui.UMLEditableComboBox.UMLComboBoxEditor
- All Implemented Interfaces:
- ComboBoxEditor, EventListener, FocusListener
- Enclosing class:
- UMLEditableComboBox
- protected class UMLEditableComboBox.UMLComboBoxEditor
- extends 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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
panel
private UMLEditableComboBox.UMLComboBoxEditor.UMLImagePanel panel
theShowIcon
private boolean theShowIcon
- True if an icon should be shown.
UMLEditableComboBox.UMLComboBoxEditor
public UMLEditableComboBox.UMLComboBoxEditor(boolean showIcon)
- Constructor for UMLComboBoxEditor.
- Parameters:
showIcon
- true if an icon is to be shown
setItem
public void setItem(Object anObject)
- See Also:
ComboBoxEditor.setItem(java.lang.Object)
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 Component getEditorComponent()
- See Also:
ComboBoxEditor.getEditorComponent()
addActionListener
public void addActionListener(ActionListener l)
- See Also:
ComboBoxEditor.addActionListener(java.awt.event.ActionListener)
removeActionListener
public void removeActionListener(ActionListener l)
- See Also:
ComboBoxEditor.removeActionListener(java.awt.event.ActionListener)
selectAll
public void selectAll()
- See Also:
ComboBoxEditor.selectAll()
getItem
public Object getItem()
- See Also:
ComboBoxEditor.getItem()