|
jsm | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--GLOBALS
Method Summary | |
<static> <private> void
|
_jsmHideTable(<JsmTable> table, <int> rowIdx, <int> columnIdx)
Will be called by the jsmHideTableActionCell |
<static> <private> void
|
_jsmOnAddRow(<JsmTable> table)
Will be called by the jsmAddRowActionTh |
<static> <private> void
|
_jsmOnChangeEventDelegate(e)
Will be called by for on change events; retrieves the attached model from the node object |
<static> <private> void
|
_jsmOnClickEventDelegate(e)
Will be called by for onclick-events; retrieves the attached model from the node object and then calls the attached onClickFunction handing over the appropriate arguments This is neccessary to avoid closures but still be able to hand over user friendly parameters and not let the user work with this.model |
<static> <private> void
|
_jsmOnDeleteRow(<JsmTable> table, <int> rowIdx)
Will be called by the jsmDeleteRowActionTd |
<static> <private> void
|
_jsmOnEditRow(<JsmTable> table, <int> rowIdx, <int> columnIdx)
Will be called by the jsmEditRowActionTd |
<static> <private> void
|
_jsmOnGotoFirstPage(<JsmTable> table, <int> rowIdx, <int> columnIdx)
Will be called by the jsmGotoFirstPageActionCell |
<static> <private> void
|
_jsmOnGotoLastPage(<JsmTable> table, <int> rowIdx, <int> columnIdx)
Will be called by the jsmGotoLastPageActionCell |
<static> <private> void
|
_jsmOnGotoNextPage(<JsmTable> table, <int> rowIdx, <int> columnIdx)
Will be called by the jsmGotoNextPageActionCell |
<static> <private> void
|
_jsmOnGotoPreviousPage(<JsmTable> table, <int> rowIdx, <int> columnIdx)
Will be called by the jsmGotoPreviousPageActionCell |
<static> <private> void
|
_jsmOnKeyUpEventDelegate(e)
Will be called by for on key up events; retrieves the attached model from the node object |
<static> <private> void
|
_jsmOnMouseDownEventDelegate(e)
Will be called by for onmousedown-events; retrieves the attached model from the node object This is neccessary to avoid closures |
<static> void
|
_jsmOnMouseMoveEventDelegate(e)
|
<static> <private> void
|
_jsmOnMouseUpEventDelegate(e)
Will be called by for onmouseup-events; retrieves the attached model from the node object This is neccessary to avoid closures |
<static> <private> void
|
_jsmOnSaveRow(<JsmTable> table, <int> rowIdx, <int> columnIdx)
Will be called by the jsmEditRowActionTd |
<static> <private> void
|
_jsmShowOnlyHeader(<JsmTable> table, <int> rowIdx, <int> columnIdx)
Will be called by the jsmShowOnlyHeaderActionTh |
<static> void
|
jsmAddMessage(<Html> theHTML, <int> timeout, <boolean> warn)
Will add a message to the page if an element with the id='jsmMessage' has been specified |
<static> void
|
jsmAppendMessage(<Html> theHTML, <int> timeout, <boolean> warn)
Will append a message to the page if an element with the id='jsmMessage' has been specified |
<static> void
|
jsmClearMessage()
Clear the messages off the page in element with the id='jsmMessage' |
<static> void
|
jsmCopySelectedOptions(<Node> fromSelectBox,<Node> toSelectBox)
Move selected value from one selectbox to the other |
<static> void
|
jsmEmptyFunction()
an empty function doing nothing |
<static> String
|
jsmGetLabels(<Node> selectBox, <String> delimiter)
Get a delimiter separated list of all the select box labels |
<static> String
|
jsmGetValues(<Node> selectBox)
Get a JSON-Array style list of all the select box values, eg. |
<static> void
|
jsmHangOntoSelectedWidgetNodes(<Node> theNode)
Stick all selected widget nodes into the global var jsmSelectedWidgetNodes IE will set the checked and selected flags of a widget-node to false as soon as the node is appended to another node therefore I stick the checkbox-nodes and option-nodes which are selected into an array later for example the table.render()-method will make sure they get selected |
<static> void
|
jsmOnAddRow(<JsmTable> table, <int> rowIdx)
Will be called by the after the the add row button has been clicked; define your own version of this function if needed |
<static> void
|
jsmOnDeleteRow(<JsmTable> table, <int> rowIdx)
Will be called by the after the the delete button has been clicked; define your own version of this function if needed |
<static> void
|
jsmOnEditRow(<JsmTable> table, <int> rowIdx)
Will be called by the after the the edit button has been clicked; define your own version of this function if needed |
<static> void
|
jsmOnSaveRow(<JsmTable> table, <int> rowIdx)
Will be called by the after the the save button has been clicked; define your own version of this function if needed |
<static> void
|
jsmOnTableCellClick(<JsmTable> table, <int> rowIdx, <int> columnIdx)
The default event handler for a table data cell click event (only called if the .setOnClick-method has not be used); define your own version of this function if needed |
<static> void
|
jsmOnTableHeaderClick(<JsmTable> table, <int> columnIdx)
The default event handler for a table header cell click event (only called if the .setOnClick-method has not be used); define your own version of this function if needed |
<static> void
|
jsmOnTableRowClick(<JsmTable> table, <int> rowIdx)
The default event handler for a table row click event (only called if the .setOnClick-method has not be used); define your own version of this function if needed |
<static> void
|
jsmSelectWidgetNodes()
Select all nodes contained in this array and remove nodes from the global var jsmSelectedWidgetNodes |
<static> void
|
pause(<int> milliSecs)
Pause the java script execution - will take over all processor resources because it uses a while loop |
Method Detail |
<static> <private> void _jsmHideTable(<JsmTable> table, <int> rowIdx, <int> columnIdx)
table
- The table object
rowIdx
- The index of the row
columnIdx
- The index of the column
<static> <private> void _jsmOnAddRow(<JsmTable> table)
table
- The table object
<static> <private> void _jsmOnChangeEventDelegate(e)
<static> <private> void _jsmOnClickEventDelegate(e)
<static> <private> void _jsmOnDeleteRow(<JsmTable> table, <int> rowIdx)
table
- The table object
rowIdx
- The index of the row
<static> <private> void _jsmOnEditRow(<JsmTable> table, <int> rowIdx, <int> columnIdx)
table
- The table object
rowIdx
- The index of the row
columnIdx
- The index of the column
<static> <private> void _jsmOnGotoFirstPage(<JsmTable> table, <int> rowIdx, <int> columnIdx)
table
- The table object
rowIdx
- The index of the row
columnIdx
- The index of the column
<static> <private> void _jsmOnGotoLastPage(<JsmTable> table, <int> rowIdx, <int> columnIdx)
table
- The table object
rowIdx
- The index of the row
columnIdx
- The index of the column
<static> <private> void _jsmOnGotoNextPage(<JsmTable> table, <int> rowIdx, <int> columnIdx)
table
- The table object
rowIdx
- The index of the row
columnIdx
- The index of the column
<static> <private> void _jsmOnGotoPreviousPage(<JsmTable> table, <int> rowIdx, <int> columnIdx)
table
- The table object
rowIdx
- The index of the row
columnIdx
- The index of the column
<static> <private> void _jsmOnKeyUpEventDelegate(e)
<static> <private> void _jsmOnMouseDownEventDelegate(e)
<static> void _jsmOnMouseMoveEventDelegate(e)
<static> <private> void _jsmOnMouseUpEventDelegate(e)
<static> <private> void _jsmOnSaveRow(<JsmTable> table, <int> rowIdx, <int> columnIdx)
table
- The table object
rowIdx
- The index of the row
columnIdx
- The index of the column
<static> <private> void _jsmShowOnlyHeader(<JsmTable> table, <int> rowIdx, <int> columnIdx)
table
- The table object
rowIdx
- The index of the row
columnIdx
- The index of the column
<static> void jsmAddMessage(<Html> theHTML, <int> timeout, <boolean> warn)
theHTML
- The message to render - can contain HTML tags
timeout
- (Optional) The timeout in seconds after which the message will be cleared
warn
- (Optional) Adds a warning style to the message box
<static> void jsmAppendMessage(<Html> theHTML, <int> timeout, <boolean> warn)
theHTML
- The message to render - can contain HTML tags
timeout
- (Optional) The timeout in seconds after which the message will be cleared
warn
- (Optional) Adds a warning style to the message box
<static> void jsmClearMessage()
<static> void jsmCopySelectedOptions(<Node> fromSelectBox,<Node> toSelectBox)
fromSelectBox
-
toSelectBox
-
<static> void jsmEmptyFunction()
<static> String jsmGetLabels(<Node> selectBox, <String> delimiter)
selectBox
-
delimiter
- Optional: defaults to comma
<static> String jsmGetValues(<Node> selectBox)
selectBox
-
<static> void jsmHangOntoSelectedWidgetNodes(<Node> theNode)
theNode
- Node which can be selected (eg. checkbox node) or have selected children (eg. selectbox node)
<static> void jsmOnAddRow(<JsmTable> table, <int> rowIdx)
table
- The table object
rowIdx
- The index of the row
<static> void jsmOnDeleteRow(<JsmTable> table, <int> rowIdx)
table
- The table object
rowIdx
- The index of the row
<static> void jsmOnEditRow(<JsmTable> table, <int> rowIdx)
table
- The table object
rowIdx
- The index of the row
<static> void jsmOnSaveRow(<JsmTable> table, <int> rowIdx)
table
- The table object
rowIdx
- The index of the row
<static> void jsmOnTableCellClick(<JsmTable> table, <int> rowIdx, <int> columnIdx)
table
- The table object
rowIdx
- The index of the row
columnIdx
- The index of the column
<static> void jsmOnTableHeaderClick(<JsmTable> table, <int> columnIdx)
table
- The table object
columnIdx
- The index of the column
<static> void jsmOnTableRowClick(<JsmTable> table, <int> rowIdx)
table
- The table object
rowIdx
- The index of the row
<static> void jsmSelectWidgetNodes()
<static> void pause(<int> milliSecs)
milliSecs
-
|
jsm | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |