com.iplanet.jato.view.html
Class ComboBox

java.lang.Object
  |
  +--com.iplanet.jato.view.ViewBase
        |
        +--com.iplanet.jato.view.DisplayFieldImpl
              |
              +--com.iplanet.jato.view.html.HtmlDisplayFieldBase
                    |
                    +--com.iplanet.jato.view.html.SelectableGroupImpl
                          |
                          +--com.iplanet.jato.view.html.ComboBox
All Implemented Interfaces:
DisplayField, HtmlDisplayField, SelectableGroup, View

public class ComboBox
extends SelectableGroupImpl

The ComboBox class encapsulates and implements the server-side representation of an HTML select statement where the size is equal to 1.

Version:
JATO/1.2.2 $Id: ComboBox.java,v 1.12 2002/03/16 03:26:44 todd Exp $
See Also:
Option, OptionList, SelectableGroup, RadioButtonGroup, ListBox

Fields inherited from interface com.iplanet.jato.view.html.SelectableGroup
VALUE_FOR_NONE_SELECTED
 
Fields inherited from interface com.iplanet.jato.view.html.HtmlDisplayField
QBE_CONTROL_NAME_SUFFIX
 
Fields inherited from interface com.iplanet.jato.view.View
QUALIFIED_VIEW_NAME_SEPARATOR
 
Constructor Summary
ComboBox(ContainerView parent, java.lang.String name, java.lang.Object value)
          Construct a display field with the specified properties.
ComboBox(ContainerView parent, java.lang.String name, java.lang.Object value, OptionList options)
          Construct a display field with the specified properties.
ComboBox(ContainerView parent, java.lang.String name, java.lang.String boundName, java.lang.Object value)
          Construct a display field with the specified properties.
ComboBox(ContainerView parent, java.lang.String name, java.lang.String boundName, java.lang.Object value, OptionList options)
          Construct a display field with the specified properties.
ComboBox(View parent, Model model, java.lang.String name, java.lang.Object value)
          Construct a display field with the specified properties
ComboBox(View parent, Model model, java.lang.String name, java.lang.Object value, OptionList options)
          Construct a display field with the specified properties
ComboBox(View parent, Model model, java.lang.String name, java.lang.String boundName, java.lang.Object value)
          Construct a display field with the specified properties
ComboBox(View parent, Model model, java.lang.String name, java.lang.String boundName, java.lang.Object value, DisplayFieldDescriptor descriptor)
          Construct a display field with the specified properties
ComboBox(View parent, Model model, java.lang.String name, java.lang.String boundName, java.lang.Object value, OptionList options, DisplayFieldDescriptor descriptor)
          Construct a display field with the specified properties
 
Method Summary
 java.lang.String getHTML()
          Returns the HTML code that will render the entire combo box.
 
Methods inherited from class com.iplanet.jato.view.html.SelectableGroupImpl
getLabelForNoneSelected, getNoneSelectedHtmlString, getNumOptions, getOptions, isMultiSelect, isSelected, isSelected, setLabelForNoneSelected, setMultiSelect, setOptions
 
Methods inherited from class com.iplanet.jato.view.html.HtmlDisplayFieldBase
getExtraHtml, getQBEControlQualifiedName, setExtraHtml, urlEncodedValue
 
Methods inherited from class com.iplanet.jato.view.DisplayFieldImpl
getBoundName, getDescriptor, getModel, getValue, getValues, setBoundName, setDescriptor, setModel, setValue, setValue, setValues, setValues, stringValue
 
Methods inherited from class com.iplanet.jato.view.ViewBase
getName, getParent, getParentViewBean, getQualifiedName, getRootView, getRootView, setName, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.iplanet.jato.view.html.HtmlDisplayField
getExtraHtml
 
Methods inherited from interface com.iplanet.jato.view.DisplayField
getDescriptor, getValue, getValues, setValue, setValues, stringValue
 
Methods inherited from interface com.iplanet.jato.view.View
getName, getParent, getQualifiedName, setParent
 

Constructor Detail

ComboBox

public ComboBox(ContainerView parent,
                java.lang.String name,
                java.lang.Object value)
Construct a display field with the specified properties. The field will be bound to the parent's default model.
Parameters:
parent - The parent view of this object
name - This view's name and model field bound name
value - This DiplayField's initial value.

ComboBox

public ComboBox(ContainerView parent,
                java.lang.String name,
                java.lang.Object value,
                OptionList options)
Construct a display field with the specified properties. The field will be bound to the parent's default model.
Parameters:
parent - The parent view of this object
name - This view's name and model field bound name
value - This DiplayField's initial value.

ComboBox

public ComboBox(ContainerView parent,
                java.lang.String name,
                java.lang.String boundName,
                java.lang.Object value)
Construct a display field with the specified properties. The field will be bound to the parent's default model.
Parameters:
parent - The parent view of this object
name - This view's name
boundName - The name of the model field to which this DisplayField is bound
value - This DiplayField's initial value.

ComboBox

public ComboBox(ContainerView parent,
                java.lang.String name,
                java.lang.String boundName,
                java.lang.Object value,
                OptionList options)
Construct a display field with the specified properties. The field will be bound to the parent's default model.
Parameters:
parent - The parent view of this object
name - This view's name
boundName - The name of the model field to which this DisplayField is bound
value - This DiplayField's initial value.

ComboBox

public ComboBox(View parent,
                Model model,
                java.lang.String name,
                java.lang.Object value)
Construct a display field with the specified properties
Parameters:
parent - The parent view of this object
model - The model to which this DisplayField is bound
name - This view's name and model field bound name
value - This DiplayField's initial value.

ComboBox

public ComboBox(View parent,
                Model model,
                java.lang.String name,
                java.lang.Object value,
                OptionList options)
Construct a display field with the specified properties
Parameters:
parent - The parent view of this object
model - The model to which this DisplayField is bound
name - This view's name and model field bound name
value - This DiplayField's initial value.

ComboBox

public ComboBox(View parent,
                Model model,
                java.lang.String name,
                java.lang.String boundName,
                java.lang.Object value)
Construct a display field with the specified properties
Parameters:
parent - The parent view of this object
model - The model to which this DisplayField is bound
name - This view's name.
boundName - The name of the model field to which this DisplayField is bound
value - This DiplayField's initial value.

ComboBox

public ComboBox(View parent,
                Model model,
                java.lang.String name,
                java.lang.String boundName,
                java.lang.Object value,
                DisplayFieldDescriptor descriptor)
Construct a display field with the specified properties
Parameters:
parent - The parent view of this object
model - The model to which this DisplayField is bound
name - This view's name.
boundName - The name of the model field to which this DisplayField is bound
value - This DiplayField's initial value.
descriptor - This DisplayField's DisplayFieldDescriptor. May be null.

ComboBox

public ComboBox(View parent,
                Model model,
                java.lang.String name,
                java.lang.String boundName,
                java.lang.Object value,
                OptionList options,
                DisplayFieldDescriptor descriptor)
Construct a display field with the specified properties
Parameters:
parent - The parent view of this object
model - The model to which this DisplayField is bound
name - This view's name.
boundName - The name of the model field to which this DisplayField is bound
value - This DiplayField's initial value.
descriptor - This DisplayField's DisplayFieldDescriptor. May be null.
Method Detail

getHTML

public java.lang.String getHTML()
Returns the HTML code that will render the entire combo box. Any option which matches the current display field value will be pre-selected.
Returns:
a string of HTML representing the entire combo box.