org.springframework.richclient.list
Class LabeledEnumComboBoxEditor

java.lang.Object
  extended by org.springframework.richclient.list.LabeledEnumComboBoxEditor
All Implemented Interfaces:
ComboBoxEditor

public class LabeledEnumComboBoxEditor
extends Object
implements ComboBoxEditor

ComboBoxEditor that wraps another editor, but performs conversion between CodedEnum s and Strings.
It wraps another ComboBoxEditor to avoid visual differences between the default editor and this editor.

Author:
peter.de.bruycker

Constructor Summary
LabeledEnumComboBoxEditor(MessageSource messageSource, ComboBoxEditor editor)
          Constructs a new CodedEnumComboBoxEditor instance.
 
Method Summary
 void addActionListener(ActionListener l)
           
 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
 

Constructor Detail

LabeledEnumComboBoxEditor

public LabeledEnumComboBoxEditor(MessageSource messageSource,
                                 ComboBoxEditor editor)
Constructs a new CodedEnumComboBoxEditor instance.

Parameters:
messageSource - the MessageSource to use for conversion
editor - the ComboBoxEditor to use internally
Method Detail

selectAll

public void selectAll()
Specified by:
selectAll in interface ComboBoxEditor
See Also:
ComboBoxEditor.selectAll()

getEditorComponent

public Component getEditorComponent()
Specified by:
getEditorComponent in interface ComboBoxEditor
See Also:
ComboBoxEditor.getEditorComponent()

addActionListener

public void addActionListener(ActionListener l)
Specified by:
addActionListener in interface ComboBoxEditor
See Also:
ComboBoxEditor.addActionListener(java.awt.event.ActionListener)

removeActionListener

public void removeActionListener(ActionListener l)
Specified by:
removeActionListener in interface ComboBoxEditor
See Also:
ComboBoxEditor.removeActionListener(java.awt.event.ActionListener)

getItem

public Object getItem()
Specified by:
getItem in interface ComboBoxEditor
See Also:
ComboBoxEditor.getItem()

setItem

public void setItem(Object anObject)
Specified by:
setItem in interface ComboBoxEditor
See Also:
ComboBoxEditor.setItem(java.lang.Object)


Copyright © 2004-2008 The Spring Framework. All Rights Reserved.