org.argouml.uml.ui
Class UMLEditableComboBox.UMLComboBoxEditor

java.lang.Object
  extended byjavax.swing.plaf.basic.BasicComboBoxEditor
      extended byorg.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

Nested Class Summary
private  class UMLEditableComboBox.UMLComboBoxEditor.UMLImagePanel
          A panel which helps us to show the editable textfield for this combobox (including the Icon).
 
Nested classes inherited from class javax.swing.plaf.basic.BasicComboBoxEditor
BasicComboBoxEditor.UIResource
 
Field Summary
private  UMLEditableComboBox.UMLComboBoxEditor.UMLImagePanel panel
           
private  boolean theShowIcon
          True if an icon should be shown.
 
Fields inherited from class javax.swing.plaf.basic.BasicComboBoxEditor
editor
 
Constructor Summary
UMLEditableComboBox.UMLComboBoxEditor(boolean showIcon)
          Constructor for UMLComboBoxEditor.
 
Method Summary
 void addActionListener(ActionListener l)
           
 Component getEditorComponent()
           
 Object getItem()
           
 boolean isShowIcon()
          Returns the showIcon.
 void removeActionListener(ActionListener l)
           
 void selectAll()
           
 void setItem(Object anObject)
           
 void setShowIcon(boolean showIcon)
          Sets the showIcon.
 
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
 

Field Detail

panel

private UMLEditableComboBox.UMLComboBoxEditor.UMLImagePanel panel

theShowIcon

private boolean theShowIcon
True if an icon should be shown.

Constructor Detail

UMLEditableComboBox.UMLComboBoxEditor

public UMLEditableComboBox.UMLComboBoxEditor(boolean showIcon)
Constructor for UMLComboBoxEditor.

Parameters:
showIcon - true if an icon is to be shown
Method Detail

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()


ArgoUML © 1996-2004 (20050222)ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook