com.partnersoft.gui.forms
Class FormComboField

java.lang.Object
  extended by com.partnersoft.gui.forms.AbstractFormField<java.lang.String>
      extended by com.partnersoft.gui.forms.FormComboField
All Implemented Interfaces:
FormField<java.lang.String>

public class FormComboField
extends AbstractFormField<java.lang.String>

A Field implemented with a JComboBox.

Copyright 2004-2008 Partner Software, Inc.

Version:
$Id$
Author:
Paul Reavis

Field Summary
 
Fields inherited from class com.partnersoft.gui.forms.AbstractFormField
gui
 
Constructor Summary
FormComboField()
           
FormComboField(java.util.Collection<java.lang.String> options)
           
FormComboField(javax.swing.ComboBoxModel model)
           
FormComboField(java.lang.String... options)
           
 
Method Summary
 javax.swing.JComboBox getJComboBox()
           
 int getSelectedIndex()
           
 java.lang.String getValue()
          Returns the current value for this field.
 void setModel(javax.swing.ComboBoxModel newModel)
           
 void setOptions(java.util.ArrayList<java.lang.String> newOptions)
           
 void setOptions(java.util.Collection<java.lang.String> newOptions)
           
 void setOptions(java.lang.String... newOptions)
           
 void setSelectedIndex(int newIndex)
           
 void setValue(java.lang.String newItem)
          Sets the current value for this field.
 
Methods inherited from class com.partnersoft.gui.forms.AbstractFormField
addFieldListener, doAction, fireActionRequested, fireValueChanged, getGui, isDisabled, removeFieldListener, setDisabled, setToolTipText, valueChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FormComboField

public FormComboField()

FormComboField

public FormComboField(javax.swing.ComboBoxModel model)

FormComboField

public FormComboField(java.util.Collection<java.lang.String> options)

FormComboField

public FormComboField(java.lang.String... options)
Method Detail

setModel

public void setModel(javax.swing.ComboBoxModel newModel)

getSelectedIndex

public int getSelectedIndex()

setSelectedIndex

public void setSelectedIndex(int newIndex)

getValue

public java.lang.String getValue()
Description copied from interface: FormField
Returns the current value for this field.


setValue

public void setValue(java.lang.String newItem)
Description copied from interface: FormField
Sets the current value for this field.


setOptions

public void setOptions(java.util.Collection<java.lang.String> newOptions)

setOptions

public void setOptions(java.util.ArrayList<java.lang.String> newOptions)

setOptions

public void setOptions(java.lang.String... newOptions)

getJComboBox

public javax.swing.JComboBox getJComboBox()