API Overview API Index Package Overview Direct link to this page
JavaOnTracks 0.1.2
  net.jot.web.forms. JOTFormElement View Source
Author(s)
thibautc
Since
Version
Serial
Hierarchy
 Object
      JOTViewBlock
          JOTViewTag
              JOTFormElement
Implements
Subclasses
Description
public class JOTFormElement
  A form element is basically equivalent to an HTML form field.
See also:   
Constructors
public JOTFormElement (int elementType)
  Creates a formelement of the given type ie: type=JOTFormConst.INPUT_TEXT
Methods
Hide/Show inherited methods
public JOTFormElement get (int type, String name)
public String getContent () [Inherited From JOTViewBlock]
public Hashtable getFlags () [Inherited From JOTViewTag]
public Hashtable getSubElements ()
public Hashtable getTagProperties () [Inherited From JOTViewTag]
public int getType ()
public String getValue ()
  Shortcut to get the value of a field, see setValue()
public boolean isVisible () [Inherited From JOTViewBlock]
public void removeFlag (String flag) [Inherited From JOTViewTag]
  Remove a flag from the HTML (if found)
public void set (String htmlId, JOTFormElement element)
public void setContent (String newContent) [Inherited From JOTViewBlock]
  If a content is defined(not null), then the "HTML element" block content will be replaced by the value of newConetnt.
public void setFlag (String flag) [Inherited From JOTViewTag]
  Used to set a FLAG on an html element.
public void setTagProperty (String name, String value) [Inherited From JOTViewTag]
  This allows to redefine (or add new) HTML tags to the block.
public void setType (int type)
  Manually set/update an element type
public void setValue (String htmlValue)
  Easy way to set the value of an element for example for most fields it's the value="" property but for a textarea it will be the content and for a checkbox a SELECTED flag etc...
public void setVisible (boolean visible) [Inherited From JOTViewBlock]
  If set to false, the elemnt will be hidden "removed" from the generated HTML.
public void unsetTagProperty (String name) [Inherited From JOTViewTag]
  Unset a tag property, so that it will be left alone.
Fields
protected String content [Inherited From JOTViewBlock]
protected boolean visible [Inherited From JOTViewBlock]
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.5     ©Thibaut Colar