agonism.dovetail.site
Class FormElement

java.lang.Object
  |
  +--agonism.dovetail.site.DovetailInstance
        |
        +--agonism.dovetail.site.FormElement

public class FormElement
extends DovetailInstance


Fields inherited from class agonism.dovetail.site.DovetailInstance
m_context
 
Constructor Summary
protected FormElement(IRequestContext context, QFormElement element)
           
 
Method Summary
 Column getColumn()
           
protected  java.lang.String getColumnName()
           
protected  java.lang.String getFormName()
           
 java.lang.String getName()
           
 java.lang.Object getOptionValue()
           
protected  java.lang.String getPageName()
           
protected  java.lang.String getTableName()
           
 Type getType()
           
 java.lang.Object getValue()
          This method never returns null.
 boolean isHidden()
           
 boolean isPassword()
           
 boolean isRequired()
           
 void renderFileInput()
           
 void renderLabel(java.lang.String label)
           
 void renderLabel(java.lang.String label, java.lang.Boolean makeRequired)
          Render a label for the form element.
 void renderRadioInput()
           
 void renderTextAreaInput(int rows, int cols)
           
 void renderTextInput()
           
 void renderValueAttribute()
           
 
Methods inherited from class agonism.dovetail.site.DovetailInstance
findObject, findPageName, getContext, getFactory, getName, getPage, getPeer, getSite
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FormElement

protected FormElement(IRequestContext context,
                      QFormElement element)
Method Detail

getName

public java.lang.String getName()

isHidden

public boolean isHidden()

isPassword

public boolean isPassword()

isRequired

public boolean isRequired()

getColumn

public Column getColumn()

getValue

public java.lang.Object getValue()
This method never returns null. If there is no value for the FormElement, it returns the empty string, "".

getOptionValue

public java.lang.Object getOptionValue()

getType

public Type getType()

renderLabel

public void renderLabel(java.lang.String label)

renderLabel

public void renderLabel(java.lang.String label,
                        java.lang.Boolean makeRequired)
Render a label for the form element. The label text will be written to the output writer, and it will be highlighted if the form element is required.
Parameters:
makeRequired - if null, the isRequired() method is used to determine whether the label should be highlighted. If makeRequired is non-null, it will determine whether the label is highlighted or not.

renderValueAttribute

public void renderValueAttribute()

renderRadioInput

public void renderRadioInput()

renderTextInput

public void renderTextInput()

renderFileInput

public void renderFileInput()

renderTextAreaInput

public void renderTextAreaInput(int rows,
                                int cols)

getTableName

protected java.lang.String getTableName()

getColumnName

protected java.lang.String getColumnName()

getFormName

protected java.lang.String getFormName()

getPageName

protected java.lang.String getPageName()