|
CAF Shared JavaScript | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--CAF.Command
Command utilities.
Defined in core.js
Nested Class Summary | |
<static class> |
CAF.Command.Model |
<static class> |
CAF.Command.Interval |
Constructor Summary | |
CAF.Command
()
|
Method Summary | |
<static> void
|
clear(form)
Clears hidden command field for form. |
<static> Object
|
field(form)
Returns hidden command field node for form. |
<static> Object
|
findDefaultCommand(element)
Finds the default command for specified input element. |
<static> void
|
focusFirstForm()
Focuses the first field in the first form with a defaultFocus setting in the body of the current page. |
<static> Object
|
form(element)
Returns form for this element. |
<static> Object
|
formNoDisjoint(element)
Returns form for this element. |
<static> Object
|
getDefaultCommand(form)
Gets default command for form (command to execute when enter key is pressed). |
<static> Object
|
getParameters(element, forms)
Serializes the current state of the specified forms as post parameters. |
<static> void
|
setDefaultCommand(form, cmd)
Sets default command for form (command to execute when enter key is pressed). |
<static> void
|
trapEnterKey(event)
Onkeypress handler that executes default command when enter key is pressed. |
Constructor Detail |
CAF.Command()
Method Detail |
<static> void clear(form)
form
- Form node or id.
<static> Object field(form)
form
- Form node or id.
<static> Object findDefaultCommand(element)
form
- Element node or id.
<static> void focusFirstForm()
<static> Object form(element)
element
- Element node or id.
<static> Object formNoDisjoint(element)
element
- Element node or id.
<static> Object getDefaultCommand(form)
form
- Form node or id.
<static> Object getParameters(element, forms)
element
- Element whose forms to serialize.
forms
- (optional) Array of form ids to serialize.
<static> void setDefaultCommand(form, cmd)
form
- Form node or id.
cmd
- Command node or id.
<static> void trapEnterKey(event)
event
- Event object.
|
CAF Shared JavaScript | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |