{hidden}
DO NOT EDIT THE CONTENT OF THIS PAGE DIRECTLY, UNLESS YOU KNOW WHAT YOU'RE DOING.
THE STRUCTURE OF THE CONTENT IS VITAL IN BEING ABLE TO EXTRACT CHANGES FROM THE PAGE AND MERGE THEM BACK INTO SERVOY SOURCE{hidden}
{sub-section:description|text=}{sub-section}\\
{table:id=|class=servoy sSummery}{colgroup}{column:padding=0px|width=80px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Constants SummarySummery{th}{tr}{tbody}{tr}{td}[String]{td}{td}[#ACTION]
Constant returned by JSEvent.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#DATACHANGE]
Constant returned by JSEvent.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#DOUBLECLICK]
Constant returned by JSEvent.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#FOCUSGAINED]
Constant returned by JSEvent.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#FOCUSLOST]
Constant returned by JSEvent.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#FORM]
Constant returned by JSEvent.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#MODIFIER_ALT]
Constant for the ALT modifier that can be returned by JSEvent.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#MODIFIER_CTRL]
Constant for the CTRL modifier that can be returned by JSEvent.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#MODIFIER_META]
Constant for the META modifier that can be returned by JSEvent.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#MODIFIER_SHIFT]
Constant for the SHIFT modifier that can be returned by JSEvent.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#NONE]
Constant returned by JSEvent.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#ONDRAG]
Constant returned by JSEvent.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#ONDRAGOVER]
Constant returned by JSEvent.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#ONDROP]
Constant returned by JSEvent.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#RIGHTCLICK]
Constant returned by JSEvent.{td}{tr}{tbody}{table}\\
{table:id=|class=servoy sSummery}{colgroup}{column:padding=0px|width=80px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Property SummarySummery{th}{tr}{tbody}{tr}{td}[Object]{td}{td}[#data]
A data object that specific events can set, a user can set data back to the system for events that supports this.{td}{tr}{tbody}{table}\\
{table:id=|class=servoy sSummery}{colgroup}{column:padding=0px|width=80px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Method SummarySummery{th}{tr}{tbody}{tr}{td}[String]{td}{td}[#getElementName]\()
returns the name of the element, can be null if the form was the source of the event.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#getFormName]\()
returns the name of the form the element was placed on.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#getModifiers]\()
Returns the modifiers of the event, see JSEvent.{td}{tr}{tbody}{tbody}{tr}{td}[Object]{td}{td}[#getSource]\()
returns the source component/element of the event.{td}{tr}{tbody}{tbody}{tr}{td}[Date]{td}{td}[#getTimestamp]\()
Returns the time the event occurred.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#getType]\()
returns the event type see the JSEvents constants what it can return.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#getX]\()
Returns the x position of the event if applicable.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#getY]\()
Returns the x position of the event if applicable.{td}{tr}{tbody}{table}\\
{table:id=constant|class=servoy sDetail}{colgroup}{column:padding=0px|width=100%}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Constants Details{th}{tr}{tbody:id=E16DB3D9-3EFD-41CA-958F-F10539F8027CACTION|class=node}{tr:id=name}{td}h6.ACTION{td}{tr}{tr:id=des}{td}{sub-section:E16DB3D9-3EFD-41CA-958F-F10539F8027CACTION_des|text=|trigger=button}{sub-section}{sub-section:E16DB3D9-3EFD-41CA-958F-F10539F8027CACTION_des|trigger=none|class=sIndent}Constant returned by JSEvent.getType() in a method that is attached to an onAction event.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prssnc}{td}*ParametersSince*\\{sub-section:E16DB3D9-3EFD-41CA-958F-F10539F8027C_prsACTION_snc|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:E16DB3D9-3EFD-41CA-958F-F10539F8027C_prsACTION_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=retprs}{td}*ReturnsParameters*\\{sub-section:E16DB3D9-3EFD-41CA-958F-F10539F8027C_retACTION_prs|text=|trigger=button}{sub-section}{sub-section:E16DB3D9-3EFD-41CA-958F-F10539F8027C_retACTION_prs|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=seeret}{td}*Also seeReturns*\\{sub-section:E16DB3D9-3EFD-41CA-958F-F10539F8027C_seeACTION_ret|text=|trigger=button}{sub-section}{sub-section:E16DB3D9-3EFD-41CA-958F-F10539F8027C_seeACTION_ret|trigger=none|class=sIndent|trigger=none}}[String]{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=linksee}{td}*ExternalAlso linkssee*\\{sub-section:E16DB3D9-3EFD-41CA-958F-F10539F8027CACTION_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:E16DB3D9-3EFD-41CA-958F-F10539F8027C_link|class=sIndent|ACTION_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=samlink}{td}*SampleExternal links*\\{sub-section:E16DB3D9-3EFD-41CA-958F-F10539F8027C_samACTION_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:E16DB3D9-3EFD-41CA-958F-F10539F8027C_sam|class=sIndentACTION_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:ACTION_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:ACTION_sam|trigger=none}{code:language=javascript}
if (event.getType() == JSEvent.ACTION)
{
// its an action event.
}
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=692556B5-8205-4686-A7E1-31C00BB8C312DATACHANGE|class=node}{tr:id=name}{td}h6.DATACHANGE{td}{tr}{tr:id=des}{td}{sub-section:692556B5-8205-4686-A7E1-31C00BB8C312DATACHANGE_des|text=|trigger=button}{sub-section}{sub-section:692556B5-8205-4686-A7E1-31C00BB8C312DATACHANGE_des|trigger=none|class=sIndent}Constant returned by JSEvent.getType() in a method that is attached to an onDataChange event.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prssnc}{td}*ParametersSince*\\{sub-section:692556B5-8205-4686-A7E1-31C00BB8C312_prsDATACHANGE_snc|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:692556B5-8205-4686-A7E1-31C00BB8C312_prsDATACHANGE_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{divtd}{tdtr}{trbuilder-show}{builder-show:permission=edit}{tr:id=retprs}{td}*ReturnsParameters*\\{sub-section:692556B5-8205-4686-A7E1-31C00BB8C312_retDATACHANGE_prs|text=|trigger=button}{sub-section}{sub-section:692556B5-8205-4686-A7E1-31C00BB8C312_retDATACHANGE_prs|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=seeret}{td}*Also seeReturns*\\{sub-section:692556B5-8205-4686-A7E1-31C00BB8C312_seeDATACHANGE_ret|text=|trigger=button}{sub-section}{sub-section:692556B5-8205-4686-A7E1-31C00BB8C312_seeDATACHANGE_ret|trigger=none|class=sIndent|trigger=none}}[String]{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=linksee}{td}*ExternalAlso linkssee*\\{sub-section:692556B5-8205-4686-A7E1-31C00BB8C312DATACHANGE_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:692556B5-8205-4686-A7E1-31C00BB8C312_link|class=sIndentDATACHANGE_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:DATACHANGE_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:DATACHANGE_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:692556B5-8205-4686-A7E1-31C00BB8C312DATACHANGE_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:692556B5-8205-4686-A7E1-31C00BB8C312DATACHANGE_sam|class=sIndent|trigger=none}{code:language=javascript}
if (event.getType() == JSEvent.DATACHANGE)
{
// its a data change event
}
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=4F0CCEF9-6438-450D-B939-7FEF8EB56C92=DOUBLECLICK|class=node}{tr:id=name}{td}h6.DOUBLECLICK{td}{tr}{tr:id=des}{td}{sub-section:4F0CCEF9-6438-450D-B939-7FEF8EB56C92DOUBLECLICK_des|text=|trigger=button}{sub-section}{sub-section:4F0CCEF9-6438-450D-B939-7FEF8EB56C92DOUBLECLICK_des|trigger=none|class=sIndent}Constant returned by JSEvent.getType() in a method that is attached to an onDoubleClick event.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prssnc}{td}*ParametersSince*\\{sub-section:DOUBLECLICK_snc|text=|trigger=button}{sub-section}{sub-section:4F0CCEF9-6438-450D-B939-7FEF8EB56C92DOUBLECLICK_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:DOUBLECLICK_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:4F0CCEF9-6438-450D-B939-7FEF8EB56C92DOUBLECLICK_prs|trigger=none|class=sIndent}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:4F0CCEF9-6438-450D-B939-7FEF8EB56C92DOUBLECLICK_ret|text=|trigger=button}{sub-section}{sub-section:4F0CCEF9-6438-450D-B939-7FEF8EB56C92DOUBLECLICK_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:4F0CCEF9-6438-450D-B939-7FEF8EB56C92DOUBLECLICK_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:4F0CCEF9-6438-450D-B939-7FEF8EB56C92DOUBLECLICK_see|class=sIndent|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:4F0CCEF9-6438-450D-B939-7FEF8EB56C92_seeDOUBLECLICK_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:4F0CCEF9-6438-450D-B939-7FEF8EB56C92DOUBLECLICK_link|class=sIndent|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:4F0CCEF9-6438-450D-B939-7FEF8EB56C92DOUBLECLICK_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:4F0CCEF9-6438-450D-B939-7FEF8EB56C92DOUBLECLICK_sam|class=sIndent|trigger=none}{code:language=javascript}
if (event.getType() == JSEvent.DOUBLECLICK)
{
// its a double click event.
}
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=9E7C3056-C7F5-4202-A5A7-41B13CF23D8CFOCUSGAINED|class=node}{tr:id=name}{td}h6.FOCUSGAINED{td}{tr}{tr:id=des}{td}{sub-section:9E7C3056-C7F5-4202-A5A7-41B13CF23D8CFOCUSGAINED_des|text=|trigger=button}{sub-section}{sub-section:9E7C3056-C7F5-4202-A5A7-41B13CF23D8CFOCUSGAINED_des|trigger=none|class=sIndent}Constant returned by JSEvent.getType() in a method that is attached to an onFocusGained or the forms onElementFocusGained event.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prssnc}{td}*ParametersSince*\\{sub-section:9E7C3056-C7F5-4202-A5A7-41B13CF23D8CFOCUSGAINED_snc|text=|trigger=button}{sub-section}{sub-section:FOCUSGAINED_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:FOCUSGAINED_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:9E7C3056-C7F5-4202-A5A7-41B13CF23D8CFOCUSGAINED_prs|trigger=none|class=sIndent}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:9E7C3056-C7F5-4202-A5A7-41B13CF23D8CFOCUSGAINED_ret|text=|trigger=button}{sub-section}{sub-section:9E7C3056-C7F5-4202-A5A7-41B13CF23D8CFOCUSGAINED_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:9E7C3056-C7F5-4202-A5A7-41B13CF23D8CFOCUSGAINED_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:9E7C3056-C7F5-4202-A5A7-41B13CF23D8CFOCUSGAINED_see|class=sIndent|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:9E7C3056-C7F5-4202-A5A7-41B13CF23D8C_seeFOCUSGAINED_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:9E7C3056-C7F5-4202-A5A7-41B13CF23D8CFOCUSGAINED_link|class=sIndent|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:9E7C3056-C7F5-4202-A5A7-41B13CF23D8CFOCUSGAINED_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:9E7C3056-C7F5-4202-A5A7-41B13CF23D8CFOCUSGAINED_sam|class=sIndent|trigger=none}{code:language=javascript}
if (event.getType() == JSEvent.FOCUSGAINED)
{
// its a focus gained event.
}
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=AB205672-BCD9-48F2-89D5-FEBCEC22EC60FOCUSLOST|class=node}{tr:id=name}{td}h6.FOCUSLOST{td}{tr}{tr:id=des}{td}{sub-section:AB205672-BCD9-48F2-89D5-FEBCEC22EC60FOCUSLOST_des|text=|trigger=button}{sub-section}{sub-section:AB205672-BCD9-48F2-89D5-FEBCEC22EC60FOCUSLOST_des|trigger=none|class=sIndent}Constant returned by JSEvent.getType() in a method that is attached to an onFocusLost or the forms onElementFocusLost event.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prssnc}{td}*ParametersSince*\\{sub-section:AB205672-BCD9-48F2-89D5-FEBCEC22EC60FOCUSLOST_snc|text=|trigger=button}{sub-section}{sub-section:FOCUSLOST_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:FOCUSLOST_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:AB205672-BCD9-48F2-89D5-FEBCEC22EC60FOCUSLOST_prs|trigger=none|class=sIndent}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:AB205672-BCD9-48F2-89D5-FEBCEC22EC60FOCUSLOST_ret|text=|trigger=button}{sub-section}{sub-section:AB205672-BCD9-48F2-89D5-FEBCEC22EC60FOCUSLOST_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:AB205672-BCD9-48F2-89D5-FEBCEC22EC60FOCUSLOST_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:AB205672-BCD9-48F2-89D5-FEBCEC22EC60FOCUSLOST_see|class=sIndent|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:AB205672-BCD9-48F2-89D5-FEBCEC22EC60_seeFOCUSLOST_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:AB205672-BCD9-48F2-89D5-FEBCEC22EC60FOCUSLOST_link|class=sIndent|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:AB205672-BCD9-48F2-89D5-FEBCEC22EC60FOCUSLOST_sam|text=|trigger=button}{sub-section-section}{div:class=sIndent}{sub-section:AB205672-BCD9-48F2-89D5-FEBCEC22EC60FOCUSLOST_sam|class=sIndent|trigger=none}{code:language=javascript}
if (event.getType() == JSEvent.FOCUSLOST)
{
// its a focus lost event.
}
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=FEDD2F32-369F-434C-A967-DFD837C0839BFORM|class=node}{tr:id=name}{td}h6.FORM{td}{tr}{tr:id=des}{td}{sub-section:FEDD2F32-369F-434C-A967-DFD837C0839BFORM_des|text=|trigger=button}{sub-section}{sub-section:FEDD2F32-369F-434C-A967-DFD837C0839BFORM_des|trigger=none|class=sIndent}Constant returned by JSEvent.getType() in a method that is attached to a form event (like onShow) or command (like onDeleteRecord)){sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:FORM_snc|text=|trigger=button}{sub-section}{sub-section:FORM_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:FEDD2F32-369F-434C-A967-DFD837C0839BFORM_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:FEDD2F32-369F-434C-A967-DFD837C0839BFORM_prs|trigger=none|class=sIndent}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:FEDD2F32-369F-434C-A967-DFD837C0839BFORM_ret|text=|trigger=button}{sub-section}{sub-section:FEDD2F32-369F-434C-A967-DFD837C0839BFORM_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:FEDD2F32-369F-434C-A967-DFD837C0839BFORM_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:FEDD2F32-369F-434C-A967-DFD837C0839BFORM_see|class=sIndent|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:FEDD2F32-369F-434C-A967-DFD837C0839B_seeFORM_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:FEDD2F32-369F-434C-A967-DFD837C0839BFORM_link|class=sIndent|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:FEDD2F32-369F-434C-A967-DFD837C0839BFORM_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:FEDD2F32-369F-434C-A967-DFD837C0839BFORM_sam|class=sIndent|trigger=none}{code:language=javascript}
if (event.getType() == JSEvent.FORM)
{
// its a form event or command
}
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=ABB1337B-14AD-41AD-AC4E-6F559FCB765A}{tr:id=name}{td}h6.MODIFIER_ALT{td}{trMODIFIER_ALT|class=node}{tr:id=name}{td}h6.MODIFIER_ALT{td}{tr}{tr:id=des}{td}{sub-section:MODIFIER_ALT_des|text=|trigger=button}{sub-section}{sub-section:MODIFIER_ALT_des|trigger=none|class=sIndent}Constant for the ALT modifier that can be returned by JSEvent.getModifiers();{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=dessnc}{td}*Since*\\{sub-section:ABB1337B-14AD-41AD-AC4E-6F559FCB765A_desMODIFIER_ALT_snc|text=|trigger=button}{sub-section}{sub-section:ABB1337B-14AD-41AD-AC4E-6F559FCB765A_desMODIFIER_ALT_snc|trigger=none|class=sIndent}Constant forReplace thewith ALT modifier that can be returned by JSEvent.getModifiers();version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:ABB1337B-14AD-41AD-AC4E-6F559FCB765AMODIFIER_ALT_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:ABB1337B-14AD-41AD-AC4E-6F559FCB765AMODIFIER_ALT_prs|trigger=none|class=sIndent}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:ABB1337B-14AD-41AD-AC4E-6F559FCB765AMODIFIER_ALT_ret|text=|trigger=button}{sub-section}{sub-section:ABB1337B-14AD-41AD-AC4E-6F559FCB765AMODIFIER_ALT_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:ABB1337B-14AD-41AD-AC4E-6F559FCB765AMODIFIER_ALT_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:ABB1337B-14AD-41AD-AC4E-6F559FCB765AMODIFIER_ALT_see|class=sIndent|trigger=none}[JSEvent.getModifiers|JSEvent#getModifiers]\\ {sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:ABB1337B-14AD-41AD-AC4E-6F559FCB765A_seeMODIFIER_ALT_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:ABB1337B-14AD-41AD-AC4E-6F559FCB765AMODIFIER_ALT_link|class=sIndent|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:ABB1337B-14AD-41AD-AC4E-6F559FCB765AMODIFIER_ALT_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:ABB1337B-14AD-41AD-AC4E-6F559FCB765AMODIFIER_ALT_sam|class=sIndent|trigger=none}{code:language=javascript}
//test if the SHIFT modifier is used.
if (event.getModifiers() & JSEvent.MODIFIER_SHIFT)
{
//do shift action
}
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=86EA9E97-8B01-4440-B19B-14A911CEED0F=MODIFIER_CTRL|class=node}{tr:id=name}{td}h6.MODIFIER_CTRL{td}{tr}{tr:id=des}{td}{sub-section:86EA9E97-8B01-4440-B19B-14A911CEED0FMODIFIER_CTRL_des|text=|trigger=button}{sub-section}{sub-section:86EA9E97-8B01-4440-B19B-14A911CEED0FMODIFIER_CTRL_des|trigger=none|class=sIndent}Constant for the CTRL modifier that can be returned by JSEvent.getModifiers();{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prssnc}{td}*ParametersSince*\\{sub-section:86EA9E97-8B01-4440-B19B-14A911CEED0F_prsMODIFIER_CTRL_snc|text=|trigger=button}{sub-section}{div:sub-section:MODIFIER_CTRL_snc|trigger=none|class=sIndent} Replace with version info{sub-section:86EA9E97-8B01-4440-B19B-14A911CEED0F}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:MODIFIER_CTRL_prs|text=|trigger=button}{sub-section}{sub-section:MODIFIER_CTRL_prs|trigger=none|class=sIndent}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:86EA9E97-8B01-4440-B19B-14A911CEED0FMODIFIER_CTRL_ret|text=|trigger=button}{sub-section}{sub-section:86EA9E97-8B01-4440-B19B-14A911CEED0FMODIFIER_CTRL_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:86EA9E97-8B01-4440-B19B-14A911CEED0FMODIFIER_CTRL_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:86EA9E97-8B01-4440-B19B-14A911CEED0FMODIFIER_CTRL_see|class=sIndent|trigger=none}[JSEvent.getModifiers|JSEvent#getModifiers]\\ {sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:86EA9E97-8B01-4440-B19B-14A911CEED0F_seeMODIFIER_CTRL_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:86EA9E97-8B01-4440-B19B-14A911CEED0FMODIFIER_CTRL_link|class=sIndent|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:86EA9E97-8B01-4440-B19B-14A911CEED0FMODIFIER_CTRL_sam|text=|trigger=button}{sub-section-section}{div:class=sIndent}{sub-section:86EA9E97-8B01-4440-B19B-14A911CEED0FMODIFIER_CTRL_sam|class=sIndent|trigger=none}{code:language=javascript}
//test if the SHIFT modifier is used.
if (event.getModifiers() & JSEvent.MODIFIER_SHIFT)
{
//do shift action
}
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=A29979ED-49CE-42FC-B98F-FBA39A3126E1MODIFIER_META|class=node}{tr:id=name}{td}h6.MODIFIER_META{td}{tr}{tr:id=des=des}{td}{sub-section:MODIFIER_META_des|text=|trigger=button}{sub-section}{sub-section:MODIFIER_META_des|trigger=none|class=sIndent}Constant for the META modifier that can be returned by JSEvent.getModifiers();{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:A29979ED-49CE-42FC-B98F-FBA39A3126E1_desMODIFIER_META_snc|text=|trigger=button}{sub-section}{sub-section:A29979ED-49CE-42FC-B98F-FBA39A3126E1_desMODIFIER_META_snc|trigger=none|class=sIndent}Constant forReplace thewith META modifier that can be returned by JSEvent.getModifiers();version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:A29979ED-49CE-42FC-B98F-FBA39A3126E1MODIFIER_META_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:A29979ED-49CE-42FC-B98F-FBA39A3126E1MODIFIER_META_prs|trigger=none|class=sIndent}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:A29979ED-49CE-42FC-B98F-FBA39A3126E1MODIFIER_META_ret|text=|trigger=button}{sub-section}{sub-section:A29979ED-49CE-42FC-B98F-FBA39A3126E1MODIFIER_META_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:A29979ED-49CE-42FC-B98F-FBA39A3126E1-section:MODIFIER_META_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:A29979ED-49CE-42FC-B98F-FBA39A3126E1MODIFIER_META_see|class=sIndent|trigger=none}[JSEvent.getModifiers|JSEvent#getModifiers]\\ {sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:A29979ED-49CE-42FC-B98F-FBA39A3126E1_seeMODIFIER_META_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:A29979ED-49CE-42FC-B98F-FBA39A3126E1MODIFIER_META_link|class=sIndent|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:A29979ED-49CE-42FC-B98F-FBA39A3126E1MODIFIER_META_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:A29979ED-49CE-42FC-B98F-FBA39A3126E1MODIFIER_META_sam|class=sIndent|trigger=none}{code:language=javascript}
//test if the SHIFT modifier is used.
if (event.getModifiers() & JSEvent.MODIFIER_SHIFT)
{
//do shift action
}
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=85C60CA9-C555-4C86-B100-B4C1D9CA7BD9MODIFIER_SHIFT|class=node}{tr:id=name}{td}h6.MODIFIER_SHIFT{td}{tr}{tr:id=des}{td}{sub-section:85C60CA9-C555-4C86-B100-B4C1D9CA7BD9{sub-section:MODIFIER_SHIFT_des|text=|trigger=button}{sub-section}{sub-section:85C60CA9-C555-4C86-B100-B4C1D9CA7BD9MODIFIER_SHIFT_des|trigger=none|class=sIndent}Constant for the SHIFT modifier that can be returned by JSEvent.getModifiers();{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prssnc}{td}*ParametersSince*\\{sub-section:85C60CA9-C555-4C86-B100-B4C1D9CA7BD9_prsMODIFIER_SHIFT_snc|text=|trigger=button}{sub-section}{div:sub-section:MODIFIER_SHIFT_snc|trigger=none|class=sIndent} Replace with version info{sub-section:85C60CA9-C555-4C86-B100-B4C1D9CA7BD9_prs|trigger=none}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:MODIFIER_SHIFT_prs|text=|trigger=button}{sub-section}{sub-section:MODIFIER_SHIFT_prs|trigger=none|class=sIndent}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:85C60CA9-C555-4C86-B100-B4C1D9CA7BD9MODIFIER_SHIFT_ret|text=|trigger=button}{sub-section}{sub-section:85C60CA9-C555-4C86-B100-B4C1D9CA7BD9MODIFIER_SHIFT_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:85C60CA9-C555-4C86-B100-B4C1D9CA7BD9MODIFIER_SHIFT_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:85C60CA9-C555-4C86-B100-B4C1D9CA7BD9MODIFIER_SHIFT_see|class=sIndent|trigger=none}[JSEvent.getModifiers|JSEvent#getModifiers]\\ {sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:85C60CA9-C555-4C86-B100-B4C1D9CA7BD9_seeMODIFIER_SHIFT_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:85C60CA9-C555-4C86-B100-B4C1D9CA7BD9MODIFIER_SHIFT_link|class=sIndent|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:85C60CA9-C555-4C86-B100-B4C1D9CA7BD9MODIFIER_SHIFT_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:85C60CA9-C555-4C86-B100-B4C1D9CA7BD9MODIFIER_SHIFT_sam|class=sIndent|trigger=none}{code:language=javascript}
//test if the SHIFT modifier is used.
if (event.getModifiers() & JSEvent.MODIFIER_SHIFT)
{
//do shift action
}
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=33149267-D206-478F-B5E1-674B6C496E4DNONE|class=node}{tr:id=name}{td}h6.NONE{td}{tr}{tr:id=des}{td}{sub-section:33149267-D206-478F-B5E1-674B6C496E4DNONE_des|text=|trigger=button}{sub-section}{sub-section:33149267-D206-478F-B5E1-674B6C496E4DNONE_des|trigger=none|class=sIndent}Constant returned by JSEvent.getType() if the event is not used in a known event or command.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prssnc}{td}*ParametersSince*\\{sub-section:33149267-D206-478F-B5E1-674B6C496E4D_prsNONE_snc|text=|trigger=button}{sub-section}{div:sub-section:NONE_snc|trigger=none|class=sIndent} Replace with version info{sub-section:33149267-D206-478F-B5E1-674B6C496E4D}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:NONE_prs|text=|trigger=button}{sub-section}{sub-section:NONE_prs|trigger=none|class=sIndent}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:33149267-D206-478F-B5E1-674B6C496E4DNONE_ret|text=|trigger=button}{sub-section}{sub-section:33149267-D206-478F-B5E1-674B6C496E4DNONE_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:33149267-D206-478F-B5E1-674B6C496E4DNONE_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:33149267-D206-478F-B5E1-674B6C496E4DNONE_see|class=sIndent|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:33149267-D206-478F-B5E1-674B6C496E4D_seeNONE_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:33149267-D206-478F-B5E1-674B6C496E4DNONE_link|class=sIndent|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:33149267-D206-478F-B5E1-674B6C496E4DNONE_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:33149267-D206-478F-B5E1-674B6C496E4D_sam|class=sIndentNONE_sam|trigger=none}{code:language=javascript}
if (event.getType() == JSEvent.NONE)
{
// type is not set.
}
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=8069184A-BC38-4461-A307-37E9BFA9DE0E=ONDRAG|class=node}{tr:id=name}{td}h6.ONDRAG{td}{tr}{tr:id=des}{td}{sub-section:8069184A-BC38-4461-A307-37E9BFA9DE0EONDRAG_des|text=|trigger=button}{sub-section}{sub-section:8069184A-BC38-4461-A307-37E9BFA9DE0EONDRAG_des|trigger=none|class=sIndent}Constant returned by JSEvent.getType() in a method that is attached to an onDrag event.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prssnc}{td}*ParametersSince*\\{sub-section:ONDRAG_snc|text=|trigger=button}{sub-section:8069184A-BC38-4461-A307-37E9BFA9DE0E}{sub-section:ONDRAG_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:ONDRAG_prs|text=|trigger=button}{sub-section}{div:class=sIndentsection}{sub-section:8069184A-BC38-4461-A307-37E9BFA9DE0EONDRAG_prs|trigger=none|class=sIndent}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:8069184A-BC38-4461-A307-37E9BFA9DE0EONDRAG_ret|text=|trigger=button}{sub-section}{sub-section:8069184A-BC38-4461-A307-37E9BFA9DE0EONDRAG_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:8069184A-BC38-4461-A307-37E9BFA9DE0EONDRAG_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:8069184A-BC38-4461-A307-37E9BFA9DE0EONDRAG_see|class=sIndent|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:8069184A-BC38-4461-A307-37E9BFA9DE0E_seeONDRAG_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:8069184A-BC38-4461-A307-37E9BFA9DE0EONDRAG_link|class=sIndent|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:8069184A-BC38-4461-A307-37E9BFA9DE0EONDRAG_sam|text=|trigger=button}{sub-section}{sub-section:8069184A-BC38-4461-A307-37E9BFA9DE0Ediv:class=sIndent}{sub-section:ONDRAG_sam|class=sIndent|trigger=none}{code:language=javascript}
if (event.getType() == JSEvent.ONDRAG)
{
// its an ondrag event
if (event.getElementName() == 'todragelement')
return DRAGNDROP.COPY
}
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=E8097F7D-567E-4AD6-9A30-A41380CBDF22ONDRAGOVER|class=node}{tr:id=name}{td}h6.ONDRAGOVER{td}{tr}{tr:id=des}{td}{sub-section:E8097F7D-567E-4AD6-9A30-A41380CBDF22ONDRAGOVER_des|text=|trigger=button}{sub-section}{sub-section:E8097F7D-567E-4AD6-9A30-A41380CBDF22ONDRAGOVER_des|trigger=none|class=sIndent}Constant returned by JSEvent.getType() in a method that is attached to an onDragOver event.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prssnc}{td}*ParametersSince*\\{sub-section:E8097F7D-567E-4AD6-9A30-A41380CBDF22_prsONDRAGOVER_snc|text=|trigger=button}{sub-section}{div:sub-section:ONDRAGOVER_snc|trigger=none|class=sIndent} Replace with version info{sub-section:E8097F7D-567E-4AD6-9A30-A41380CBDF22}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:ONDRAGOVER_prs|text=|trigger=button}{sub-section}{sub-section:ONDRAGOVER_prs|trigger=none|class=sIndent}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:E8097F7D-567E-4AD6-9A30-A41380CBDF22ONDRAGOVER_ret|text=|trigger=button}{sub-section}{sub-section:E8097F7D-567E-4AD6-9A30-A41380CBDF22ONDRAGOVER_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:E8097F7D-567E-4AD6-9A30-A41380CBDF22ONDRAGOVER_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:E8097F7D-567E-4AD6-9A30-A41380CBDF22ONDRAGOVER_see|class=sIndent|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:E8097F7D-567E-4AD6-9A30-A41380CBDF22_seeONDRAGOVER_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:E8097F7D-567E-4AD6-9A30-A41380CBDF22ONDRAGOVER_link|class=sIndent|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:E8097F7D-567E-4AD6-9A30-A41380CBDF22ONDRAGOVER_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:E8097F7D-567E-4AD6-9A30-A41380CBDF22ONDRAGOVER_sam|class=sIndent|trigger=none}{code:language=javascript}
if (event.getType() == JSEvent.ONDRAGOVER)
{
// its an on drag over event.
// return true if it over the right element.
return event.getElementName() == 'candroponelement';
}
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=55074B28-8A43-445E-966F-4CB944B22E9EONDROP|class=node}{tr:id=name}{td}h6.ONDROP{td}{tr}{tr:id=des}{td}{sub-section:55074B28-8A43-445E-966F-4CB944B22E9EONDROP_des|text=|trigger=button}{sub-section}{sub-section:55074B28-8A43-445E-966F-4CB944B22E9EONDROP_des|trigger=none|class=sIndent}Constant returned by JSEvent.getType() in a method that is attached to an onDrop event.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prssnc}{td}*ParametersSince*\\{sub-section:55074B28-8A43-445E-966F-4CB944B22E9E_prsONDROP_snc|text=|trigger=button}{sub-section}{div:sub-section:ONDROP_snc|trigger=none|class=sIndent} Replace with version info{sub-section:55074B28-8A43-445E-966F-4CB944B22E9E}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:ONDROP_prs|text=|trigger=button}{sub-section}{sub-section:ONDROP_prs|trigger=none|class=sIndent}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:55074B28-8A43-445E-966F-4CB944B22E9EONDROP_ret|text=|trigger=button}{sub-section}{sub-section:55074B28-8A43-445E-966F-4CB944B22E9EONDROP_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:55074B28-8A43-445E-966F-4CB944B22E9EONDROP_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:55074B28-8A43-445E-966F-4CB944B22E9EONDROP_see|class=sIndent|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:55074B28-8A43-445E-966F-4CB944B22E9E_seeONDROP_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:55074B28-8A43-445E-966F-4CB944B22E9EONDROP_link|class=sIndent|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:55074B28-8A43-445E-966F-4CB944B22E9EONDROP_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:55074B28-8A43-445E-966F-4CB944B22E9EONDROP_sam|class=sIndent|trigger=none}{code:language=javascript}
if (event.getType() == JSEvent.ONDROP)
{
// its a on drop event.
var element = elements[event.getElementName()];
// do drop on element
return true;
}
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=9A82F59B-C497-465F-BDE4-25CFFA00F299RIGHTCLICK|class=node}{tr:id=name}{td}h6.RIGHTCLICK{td}{tr}{tr:id=des}{td}{sub-section:9A82F59B-C497-465F-BDE4-25CFFA00F299RIGHTCLICK_des|text=|trigger=button}{sub-section}{sub-section:9A82F59B-C497-465F-BDE4-25CFFA00F299RIGHTCLICK_des|trigger=none|class=sIndent}Constant returned by JSEvent.getType() in a method that is attached to an onRightClick event.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prssnc}{td}*ParametersSince*\\{sub-section:9A82F59B-C497-465F-BDE4-25CFFA00F299_prsRIGHTCLICK_snc|text=|trigger=button}{sub-section}{div:sub-section:RIGHTCLICK_snc|trigger=none|class=sIndent} Replace with version info{sub-section:9A82F59B-C497-465F-BDE4-25CFFA00F299}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:RIGHTCLICK_prs|text=|trigger=button}{sub-section}{sub-section:RIGHTCLICK_prs|trigger=none|class=sIndent}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:9A82F59B-C497-465F-BDE4-25CFFA00F299RIGHTCLICK_ret|text=|trigger=button}{sub-section}{sub-section:9A82F59B-C497-465F-BDE4-25CFFA00F299RIGHTCLICK_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:9A82F59B-C497-465F-BDE4-25CFFA00F299RIGHTCLICK_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:9A82F59B-C497-465F-BDE4-25CFFA00F299RIGHTCLICK_see|class=sIndent|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:9A82F59B-C497-465F-BDE4-25CFFA00F299_seeRIGHTCLICK_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:9A82F59B-C497-465F-BDE4-25CFFA00F299RIGHTCLICK_link|class=sIndent|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:9A82F59B-C497-465F-BDE4-25CFFA00F299RIGHTCLICK_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:9A82F59B-C497-465F-BDE4-25CFFA00F299RIGHTCLICK_sam|class=sIndent|trigger=none}{code:language=javascript}
if (event.getType() == JSEvent.RIGHTCLICK)
{
// its a right click event.
}
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table}\\
{table:id=property|class=servoy sDetail}{colgroup}{column:padding=0px|width=100%}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Property Details{th}{tr}{tbody:id=2C520D62-1E51-4B24-BB57-D3CD05A0F8E8id=data|class=node}{tr:id=name}{td}h6.data{td}{tr}{tr:id=des}{td}{sub-section:2C520D62-1E51-4B24-BB57-D3CD05A0F8E8data_des|text=|trigger=button}{sub-section}{sub-section:2C520D62-1E51-4B24-BB57-D3CD05A0F8E8data_des|trigger=none|class=sIndent}A data object that specific events can set, a user can set data back to the system for events that supports this.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prssnc}{td}*ParametersSince*\\{sub-section:2C520D62-1E51-4B24-BB57-D3CD05A0F8E8_prsdata_snc|text=|trigger=button}{sub-section}{div:sub-section:data_snc|trigger=none|class=sIndent} Replace with version info{sub-section:2C520D62-1E51-4B24-BB57-D3CD05A0F8E8_prs|trigger=none}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:data_prs|text=|trigger=button}{sub-section}{sub-section:data_prs|trigger=none|class=sIndent}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:2C520D62-1E51-4B24-BB57-D3CD05A0F8E8data_ret|text=|trigger=button}{sub-section}{sub-section:2C520D62-1E51-4B24-BB57-D3CD05A0F8E8data_ret|trigger=none|class=sIndent}[Object]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:2C520D62-1E51-4B24-BB57-D3CD05A0F8E8data_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:2C520D62-1E51-4B24-BB57-D3CD05A0F8E8data_see|class=sIndent|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:2C520D62-1E51-4B24-BB57-D3CD05A0F8E8_seedata_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:2C520D62-1E51-4B24-BB57-D3CD05A0F8E8data_link|class=sIndent|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:2C520D62-1E51-4B24-BB57-D3CD05A0F8E8data_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:2C520D62-1E51-4B24-BB57-D3CD05A0F8E8data_sam|class=sIndent|trigger=none}{code:language=javascript}
// A client design method that handles ondrag
if (event.getType() == JSEvent.ONDRAG)
{
// the data is the selected elements array
var elements = event.data;
// only start a client design drag when there is 1 element
if (elements.length == 1)
{
return true;
}
}
// code for a data drag method
event.data = "drag me!";
return DRAGNDROP.COPY;
// code for a data drop method
var data = event.data;
elemements[event.getElementName()].setText(data);
return true;
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table}\\
{table::id=function|class=servoy sDetail}{colgroup}{column:padding=0px|width=100%}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Method Details{th}{tr}{tbody:id=5963944B-32F1-4F52-9E18-29C82D09197F=getElementName|class=node}{tr:id=name}{td}h6.getElementName{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}getElementName{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:5963944B-32F1-4F52-9E18-29C82D09197FgetElementName_des|text=|trigger=button}{sub-section}{sub-section:5963944B-32F1-4F52-9E18-29C82D09197FgetElementName_des|trigger=none|class=sIndent}returns the name of the element, can be null if the form was the source of the event.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prssnc}{td}*ParametersSince*\\{sub-section:getElementName_snc|text=|trigger=button}{sub-section:5963944B-32F1-4F52-9E18-29C82D09197F}{sub-section:getElementName_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:getElementName_prs|text=|trigger=button}{sub-section}{div:class=sIndentsection}{sub-section:5963944B-32F1-4F52-9E18-29C82D09197FgetElementName_prs|trigger=none|class=sIndent}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:5963944B-32F1-4F52-9E18-29C82D09197FgetElementName_ret|text=|trigger=button}{sub-section}{sub-section:5963944B-32F1-4F52-9E18-29C82D09197FgetElementName_ret|trigger=none|class=sIndent}[String] -- a String representing the element name.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:5963944B-32F1-4F52-9E18-29C82D09197FgetElementName_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:5963944B-32F1-4F52-9E18-29C82D09197FgetElementName_see|class=sIndent|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:5963944B-32F1-4F52-9E18-29C82D09197F_seegetElementName_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:5963944B-32F1-4F52-9E18-29C82D09197FgetElementName_link|class=sIndent|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:5963944B-32F1-4F52-9E18-29C82D09197FgetElementName_sam|text=|trigger=button}{sub-section}{sub-section:5963944B-32F1-4F52-9E18-29C82D09197Fdiv:class=sIndent}{sub-section:getElementName_sam|class=sIndent|trigger=none}{code:language=javascript}
if (event.getElementName() == 'myElement')
{
elements[event.getElementName()].bgcolor = '#ff0000';
}
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=8AFFDEC0-0306-4A4F-8A25-511A0C36B5FEgetFormName|class=node}{tr:id=name}{td}h6.getFormName{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}getFormName{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:8AFFDEC0-0306-4A4F-8A25-511A0C36B5FEgetFormName_des|text=|trigger=button}{sub-section}{sub-section:8AFFDEC0-0306-4A4F-8A25-511A0C36B5FEgetFormName_des|trigger=none|class=sIndent}returns the name of the form the element was placed on.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prssnc}{td}*ParametersSince*\\{sub-section:8AFFDEC0-0306-4A4F-8A25-511A0C36B5FE_prsgetFormName_snc|text=|trigger=button}{sub-section}{div:sub-section:getFormName_snc|trigger=none|class=sIndent} Replace with version info{sub-section:8AFFDEC0-0306-4A4F-8A25-511A0C36B5FE}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:getFormName_prs|text=|trigger=button}{sub-section}{sub-section:getFormName_prs|trigger=none|class=sIndent}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:8AFFDEC0-0306-4A4F-8A25-511A0C36B5FEgetFormName_ret|text=|trigger=button}{sub-section}{sub-section:8AFFDEC0-0306-4A4F-8A25-511A0C36B5FEgetFormName_ret|trigger=none|class=sIndent}[String] -- a String representing the form name.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:8AFFDEC0-0306-4A4F-8A25-511A0C36B5FEgetFormName_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:8AFFDEC0-0306-4A4F-8A25-511A0C36B5FEgetFormName_see|class=sIndent|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:8AFFDEC0-0306-4A4F-8A25-511A0C36B5FE_seegetFormName_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:8AFFDEC0-0306-4A4F-8A25-511A0C36B5FEgetFormName_link|class=sIndent|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:8AFFDEC0-0306-4A4F-8A25-511A0C36B5FEgetFormName_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:8AFFDEC0-0306-4A4F-8A25-511A0C36B5FE_sam|class=sIndentgetFormName_sam|trigger=none}{code:language=javascript}
forms[event.getFormName()].myFormMethod();
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=F8C7A34A-37BA-443E-AD0B-FF341742D1B9=getModifiers|class=node}{tr:id=name}{td}h6.getModifiers{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Number]{span}{span:id=iets|style=float: left; font-weight: bold;}getModifiers{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:F8C7A34A-37BA-443E-AD0B-FF341742D1B9getModifiers_des|text=|trigger=button}{sub-section}{sub-section:F8C7A34A-37BA-443E-AD0B-FF341742D1B9getModifiers_des|trigger=none|class=sIndent}Returns the modifiers of the event, see JSEvent.MODIFIER\_XXXX for the modifiers that can be returned.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prssnc}{td}*ParametersSince*\\{sub-section:F8C7A34A-37BA-443E-AD0B-FF341742D1B9_prsgetModifiers_snc|text=|trigger=button}{sub-section}{div:class=sIndentsub-section:getModifiers_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:getModifiers_prs|text=|trigger=button}{sub-section}{sub-section:F8C7A34A-37BA-443E-AD0B-FF341742D1B9getModifiers_prs|trigger=none|class=sIndent}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:F8C7A34A-37BA-443E-AD0B-FF341742D1B9getModifiers_ret|text=|trigger=button}{sub-section}{sub-section:F8C7A34A-37BA-443E-AD0B-FF341742D1B9getModifiers_ret|trigger=none|class=sIndent}[Number] -- an int which holds the modifiers as a bitset.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:F8C7A34A-37BA-443E-AD0B-FF341742D1B9getModifiers_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:F8C7A34A-37BA-443E-AD0B-FF341742D1B9getModifiers_see|class=sIndent|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:F8C7A34A-37BA-443E-AD0B-FF341742D1B9_seegetModifiers_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:F8C7A34A-37BA-443E-AD0B-FF341742D1B9getModifiers_link|class=sIndent|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:F8C7A34A-37BA-443E-AD0B-FF341742D1B9getModifiers_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:F8C7A34A-37BA-443E-AD0B-FF341742D1B9getModifiers_sam|class=sIndent|trigger=none}{code:language=javascript}
//test if the SHIFT modifier is used.
if (event.getModifiers() & JSEvent.MODIFIER_SHIFT)
{
//do shift action
}
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=832DEEF2-1107-42DA-AC1A-AC8E9651FF5C=getSource|class=node}{tr:id=name}{td}h6.getSource{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Object]{span}{span:id=iets|style=float: left; font-weight: bold;}getSource{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:832DEEF2-1107-42DA-AC1A-AC8E9651FF5CgetSource_des|text=|trigger=button}{sub-section}{sub-section:832DEEF2-1107-42DA-AC1A-AC8E9651FF5CgetSource_des|trigger=none|class=sIndent}returns the source component/element of the event.
If it has a name the getElementName() is the name of this component.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prssnc}{td}*ParametersSince*\\{sub-section:832DEEF2-1107-42DA-AC1A-AC8E9651FF5C_prsgetSource_snc|text=|trigger=button}{sub-section}{div:sub-section:getSource_snc|trigger=none|class=sIndent} Replace with version info{sub-section:832DEEF2-1107-42DA-AC1A-AC8E9651FF5C}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:getSource_prs|text=|trigger=button}{sub-section}{sub-section:getSource_prs|trigger=none|class=sIndent}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:832DEEF2-1107-42DA-AC1A-AC8E9651FF5CgetSource_ret|text=|trigger=button}{sub-section}{sub-section:832DEEF2-1107-42DA-AC1A-AC8E9651FF5CgetSource_ret|trigger=none|class=sIndent}[Object] -- an Object representing the source of this event.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:832DEEF2-1107-42DA-AC1A-AC8E9651FF5CgetSource_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:832DEEF2-1107-42DA-AC1A-AC8E9651FF5CgetSource_see|class=sIndent|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:832DEEF2-1107-42DA-AC1A-AC8E9651FF5C_seegetSource_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:832DEEF2-1107-42DA-AC1A-AC8E9651FF5CgetSource_link|class=sIndent|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:832DEEF2-1107-42DA-AC1A-AC8E9651FF5CgetSource_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:832DEEF2-1107-42DA-AC1A-AC8E9651FF5C_sam|class=sIndentgetSource_sam|trigger=none}{code:language=javascript}
var sourceDataProvider = event.getSource().getDataProviderID();
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=7559D0A0-2277-4FD6-A583-2143C26C0677=getTimestamp|class=node}{tr:id=name}{td}h6.getTimestamp{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Date]{span}{span:id=iets|style=float: left; font-weight: bold;}getTimestamp{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:7559D0A0-2277-4FD6-A583-2143C26C0677getTimestamp_des|text=|trigger=button}{sub-section}{sub-section:7559D0A0-2277-4FD6-A583-2143C26C0677getTimestamp_des|trigger=none|class=sIndent}Returns the time the event occurred.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prssnc}{td}*ParametersSince*\\{sub-section:7559D0A0-2277-4FD6-A583-2143C26C0677_prsgetTimestamp_snc|text=|trigger=button}{sub-section}{div:class=sIndentsub-section:getTimestamp_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:getTimestamp_prs|text=|trigger=button}{sub-section}{sub-section:7559D0A0-2277-4FD6-A583-2143C26C0677getTimestamp_prs|trigger=none|class=sIndent}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:7559D0A0-2277-4FD6-A583-2143C26C0677getTimestamp_ret|text=|trigger=button}{sub-section}{sub-section:7559D0A0-2277-4FD6-A583-2143C26C0677getTimestamp_ret|trigger=none|class=sIndent}[Date] -- a Date when this event happened.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:7559D0A0-2277-4FD6-A583-2143C26C0677getTimestamp_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:7559D0A0-2277-4FD6-A583-2143C26C0677getTimestamp_see|class=sIndent|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:7559D0A0-2277-4FD6-A583-2143C26C0677_seegetTimestamp_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:7559D0A0-2277-4FD6-A583-2143C26C0677getTimestamp_link|class=sIndent|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:7559D0A0-2277-4FD6-A583-2143C26C0677getTimestamp_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:7559D0A0-2277-4FD6-A583-2143C26C0677_sam|class=sIndentgetTimestamp_sam|trigger=none}{code:language=javascript}
event.getTimestamp();
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=86E487CE-DE2A-4E45-9054-27D229B66FE5=getType|class=node}{tr:id=name}{td}h6.getType{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}getType{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:86E487CE-DE2A-4E45-9054-27D229B66FE5getType_des|text=|trigger=button}{sub-section}{sub-section:86E487CE-DE2A-4E45-9054-27D229B66FE5getType_des|trigger=none|class=sIndent}returns the event type see the JSEvents constants what it can return.
Plugins can create events with there own types.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prssnc}{td}*ParametersSince*\\{sub-section:86E487CE-DE2A-4E45-9054-27D229B66FE5_prsgetType_snc|text=|trigger=button}{sub-section}{div:class=sIndentsub-section:getType_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:getType_prs|text=|trigger=button}{sub-section}{sub-section:86E487CE-DE2A-4E45-9054-27D229B66FE5getType_prs|trigger=none|class=sIndent}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:86E487CE-DE2A-4E45-9054-27D229B66FE5getType_ret|text=|trigger=button}{sub-section}{sub-section:86E487CE-DE2A-4E45-9054-27D229B66FE5getType_ret|trigger=none|class=sIndent}[String] -- a String representing the type of this event.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:86E487CE-DE2A-4E45-9054-27D229B66FE5getType_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:86E487CE-DE2A-4E45-9054-27D229B66FE5getType_see|class=sIndent|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:86E487CE-DE2A-4E45-9054-27D229B66FE5_seegetType_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:86E487CE-DE2A-4E45-9054-27D229B66FE5getType_link|class=sIndent|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:86E487CE-DE2A-4E45-9054-27D229B66FE5getType_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:86E487CE-DE2A-4E45-9054-27D229B66FE5_sam|class=sIndentgetType_sam|trigger=none}{code:language=javascript}
if (event.getType() == JSEvent.ACTION)
{
// its an action event.
}
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=AE1A4A78-EF77-4092-A02F-1D8D507BACFA=getX|class=node}{tr:id=name}{td}h6.getX{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Number]{span}{span:id=iets|style=float: left; font-weight: bold;}getX{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:AE1A4A78-EF77-4092-A02F-1D8D507BACFAgetX_des|text=|trigger=button}{sub-section}{sub-section:AE1A4A78-EF77-4092-A02F-1D8D507BACFAgetX_des|trigger=none|class=sIndent}Returns the x position of the event if applicable.
For example drag'n'drop events will set the x,y positions.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prssnc}{td}*ParametersSince*\\{sub-section:AE1A4A78-EF77-4092-A02F-1D8D507BACFA_prsgetX_snc|text=|trigger=button}{sub-section}{div:class=sIndentsub-section:getX_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:getX_prs|text=|trigger=button}{sub-section}{sub-section:AE1A4A78-EF77-4092-A02F-1D8D507BACFAgetX_prs|trigger=none|class=sIndent}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:AE1A4A78-EF77-4092-A02F-1D8D507BACFAgetX_ret|text=|trigger=button}{sub-section}{sub-section:AE1A4A78-EF77-4092-A02F-1D8D507BACFAgetX_ret|trigger=none|class=sIndent}[Number] -- an int representing the X position.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:AE1A4A78-EF77-4092-A02F-1D8D507BACFAgetX_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:AE1A4A78-EF77-4092-A02F-1D8D507BACFAgetX_see|class=sIndent|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:AE1A4A78-EF77-4092-A02F-1D8D507BACFA_seegetX_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:AE1A4A78-EF77-4092-A02F-1D8D507BACFAgetX_link|class=sIndent|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:AE1A4A78-EF77-4092-A02F-1D8D507BACFAgetX_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:AE1A4A78-EF77-4092-A02F-1D8D507BACFAgetX_sam|class=sIndent|trigger=none}{code:language=javascript}
var x = event.getX();
var xPrevious = previousEvent.getX();
var movedXPixels = x -xPrevious;
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=3349283E-2221-46D0-A86A-31CBB58C1458=getY|class=node}{tr:id=name}{td}h6.getY{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Number]{span}{span:id=iets|style=float: left; font-weight: bold;}getY{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:3349283E-2221-46D0-A86A-31CBB58C1458getY_des|text=|trigger=button}{sub-section}{sub-section:3349283E-2221-46D0-A86A-31CBB58C1458getY_des|trigger=none|class=sIndent}Returns the x position of the event if applicable.
For example drag'n'drop events will set the x,y positions.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prssnc}{td}*ParametersSince*\\{sub-section:3349283E-2221-46D0-A86A-31CBB58C1458_prsgetY_snc|text=|trigger=button}{sub-section}{div:sub-section:getY_snc|trigger=none|class=sIndent} Replace with version info{sub-section:3349283E-2221-46D0-A86A-31CBB58C1458}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:getY_prs|text=|trigger=button}{sub-section}{sub-section:getY_prs|trigger=none|class=sIndent}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:3349283E-2221-46D0-A86A-31CBB58C1458getY_ret|text=|trigger=button}{sub-section}{sub-section:3349283E-2221-46D0-A86A-31CBB58C1458getY_ret|trigger=none|class=sIndent}[Number] -- an int representing the Y position.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:3349283E-2221-46D0-A86A-31CBB58C1458getY_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:3349283E-2221-46D0-A86A-31CBB58C1458getY_see|class=sIndent|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:3349283E-2221-46D0-A86A-31CBB58C1458_seegetY_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:3349283E-2221-46D0-A86A-31CBB58C1458getY_link|class=sIndent|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:3349283E-2221-46D0-A86A-31CBB58C1458getY_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:3349283E-2221-46D0-A86A-31CBB58C1458getY_sam|class=sIndent|trigger=none}{code:language=javascript}
var y = event.getY();
var yPrevious = previousEvent.getY();
var movedYPixels = y -yPrevious;
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table} |