com.waveset.ui
Class EditForm.Text

java.lang.Object
  extended bycom.waveset.ui.EditForm.Item
      extended bycom.waveset.ui.EditForm.Text
All Implemented Interfaces:
java.lang.Cloneable
Direct Known Subclasses:
EditForm.FileUpload
Enclosing class:
EditForm

public static class EditForm.Text
extends EditForm.Item

A class describing the contents of an element.

Its a single value item, with information about the size of the editing field.


Constructor Summary
EditForm.Text(java.lang.String title, java.lang.String name, java.lang.String value, int size, int maxLength)
           
 
Method Summary
 int getMaxLength()
           
 int getSize()
           
 java.lang.String getSubmitOnEnter()
           
 boolean isPassword()
           
 boolean isReadOnly()
           
 void setMaxLength(int max)
           
 void setPassword(boolean p)
           
 void setReadOnly(boolean readOnly)
           
 void setSize(int size)
           
 void setSubmitOnEnter(java.lang.String submitOnEnter)
           
 java.lang.String toHTML()
          This generates HTML to be placed anywhere in a TD - just like the genform genrates, but without the per-row style information.
 
Methods inherited from class com.waveset.ui.EditForm.Item
clone, getAlignment, getHelpRef, getHTMLClass, getName, getPageInformation, getTitle, getValue, isNoWrap, isRenderAllHTML, isRequired, setAlignment, setForm, setHelpRef, setHTMLClass, setNoWrap, setPageInformation, setRenderAllHTML, setRenderInTitleColumn, setRequired, toHTML
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EditForm.Text

public EditForm.Text(java.lang.String title,
                     java.lang.String name,
                     java.lang.String value,
                     int size,
                     int maxLength)
Method Detail

getSize

public int getSize()

getMaxLength

public int getMaxLength()

setSize

public void setSize(int size)

setMaxLength

public void setMaxLength(int max)

isPassword

public boolean isPassword()

setPassword

public void setPassword(boolean p)

setSubmitOnEnter

public void setSubmitOnEnter(java.lang.String submitOnEnter)

getSubmitOnEnter

public java.lang.String getSubmitOnEnter()

isReadOnly

public boolean isReadOnly()

setReadOnly

public void setReadOnly(boolean readOnly)

toHTML

public java.lang.String toHTML()
This generates HTML to be placed anywhere in a TD - just like the genform genrates, but without the per-row style information. Used to generate a "FormTable"

Overrides:
toHTML in class EditForm.Item