jsx3.gui.MatrixAPI


AdoptFires after a record from this matrix is adopted by another object and before the change is committed.
After AppendFires after the user adds a new CDF record to the model and view using the auto record interface.
After CommitFires after the user commits an edit in this matrix.
After EditFires after the user finishes an edit session in this matrix and before an edit is committed.
After ResizeFires when the user releases the mouse button after resizing a column of this matrix.
After SortFires after the user sorts this matrix.
Before AppendFires when the user adds a new CDF record using the auto record interface and before the change is committed.
Before DropFires continuously as the user drags the mouse over a record in this matrix during a drag-and-drop operation.
Before EditFires when the user begins an edit session in this matrix.
Before ResizeFires when the user depresses the mouse button on the resize divider of a column of this matrix.
Before SortFires when the user clicks on the header cell of a sortable column of this matrix and before the records are sorted.
ChangeFires after the user changes the selected records of this matrix.
Ctrl DropFires after the user drops a record on this matrix while pressing the Ctrl key.
DestroyFires after this matrix is removed from the DOM.
DragFires when the user drags a record(s) of this matrix.
DropFires after the user drops a record on this matrix.
ExecuteFires after the user double-clicks a record or presses the Enter key with focus in a record of this matrix.
MenuFires after the user right-clicks this matrix and before the bound context menu displays.
ReorderFires after the user reorders columns of this matrix.
ScrollFires after the user scrolls the data area of this matrix.
SelectFires after the user selects a record of this matrix.
SpyglassFires after the user hovers the mouse over this matrix and before the spyglass displays.
ToggleFires when the user expands or collapses a node in this hierarchically rendered matrix.

Executejsxexecute

Fires after the user double-clicks a record or presses the Enter key with focus in a record of this matrix.

Context Variables

this {jsx3.gui.Matrix} - the object that publishes this event.
objEVENT {jsx3.gui.Event} - the browser event that triggers this event.
strRECORDID {String} - the CDF jsxid of the selected record. When more than one record is executed, this variable is set to just one of the executed records. Use strRECORDIDS when this matrix is multi-select.
strRECORDIDS {Array<String>} - the CDF jsxids of the selected records.

Selectjsxselect

Fires after the user selects a record of this matrix.

Context Variables

this {jsx3.gui.Matrix} - the object that publishes this event.
objEVENT {jsx3.gui.Event} - the browser event that triggers this event.
strRECORDID {String} - the CDF jsxid of the selected record, null if a deselection event.
strRECORDIDS {Array<String>} - the CDF jsxids of the selected records.
objCOLUMN {jsx3.gui.Matrix.Column} - the column of the specific cell in the selected record.

Changejsxchange

Fires after the user changes the selected records of this matrix.

Context Variables

this {jsx3.gui.Matrix} - the object that publishes this event.
objEVENT {jsx3.gui.Event} - the browser event that triggers this event.

Dragjsxdrag

Fires when the user drags a record(s) of this matrix. Canceling this event prevents the drag from occurring.
Cancelable: Evaluate to false to cancel event.

Context Variables

this {jsx3.gui.Matrix} - the object that publishes this event.
objEVENT {jsx3.gui.Event} - the browser event that triggers this event.
strDRAGTYPE {String} - the type of drag (JSXDragType).
strDRAGID {String} - the CDF jsxid of the record to be dragged.
strDRAGIDS {Array<String>} - an array containing the CDF jsxids of the dragged records.
objGUI {HTMLElement} - the HTML element acted upon.

Before Dropjsxbeforedrop

Fires continuously as the user drags the mouse over a record in this matrix during a drag-and-drop operation. Canceling this event prevents the drop indicator from displaying.
Cancelable: Evaluate to false to cancel event.

Context Variables

this {jsx3.gui.Matrix} - the object that publishes this event.
objEVENT {jsx3.gui.Event} - the browser event that triggers this event.
objSOURCE {jsx3.gui.Block} - the object where the drag begins.
strDRAGTYPE {String} - the type of drag (JSXDragType).
strDRAGIDS {Array<String>} - an array containing the CDF jsxids of the dragged records.
strRECORDID {String} - the CDF jsxid corresponding to the node hovered over in the view.
objGUI {HTMLElement} - the HTML element acted upon.

Dropjsxdrop

Fires after the user drops a record on this matrix. Canceling this event prevents the CDF adoption from occurring.
Cancelable: Evaluate to false to cancel event.

Context Variables

this {jsx3.gui.Matrix} - the object that publishes this event.
objEVENT {jsx3.gui.Event} - the browser event that triggers this event.
objSOURCE {jsx3.gui.Block} - the object where the drag begins.
strDRAGTYPE {String} - the type of drag - JSXDragType.
strDRAGID {String} - the CDF jsxid of the dragged record.
strDRAGIDS {Array<String>} - an array containing the CDF jsxids of the dragged records.
strRECORDID {String} - the CDF jsxid of the record that receives the drop.
bINSERTBEFORE {boolean} - whether the dropped record should be inserted before strRECORDID. Otherwise, it is appended as a child of strRECORDID.
objCOLUMN {jsx3.gui.Matrix.Column} - the column that receives the drop.
bALLOWADOPT {boolean} - whether the source of the dragged CDF record allows the adoption.

