Jala 1.3

Class jala.Form.Component.Input

Object
   |
   +--jala.Form.Component.Input
Direct Known Subclasses:
jala.Form.Component.Hidden, jala.Form.Component.Checkbox, jala.Form.Component.File, jala.Form.Component.Password, jala.Form.Component.Button, jala.Form.Component.Select, jala.Form.Component.Textarea, jala.Form.Component.Date

class jala.Form.Component.Input


Instances of this class represent a single form input field.
Defined in Form.js


Constructor Summary
jala.Form.Component.Input (<String> name)
            Creates a new input component instance.
 
Method Summary
 String checkLength(<Object> reqData)
           Checks user input for maximum length, minimum length and require if the corresponding options have been set using the require method.
 String checkRequirements(<Object> reqData)
           Checks user input against options set using the require method.
 void class_macro()
           Renders this component's class name.
 void controls_macro()
           Renders the control(s) of this component
 void error_macro()
           Renders this component's error message (if set) directly to response
 Object getControlAttributes()
           Creates a new attribute object for this element.
 String|Number|Date getValue()
           Retrieves the property which is edited by this component.
 void help_macro()
           Renders this component's help text, if set.
 void id_macro()
           Renders this component's id
 void label_macro()
           Renders this component's label.
 void name_macro()
           Renders this component's name
 Object parseValue(<Object> reqData)
           Parses the string input from the form and creates the datatype that is edited with this component.
 void render()
           Renders this component including label, error and help messages directly to response.
 void render_macro()
           Renders this component including label, error and help messages directly to response
 void renderControls(<Object> attr, <Object> value, <Object> reqData)
           Renders the html form elements to the response.
 String renderError()
           If the error tracker holds an error message for this component, it is wrapped in a div-tag and returned as a string.
 String renderHelp()
           If this component contains a help message, it is wrapped in a div-tag and returned as a string.
 String renderLabel()
           Returns the rendered label of this component
 void save(<jala.Form.Tracker> tracker, <Object> destObj)
           Saves the parsed value using setValue.
 Object setValue(<Object> destObj, <Object> value)
           Sets a property of the object passed as argument to the given value.
 void type_macro()
           Renders this component's type
 void validate(<jala.Form.Tracker> tracker)
           Validates the input provided to this component.

Constructor Detail

jala.Form.Component.Input

jala.Form.Component.Input(<String> name)

Method Detail

checkLength

String checkLength(<Object> reqData)

checkRequirements

String checkRequirements(<Object> reqData)

class_macro

void class_macro()

controls_macro

void controls_macro()

error_macro

void error_macro()

getControlAttributes

Object getControlAttributes()

getValue

String|Number|Date getValue()

help_macro

void help_macro()

id_macro

void id_macro()

label_macro

void label_macro()

name_macro

void name_macro()

parseValue

Object parseValue(<Object> reqData)

render

void render()

render_macro

void render_macro()

renderControls

void renderControls(<Object> attr, <Object> value, <Object> reqData)

renderError

String renderError()

renderHelp

String renderHelp()

renderLabel

String renderLabel()

save

void save(<jala.Form.Tracker> tracker, <Object> destObj)

setValue

Object setValue(<Object> destObj, <Object> value)

type_macro

void type_macro()

validate

void validate(<jala.Form.Tracker> tracker)

Jala 1.3

Documentation generated by JSDoc on Tue Jan 8 15:45:31 2008