PHP2Go Javascript Framework

Class EditSearchField

Object
   |
   +--Field
         |
         +--ComponentField
               |
               +--EditSearchField

class EditSearchField
extends ComponentField

Defined in form/editsearchfield.js


Field Summary
 Boolean autoDispatch
          Auto dispatch flag
 Boolean autoTrim
          Auto trim flag
 Object button
          Search button
 Boolean debug
          Debug flag
 Object filters
          Select input that contains the search filters
 Object hideAlerts
          
 Number loadIdx
          Initial option index to load the returned results
 Array masks
          List of filter masks
 String requestUrl
          Search URL
 Object results
          Results select input
 Object search
          Search term input
   
Fields inherited from class ComponentField
componentClass
   
Fields inherited from class Field
fld, id, name, label, type
 
Constructor Summary
EditSearchField (<String> id, <String> results, <Array> masks, <Number> loadIdx, <String> reqUrl, <Boolean> autoTrim, <Boolean> autoDispatch, <Boolean> debug, <String> initOption)
            The EditSearchField component consists in a select input whose options are loaded from a simple search (filter name and search term) executed through a JSRS request
 
Method Summary
 void clear()
           Clear the component's value
 void focus()
           Focus the first element of the component
 Object getValue()
           Returns the selected option's value
 void setDisabled(<Boolean> b)
           Disables/enables the component
 void setup()
           Execute all the initialization routines for this form component
 void setValue(<String> val)
           Define the list selected option
 void submit(<String> initOption)
           Validates and submits the search.
 Boolean validate()
           Validates the search term's value, based on the mask of the active filter
 
Methods inherited from class ComponentField
raiseEvent
   
Methods inherited from class Field
getFormElement, getMask, isEmpty, enable, disable, beforeFocus, serialize
 

Field Detail

autoDispatch

Boolean autoDispatch

autoTrim

Boolean autoTrim

button

Object button

debug

Boolean debug

filters

Object filters

hideAlerts

Object hideAlerts

loadIdx

Number loadIdx

masks

Array masks

requestUrl

String requestUrl

results

Object results

search

Object search

Constructor Detail

EditSearchField

EditSearchField(<String> id, <String> results, <Array> masks, <Number> loadIdx, <String> reqUrl, <Boolean> autoTrim, <Boolean> autoDispatch, <Boolean> debug, <String> initOption)

Method Detail

clear

void clear()

focus

void focus()

getValue

Object getValue()

setDisabled

void setDisabled(<Boolean> b)

setup

void setup()

setValue

void setValue(<String> val)

submit

void submit(<String> initOption)

validate

Boolean validate()

PHP2Go Javascript Framework

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