toolbox.web.template
Class BaseSelectOptions

Package class diagram package BaseSelectOptions
java.lang.Object
  extended by toolbox.web.template.BaseSelectOptions

public class BaseSelectOptions
extends java.lang.Object

Base template helper class to generate HTML select options.


Constructor Summary
BaseSelectOptions()
           
 
Method Summary
 freemarker.template.TemplateModel getOptions(java.util.List table, java.lang.String valAttr, java.lang.String dispAttr, java.lang.String selected)
          Return a SimpleScalar containing the options.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseSelectOptions

public BaseSelectOptions()
Method Detail

getOptions

public freemarker.template.TemplateModel getOptions(java.util.List table,
                                                    java.lang.String valAttr,
                                                    java.lang.String dispAttr,
                                                    java.lang.String selected)
Return a SimpleScalar containing the options.

Parameters:
table - List instance containing list of options.
valAttr - Value attribute.
dispAttr - Display Attribute.
selected - Selected value attribute value.
Returns:
SimpleScalar containing options.