Ctrl Dropjsxctrldrop

Fires after the user drops a record on this matrix while pressing the Ctrl key. Canceling this event prevents the CDF adoption from occurring.
Cancelable: Evaluate to false to cancel event.

Context Variables

this {jsx3.gui.Matrix} - the object that publishes this event.
objEVENT {jsx3.gui.Event} - the browser event that triggers this event.
objSOURCE {jsx3.gui.Block} - the object where the drag begins.
strDRAGTYPE {String} - the type of drag - JSXDragType.
strDRAGID {String} - the CDF jsxid of the dragged record.
strDRAGIDS {Array<String>} - an array containing the CDF jsxids of the dragged records.
strRECORDID {String} - the CDF jsxid of the record that receives the drop.
bINSERTBEFORE {boolean} - whether the dropped record should be inserted before strRECORDID. Otherwise, it is appended as a child of strRECORDID.
objCOLUMN {jsx3.gui.Matrix.Column} - the column that receives the drop.
bALLOWADOPT {boolean} - whether the source of the dragged CDF record allows the adoption.

Adoptjsxadopt

Fires after a record from this matrix is adopted by another object and before the change is committed. Canceling this event prevents the CDF adoption from occurring.
Cancelable: Evaluate to false to cancel event.

Context Variables

this {jsx3.gui.Matrix} - the object that publishes this event.
objEVENT {jsx3.gui.Event} - the browser event that triggers this event.
strRECORDID {String} - the CDF jsxid of the record to adopt.
strRECORDIDS {Array<String>} - an array containing the jsxids of the records to adopt.
objTARGET {jsx3.xml.CDF} - the object that will adopt the record(s).
bCONTROL {boolean} - true if Ctrl Drop, false otherwise.

Spyglassjsxspy

Fires after the user hovers the mouse over this matrix and before the spyglass displays. The event script must evaluate to the HTML content to display in the spyglass. Canceling this event prevents the spyglass from displaying.
Cancelable: Evaluate to false to cancel event.

Context Variables

this {jsx3.gui.Matrix} - the object that publishes this event.
objEVENT {jsx3.gui.Event} - the browser event that triggers this event.
strRECORDID {String} - the CDF jsxid of the spied record.
objCOLUMN {jsx3.gui.Matrix.Column} - the column that receives the spy action.

Menujsxmenu

Fires after the user right-clicks this matrix and before the bound context menu displays. Canceling this event prevents the menu from displaying.
Cancelable: Evaluate to false to cancel event.

Context Variables

this {jsx3.gui.Matrix} - the object that publishes this event.
objEVENT {jsx3.gui.Event} - the browser event that triggers this event.
strRECORDID {String} - the CDF jsxid of the selected record.
objCOLUMN {jsx3.gui.Matrix.Column} - the column that receives the menu action.
objMENU {jsx3.gui.Menu} - the menu to display.

Return Fields

objMENU {jsx3.gui.Menu} - use this field to override the default menu with an instance of jsx3.gui.Menu.

Reorderjsxafterreorder

Fires after the user reorders columns of this matrix.

Context Variables

this {jsx3.gui.Matrix} - the object that publishes this event.
objEVENT {jsx3.gui.Event} - the browser event that triggers this event.
intOLDINDEX {int} - the index of the column before it is reordered.
intNEWINDEX {int} - the index of the column after it is reordered.

Before Sortjsxbeforesort

Fires when the user clicks on the header cell of a sortable column of this matrix and before the records are sorted. Canceling this event prevents the sort from occurring.
Cancelable: Evaluate to false to cancel event.

Context Variables

this {jsx3.gui.Matrix} - the object that publishes this event.
objEVENT {jsx3.gui.Event} - the browser event that triggers this event.
objCOLUMN {jsx3.gui.Matrix.Column} - the column just selected.
strSORTPATH {String} - the CDF attribute that this matrix is sorted on.
strSORTTYPE {String} - the data type assumed for the sort - jsx3.gui.Matrix.Column.TYPE_TEXT (jsxtext="Text") or jsx3.gui.Matrix.Column.TYPE_NUMBER (jsxtext="Numerical").

Return Fields

objCOLUMN {jsx3.gui.Matrix.Column} - use this field to sort on a column of this matrix other than the one that the user selected.

After Sortjsxaftersort

Fires after the user sorts this matrix.

Context Variables

