info.informatica.ui.html.tag
Class FormSelectField

java.lang.Object
  extended by info.informatica.doc.DocumentFragment
      extended by info.informatica.html.tag.HTMLTag
          extended by info.informatica.ui.html.tag.FormData
              extended by info.informatica.ui.html.tag.FormField
                  extended by info.informatica.ui.html.tag.FormSelectField
All Implemented Interfaces:
info.informatica.doc.DocumentElement, info.informatica.html.tag.AttributeListener, info.informatica.html.tag.BodyTag, DataControl, DataValue, OptionGroup, Comparable<info.informatica.doc.DocumentFragment>
Direct Known Subclasses:
FormSelectMultiField

public class FormSelectField
extends FormField
implements OptionGroup

HTML form select field.

Author:
amengual at informatica dot info

Nested Class Summary
 
Nested classes/interfaces inherited from class info.informatica.doc.DocumentFragment
info.informatica.doc.DocumentFragment.FragmentComp, info.informatica.doc.DocumentFragment.NotFragmentComp
 
Constructor Summary
FormSelectField(String tagid, ControlName nameattr, info.informatica.doc.FragmentPosition pos)
           
 
Method Summary
 void addOptionItem(String item_id, OptionItem item)
           
 String getName()
          Gets the name of the tag.
 OptionItem getOptionItem(String option_id)
           
 Collection<OptionItem> getOptions()
           
 info.informatica.doc.DocumentFragment getTagData()
           
 boolean isMultiple()
           
 void mapDataToUI(DataField de, Dataset ds, Map<String,Object> m)
           
 void selectOption(String option_id)
           
 void setTagData(info.informatica.doc.DocumentFragment tagdata)
           
 void setValue(String[] sa)
           
 
Methods inherited from class info.informatica.ui.html.tag.FormField
setValue, startTag
 
Methods inherited from class info.informatica.ui.html.tag.FormData
createField, createField, getAttributes, getControlName, getFieldname, getFieldSize, getFormat, getStringValues, getValue, guessDataField, init, mapInputField, setFieldname, setFormat, setValue, setValue, toString, toString
 
Methods inherited from class info.informatica.html.tag.HTMLTag
align, endTag, getAlignment, getBlockPosition, getId, getParent, getStyle, getStyleClass, isSelfClosing, length, onAttributeRemoved, onAttributes, onAttributeStringSet, onDummyAttributes, setAttributes, setId, setParent, setSelfClosing, setSelfClosing, setTagData, toString, toString, toXml, vAlign
 
Methods inherited from class info.informatica.doc.DocumentFragment
adjustWidth, compareTo, getCurrentPosition, getPosition, setPosition
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface info.informatica.html.tag.BodyTag
getStyle, getStyleClass
 

Constructor Detail

FormSelectField

public FormSelectField(String tagid,
                       ControlName nameattr,
                       info.informatica.doc.FragmentPosition pos)
Method Detail

addOptionItem

public void addOptionItem(String item_id,
                          OptionItem item)
Specified by:
addOptionItem in interface OptionGroup

getOptions

public Collection<OptionItem> getOptions()
Specified by:
getOptions in interface OptionGroup

getOptionItem

public OptionItem getOptionItem(String option_id)
Specified by:
getOptionItem in interface OptionGroup

selectOption

public void selectOption(String option_id)
                  throws IllegalOptionException
Specified by:
selectOption in interface OptionGroup
Throws:
IllegalOptionException

isMultiple

public boolean isMultiple()
Specified by:
isMultiple in interface OptionGroup

getTagData

public info.informatica.doc.DocumentFragment getTagData()
Overrides:
getTagData in class info.informatica.html.tag.HTMLTag

setTagData

public void setTagData(info.informatica.doc.DocumentFragment tagdata)
Overrides:
setTagData in class info.informatica.html.tag.HTMLTag

mapDataToUI

public void mapDataToUI(DataField de,
                        Dataset ds,
                        Map<String,Object> m)
                 throws DatasetException
Specified by:
mapDataToUI in interface DataControl
Overrides:
mapDataToUI in class FormData
Throws:
DatasetException

setValue

public void setValue(String[] sa)
              throws DataFieldException
Overrides:
setValue in class FormData
Throws:
DataFieldException

getName

public String getName()
Gets the name of the tag.

Overrides:
getName in class FormField
Returns:
tag name