CAF Shared JavaScript

Class CAF.Input.Model

Object
   |
   +--CAF.Output.Model
         |
         +--CAF.Input.Model
Direct Known Subclasses:
CAF.PagingJumper.Model, CAF.GMap.Model, CAF.FilterInput.Model, CAF.Input.File.Model, CAF.Select.Model, CAF.HTMLInput.Model, CAF.SelectAllRows.Checkbox.Model, CAF.Tree.Control.Model, CAF.DateInput.Model, CAF.Checkbox.Model, CAF.PopupCalendar.Model, CAF.SimpleSchedule.Model

class CAF.Input.Model
extends CAF.Output.Model


CAF Input client-side model.
Defined in core.js


Field Summary
 Object classes
          
   
Fields inherited from class CAF.Output.Model
id, form
 
Constructor Summary
CAF.Input.Model ()
           
 
Method Summary
 void addValidator(validator)
           Adds a validator.
 void addValueChangeListener(fn, ignoreWhenDisabled, key)
           Adds value-change listener.
 Object getLabel()
           Gets input's label HTML (if input has label).
 Object getValue()
           Gets this control's string or string array value.
 Object isEmpty()
           Returns true if a value hasn't been entered for this control (ie should fail "required" validation).
 Object isFocused()
           Returns true if this control is focused.
 Object listValidators()
           Lists registered validators.
 Object listValueChangeListeners()
           Lists registered value-change listeners.
 void removeValidator(validator)
           Removes a validator.
 void removeValueChangeListener(fn)
           Removes value-change listener.
 Object setDisabled(disabled)
           Sets this control as disabled or enabled.
 Object setFocused(focus)
           Sets this control as focused or not focused.
 void setLabel(label)
           Sets input's label HTML (if input has label).
 void setValue(value)
           Sets this control's string or string array value.
 Object validate(setfocus)
           Re-validates this input control.
 
Methods inherited from class CAF.Output.Model
initialize, toString, equals, isDisabled, isVisible, setVisible, hide, _reapplyOriginalStyle, show, toggle, refresh, reAttachBehaviors, refreshWhenVisible, addRefreshCompleteListener, removeRefreshCompleteListener, listRefreshCompleteListeners, addToggleListener, removeToggleListener, listToggleListeners
 

Field Detail

classes

Object classes

Constructor Detail

CAF.Input.Model

CAF.Input.Model()

Method Detail

addValidator

void addValidator(validator)

addValueChangeListener

void addValueChangeListener(fn, ignoreWhenDisabled, key)

getLabel

Object getLabel()

getValue

Object getValue()

isEmpty

Object isEmpty()

isFocused

Object isFocused()

listValidators

Object listValidators()

listValueChangeListeners

Object listValueChangeListeners()

removeValidator

void removeValidator(validator)

removeValueChangeListener

void removeValueChangeListener(fn)

setDisabled

Object setDisabled(disabled)

setFocused

Object setFocused(focus)

setLabel

void setLabel(label)

setValue

void setValue(value)

validate

Object validate(setfocus)

CAF Shared JavaScript

Documentation generated by JSDoc on Sun Sep 15 20:21:18 2019