PHP2Go Javascript Framework

Class Field

Object
   |
   +--Field
Direct Known Subclasses:
ComponentField, InputField, InputSelectorField, SelectField

class Field

Defined in form.js


Field Summary
 Object fld
          Holds the form element instance
 String id
          Element id
 Object label
          Element label
 String name
          Element name
 String type
          Element type
 
Constructor Summary
Field (<Object> fld)
            This is the base class of the Field hierarchy.
 
Method Summary
 Bool beforeFocus()
           Perform tasks and run validations before activating the field
 void clear()
           Clears the value of the field
 void disable()
           Disables the field
 void enable()
           Enables the field
 Object focus()
           Move focus to the field.
 {Object} getFormElement()
           Retorna o elemento HTML associado ao objeto
 Mask getMask()
           Retrieve the mask object associated with the field
 Object getValue()
           Returns the current value of the field
 Boolean isEmpty()
           Check whether the field contains an empty value
 String serialize()
           Serialize field's name and value so that the returning value can be used to build query strings or HTTP requests
 <private>  void setDisabled(<Boolean> b)
           Internal method to disable/enable the field
 void setValue(<Object> val)
           Sets the value of the field
<static> Object fromFormElement(<Object> elm)
           Create a Field object from a given form element

Field Detail

fld

Object fld

id

String id

label

Object label

name

String name

type

String type

Constructor Detail

Field

Field(<Object> fld)

Method Detail

beforeFocus

Bool beforeFocus()

clear

void clear()

disable

void disable()

enable

void enable()

focus

Object focus()

getFormElement

{Object} getFormElement()

getMask

Mask getMask()

getValue

Object getValue()

isEmpty

Boolean isEmpty()

serialize

String serialize()

setDisabled

 <private> void setDisabled(<Boolean> b)

setValue

void setValue(<Object> val)

fromFormElement

<static> Object fromFormElement(<Object> elm)

PHP2Go Javascript Framework

Copyright © 2002-2006 by Marcos Pont
Documentation generated by JSDoc on Sun Oct 7 19:52:10 2007