com.wirefusion.propertyeditor
Class ComboBoxPropertyEditor

java.lang.Object
  extended by com.wirefusion.propertyeditor.WfPropertyEditor
      extended by com.wirefusion.propertyeditor.ComboBoxPropertyEditor

public class ComboBoxPropertyEditor
extends WfPropertyEditor

This editor is intended for selecting an item from a list of string items. If the list of items for example are "orange, apple, banana", then the corresponding property value of each item is 0, 1 and 2 respectively.


Field Summary
 
Fields inherited from class com.wirefusion.propertyeditor.WfPropertyEditor
LEFT_POSITION, TOP_POSITION
 
Constructor Summary
ComboBoxPropertyEditor(java.lang.String propertyId, java.lang.String label, java.lang.String[] items, int selectedIndex)
          Constructs a BooleanPropertyEditor object.
 
Method Summary
 
Methods inherited from class com.wirefusion.propertyeditor.WfPropertyEditor
addPropertyChangeListener, firePropertyChange, getEditor, getInfoString, getPropertyId, isEnabled, removePropertyChangeListener, setEnabled, setLabelPosition, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComboBoxPropertyEditor

public ComboBoxPropertyEditor(java.lang.String propertyId,
                              java.lang.String label,
                              java.lang.String[] items,
                              int selectedIndex)
Constructs a BooleanPropertyEditor object.

Parameters:
propertyId - the property ID
label - the label
items - the items
selectedIndex - the index of the currently selected item (0 for first item, 1 for second...)