|
CAF Shared JavaScript | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--CAF.Output.Model
CAF Output client-side model.
Defined in core.js
Field Summary | |
Object |
form
Form to which this command applies. |
Object |
id
Client-side id. |
Constructor Summary | |
CAF.Output.Model
()
|
Method Summary | |
void
|
_reapplyOriginalStyle(originalStyle, element)
|
void
|
addRefreshCompleteListener(fn)
Adds refresh-complete listener. |
void
|
addToggleListener(fn, key)
Adds toggle listener. |
Object
|
equals(o)
Custom equals method. |
Object
|
getValue()
Gets this control's string or string array value. |
void
|
hide(callback)
Hides this control. |
void
|
initialize(element)
Model constructor. |
Object
|
isDisabled()
Returns true if this control is disabled. |
Object
|
isFocused()
Returns true if this control is focused. |
Object
|
isVisible()
Returns true if this control is visible. |
Object
|
listRefreshCompleteListeners(fn)
Lists registered refresh-complete listeners. |
Object
|
listToggleListeners(fn)
Lists registered toggle listeners. |
void
|
reAttachBehaviors()
|
void
|
refresh(params)
Refreshes the content of this control from the server. |
void
|
refreshWhenVisible()
If visible, refreshes the content of this control from the server; if not visible, flags the control to refresh its content when toggled visible. |
void
|
removeRefreshCompleteListener(fn)
Removes refresh-complete listener. |
void
|
removeToggleListener(fn, key)
Removes toggle listener. |
Object
|
setDisabled(disabled)
Sets this control as disabled or enabled. |
Object
|
setFocused(focus)
Sets this control as focused or not focused. |
void
|
setValue(value)
Sets this control's string or string array value. |
void
|
setVisible(visible)
Sets this control as shown or hidden. |
void
|
show(callback)
Shows this control. |
void
|
toggle()
Hides this control, if visible, otherwise shows this control. |
Object
|
toString()
Custom toString method. |
Field Detail |
Object form
Object id
Constructor Detail |
CAF.Output.Model()
Method Detail |
void _reapplyOriginalStyle(originalStyle, element)
void addRefreshCompleteListener(fn)
fn
- Refresh-complete listener.
void addToggleListener(fn, key)
fn
- Toggle listener.
Object equals(o)
o
- Model to compare to this.
Object getValue()
void hide(callback)
void initialize(element)
element
- Control element or id.
Object isDisabled()
Object isFocused()
Object isVisible()
Object listRefreshCompleteListeners(fn)
Object listToggleListeners(fn)
void reAttachBehaviors()
void refresh(params)
void refreshWhenVisible()
void removeRefreshCompleteListener(fn)
fn
- Refresh-complete listener.
void removeToggleListener(fn, key)
fn
- Toggle listener.
Object setDisabled(disabled)
Object setFocused(focus)
void setValue(value)
value
- String value, or in the case of a control with multiple values, an array of string values. If the control has no value, pass an empty string ("") or an empty arry ([]); never null.
void setVisible(visible)
visible
- True to show, false to hide.
void show(callback)
void toggle()
Object toString()
|
CAF Shared JavaScript | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |