agonism.dovetail.site
Class FormElement
java.lang.Object
|
+--agonism.dovetail.site.DovetailInstance
|
+--agonism.dovetail.site.FormElement
- public class FormElement
- extends DovetailInstance
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FormElement
protected FormElement(IRequestContext context,
QFormElement element)
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()