org.springframework.web.servlet.tags.form
Class OptionsTag.OptionsWriter

java.lang.Object
  extended by org.springframework.web.servlet.tags.form.OptionWriter
      extended by org.springframework.web.servlet.tags.form.OptionsTag.OptionsWriter
Enclosing class:
OptionsTag

private class OptionsTag.OptionsWriter
extends OptionWriter

Inner class that adapts OptionWriter for multiple options to be rendered.


Field Summary
private  java.lang.String selectName
           
 
Constructor Summary
OptionsTag.OptionsWriter(java.lang.String selectName, java.lang.Object optionSource, java.lang.String valueProperty, java.lang.String labelProperty)
           
 
Method Summary
protected  boolean isOptionDisabled()
          Determine whether the option fields should be disabled.
protected  java.lang.String processOptionValue(java.lang.String value)
          Process the option value before it is written.
protected  void writeCommonAttributes(TagWriter tagWriter)
          Writes default attributes configured to the supplied TagWriter.
 
Methods inherited from class org.springframework.web.servlet.tags.form.OptionWriter
writeOptions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

selectName

private final java.lang.String selectName
Constructor Detail

OptionsTag.OptionsWriter

public OptionsTag.OptionsWriter(java.lang.String selectName,
                                java.lang.Object optionSource,
                                java.lang.String valueProperty,
                                java.lang.String labelProperty)
Method Detail

isOptionDisabled

protected boolean isOptionDisabled()
                            throws JspException
Description copied from class: OptionWriter
Determine whether the option fields should be disabled.

Overrides:
isOptionDisabled in class OptionWriter
Throws:
JspException

writeCommonAttributes

protected void writeCommonAttributes(TagWriter tagWriter)
                              throws JspException
Description copied from class: OptionWriter
Writes default attributes configured to the supplied TagWriter.

Overrides:
writeCommonAttributes in class OptionWriter
Throws:
JspException

processOptionValue

protected java.lang.String processOptionValue(java.lang.String value)
Description copied from class: OptionWriter
Process the option value before it is written. The default implementation simply returns the same value unchanged.

Overrides:
processOptionValue in class OptionWriter