org.springframework.richclient.list
Class BeanPropertyValueComboBoxEditor

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

public class BeanPropertyValueComboBoxEditor
extends Object
implements ComboBoxEditor

Author:
Geoffrey De Smet

Constructor Summary
BeanPropertyValueComboBoxEditor(ComboBoxEditor editor)
          Constructs a new BeanPropertyValueComboBoxEditor instance.
BeanPropertyValueComboBoxEditor(ComboBoxEditor innerEditor, String renderedProperty)
          Constructs a new BeanPropertyValueComboBoxEditor instance.
BeanPropertyValueComboBoxEditor(String renderedProperty)
          Should only be used if the innerEditor will be set later
 
Method Summary
 void addActionListener(ActionListener l)
           
 Component getEditorComponent()
           
 Object getItem()
           
 String getPropertyName()
           
 void removeActionListener(ActionListener l)
           
 void selectAll()
           
 void setItem(Object item)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanPropertyValueComboBoxEditor

public BeanPropertyValueComboBoxEditor(ComboBoxEditor editor)
Constructs a new BeanPropertyValueComboBoxEditor instance. The toString method is used to render the items.

Parameters:
editor - the ComboBoxEditor to use internally

BeanPropertyValueComboBoxEditor

public BeanPropertyValueComboBoxEditor(ComboBoxEditor innerEditor,
                                       String renderedProperty)
Constructs a new BeanPropertyValueComboBoxEditor instance.

Parameters:
innerEditor - the ComboBoxEditor which is used to render the value of the property
renderedProperty - the property used to render the items

BeanPropertyValueComboBoxEditor

public BeanPropertyValueComboBoxEditor(String renderedProperty)
Should only be used if the innerEditor will be set later

Parameters:
renderedProperty -
Method Detail

addActionListener

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

getEditorComponent

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

getItem

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

removeActionListener

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

selectAll

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

setItem

public void setItem(Object item)
Specified by:
setItem in interface ComboBoxEditor
See Also:
ComboBoxEditor.setItem(Object)

getPropertyName

public String getPropertyName()
Returns:
the property name


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