com.tonbeller.wcf.convert
Class SelectSingleConverter

java.lang.Object
  extended bycom.tonbeller.wcf.convert.NodeConverterBase
      extended bycom.tonbeller.wcf.convert.SelectConverterBase
          extended bycom.tonbeller.wcf.convert.SelectSingleConverter
All Implemented Interfaces:
NodeConverter

public class SelectSingleConverter
extends SelectConverterBase

sets a scalar bean property to the value of the selected item. If no item is selected, nothing will be done.

An items value is the value attribute of the elected item. For type conversion the type, modelReference and formatString attributes will be taken from the items parent (e.g. the listBox).

Author:
av

Constructor Summary
SelectSingleConverter()
           
 
Method Summary
protected  void updateModelReference(Formatter fmt, org.w3c.dom.Element elem, java.lang.Object bean)
           
 
Methods inherited from class com.tonbeller.wcf.convert.SelectConverterBase
convert, convert
 
Methods inherited from class com.tonbeller.wcf.convert.NodeConverterBase
checkRequired, getElementName, setElementName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectSingleConverter

public SelectSingleConverter()
Method Detail

updateModelReference

protected void updateModelReference(Formatter fmt,
                                    org.w3c.dom.Element elem,
                                    java.lang.Object bean)
                             throws FormatException,
                                    java.lang.IllegalAccessException,
                                    java.lang.NoSuchMethodException,
                                    java.lang.reflect.InvocationTargetException
Specified by:
updateModelReference in class SelectConverterBase
Throws:
FormatException
java.lang.IllegalAccessException
java.lang.NoSuchMethodException
java.lang.reflect.InvocationTargetException