this {jsx3.gui.Matrix} - the object that publishes this event.
objEVENT {jsx3.gui.Event} - the browser event that triggers this event.
objCOLUMN {jsx3.gui.Matrix.Column} - the column that this matrix is sorted on.
strSORTPATH {String} - the CDF attribute that this matrix is sorted on.
strSORTTYPE {String} - the data type assumed for the sort - jsx3.gui.Matrix.Column.TYPE_TEXT (jsxtext="Text") or jsx3.gui.Matrix.Column.TYPE_NUMBER (jsxtext="Numerical").

Before Resizejsxbeforeresize

Fires when the user depresses the mouse button on the resize divider of a column of this matrix. Canceling this event prevents the column from resizing.
Cancelable: Evaluate to false to cancel event.

Context Variables

this {jsx3.gui.Matrix} - the object that publishes this event.
objEVENT {jsx3.gui.Event} - the browser event that triggers this event.
intCOLUMNINDEX {int} - the index of the column being resized.

After Resizejsxafterresize

Fires when the user releases the mouse button after resizing a column of this matrix. Canceling this event prevents the column from resizing.
Cancelable: Evaluate to false to cancel event.

Context Variables

this {jsx3.gui.Matrix} - the object that publishes this event.
objEVENT {jsx3.gui.Event} - the browser event that triggers this event.
intCOLUMNINDEX {int} - the index of the column being resized.
vntWIDTH {int | String} - the width for the column in implied pixels or percentage.

Return Fields

vntWIDTH {int | String} - use this field to set the resulting column width to a value other than the width at which the user released the mouse.

Before Appendjsxbeforeappend

Fires when the user adds a new CDF record using the auto record interface and before the change is committed. Any modifications made to properties on objRECORD are persisted. Canceling this event prevents committing the new CDF record.
Cancelable: Evaluate to false to cancel event.

Context Variables

this {jsx3.gui.Matrix} - the object that publishes this event.
objEVENT {jsx3.gui.Event} - the browser event that triggers this event.
objRECORD {Object<String,String>} - the JavaScript object that becomes the CDF record.

After Appendjsxafterappend

Fires after the user adds a new CDF record to the model and view using the auto record interface.

Context Variables

this {jsx3.gui.Matrix} - the object that publishes this event.
objEVENT {jsx3.gui.Event} - the browser event that triggers this event.
objRECORDNODE {jx3.xml.Entity} - the CDF record that is appended.

Before Editjsxbeforeedit

Fires when the user begins an edit session in this matrix. Canceling this event prevents the edit mask from displaying.
Cancelable: Evaluate to false to cancel event.

Context Variables

this {jsx3.gui.Matrix} - the object that publishes this event.
objEVENT {jsx3.gui.Event} - the browser event that triggers this event.
strRECORDID {String} - the CDF jsxid of the selected record.
objCOLUMN {jsx3.gui.Matrix.Column} - the column.

Return Fields

objMASK {jsx3.gui.Matrix.EditMask} - specify the mask on a per-edit basis.

After Editjsxafteredit

Fires after the user finishes an edit session in this matrix and before an edit is committed. Canceling this event prevents committing the edit to the CDF record.
Cancelable: Evaluate to false to cancel event.

Context Variables

this {jsx3.gui.Matrix} - the object that publishes this event.
objEVENT {jsx3.gui.Event} - the browser event that triggers this event.
strRECORDID {String} - the CDF jsxid of the selected record.
objCOLUMN {jsx3.gui.Matrix.Column} - the column.
strNEWVALUE {String} - the new value for the cell.

Return Fields

strNEWVALUE {String} - override the new value before it is committed.

After Commitjsxaftercommit

Fires after the user commits an edit in this matrix.

Context Variables

this {jsx3.gui.Matrix} - the object that publishes this event.
objEVENT {jsx3.gui.Event} - the browser event that triggers this event.
strRECORDID {String} - the CDF jsxid of the selected record.
objCOLUMN {jsx3.gui.Matrix.Column} - the column.
strVALUE {String} - the new value for the cell.

Togglejsxtoggle

Fires when the user expands or collapses a node in this hierarchically rendered matrix.

Context Variables

this {jsx3.gui.Matrix} - the object that publishes this event.
objEVENT {jsx3.gui.Event} - the browser event that triggers this event.
strRECORDID {String} - the CDF jsxid of the toggled CDF record.
objRECORD {jsx3.xml.Entity} - the CDF node for the toggled CDF record.
bOPEN {boolean} - new open value for the CDF record.

Scrolljsxscroll

Fires after the user scrolls the data area of this matrix.

Context Variables

this {jsx3.gui.Matrix} - the object that publishes this event.
objEVENT {jsx3.gui.Event} - the browser event that triggers this event.
strDIRECTION {String} - the direction of the scrolling, 'horizontal' or 'vertical'.
intPOSITION {int} - the position of the scrollbar in implied pixels.

Destroyjsxdestroy

Fires after this matrix is removed from the DOM.

Context Variables

this {jsx3.gui.Matrix} - the object that publishes this event.
objPARENT {jsx3.app.Model} - the parent of this matrix before it is removed from the DOM.