Child pages
  • JSEvent

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Wiki Markup
{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:class=servoy sSummery}{colgroup}{column:width=80px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Constants Summary{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:class=servoy sSummery}{colgroup}{column:width=80px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Property Summary{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:class=servoy sSummery}{colgroup}{column:width=80px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Method Summary{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:class=servoy sDetail}{colgroup}{column:width=100%}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Constants Details{th}{tr}{tbody:id=D6E9C82664B8050E-35172724-41134427-8B03BB40-06967E434C7841D9BFF16205}{tr:id=name}{td}h6.ACTION{td}{tr}{tr:id=des}{td}{sub-section:D6E9C82664B8050E-35172724-41134427-8B03BB40-06967E434C7841D9BFF16205_des|text=|trigger=button}{sub-section}{sub-section:D6E9C82664B8050E-35172724-41134427-8B03BB40-06967E434C7841D9BFF16205_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=prs}{td}*Parameters*\\{sub-section:D6E9C82664B8050E-35172724-41134427-8B03BB40-06967E434C7841D9BFF16205_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:D6E9C82664B8050E-35172724-41134427-8B03BB40-06967E434C7841D9BFF16205_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:D6E9C82664B8050E-35172724-41134427-8B03BB40-06967E434C7841D9BFF16205_ret|text=|trigger=button}{sub-section}{sub-section:D6E9C82664B8050E-35172724-41134427-8B03BB40-06967E434C7841D9BFF16205_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:D6E9C82664B8050E-35172724-41134427-8B03BB40-06967E434C7841D9BFF16205_see|text=|trigger=button}{sub-section}{sub-section:D6E9C82664B8050E-35172724-41134427-8B03BB40-06967E434C7841D9BFF16205_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:D6E9C82664B8050E-35172724-41134427-8B03BB40-06967E434C7841D9BFF16205_see|text=|trigger=button}{sub-section}{sub-section:D6E9C82664B8050E-35172724-41134427-8B03BB40-06967E434C7841D9BFF16205_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:D6E9C82664B8050E-35172724-41134427-8B03BB40-06967E434C7841D9BFF16205_sam|text=|trigger=button}{sub-section}{sub-section:D6E9C82664B8050E-35172724-41134427-8B03BB40-06967E434C7841D9BFF16205_sam|class=sIndent|trigger=none}{code:language=javascript}
if (event.getType() == JSEvent.ACTION) 
{
   // its an action event.
}
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=B337D368125AE467-E5A6F7A5-46E646BD-86A3B7B2-640CDF3332F9D1AE215A6510}{tr:id=name}{td}h6.DATACHANGE{td}{tr}{tr:id=des}{td}{sub-section:B337D368125AE467-E5A6F7A5-46E646BD-86A3B7B2-640CDF3332F9D1AE215A6510_des|text=|trigger=button}{sub-section}{sub-section:B337D368125AE467-E5A6F7A5-46E646BD-86A3B7B2-640CDF3332F9D1AE215A6510_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=prs}{td}*Parameters*\\{sub-section:B337D368125AE467-E5A6F7A5-46E646BD-86A3B7B2-640CDF3332F9D1AE215A6510_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:B337D368125AE467-E5A6F7A5-46E646BD-86A3B7B2-640CDF3332F9D1AE215A6510_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:B337D368125AE467-E5A6F7A5-46E646BD-86A3B7B2-640CDF3332F9D1AE215A6510_ret|text=|trigger=button}{sub-section}{sub-section:B337D368125AE467-E5A6F7A5-46E646BD-86A3B7B2-640CDF3332F9D1AE215A6510_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:B337D368125AE467-E5A6F7A5-46E646BD-86A3B7B2-640CDF3332F9D1AE215A6510_see|text=|trigger=button}{sub-section}{sub-section:B337D368125AE467-E5A6F7A5-46E646BD-86A3B7B2-640CDF3332F9D1AE215A6510_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:B337D368125AE467-E5A6F7A5-46E646BD-86A3B7B2-640CDF3332F9D1AE215A6510_see|text=|trigger=button}{sub-section}{sub-section:B337D368125AE467-E5A6F7A5-46E646BD-86A3B7B2-640CDF3332F9D1AE215A6510_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:B337D368125AE467-E5A6F7A5-46E646BD-86A3B7B2-640CDF3332F9D1AE215A6510_sam|text=|trigger=button}{sub-section}{sub-section:B337D368125AE467-E5A6F7A5-46E646BD-86A3B7B2-640CDF3332F9D1AE215A6510_sam|class=sIndent|trigger=none}{code:language=javascript}
if (event.getType() == JSEvent.DATACHANGE) 
{
   // its a data change event
}
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=D7849F4FB7AFDAF6-8FAD34E4-494D449A-9BB79115-66AC39E023EDDE69E56B62D0}{tr:id=name}{td}h6.DOUBLECLICK{td}{tr}{tr:id=des}{td}{sub-section:D7849F4FB7AFDAF6-8FAD34E4-494D449A-9BB79115-66AC39E023EDDE69E56B62D0_des|text=|trigger=button}{sub-section}{sub-section:D7849F4FB7AFDAF6-8FAD34E4-494D449A-9BB79115-66AC39E023EDDE69E56B62D0_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=prs}{td}*Parameters*\\{sub-section:D7849F4FB7AFDAF6-8FAD34E4-494D449A-9BB79115-66AC39E023EDDE69E56B62D0_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:D7849F4FB7AFDAF6-8FAD34E4-494D449A-9BB79115-66AC39E023EDDE69E56B62D0_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:D7849F4FB7AFDAF6-8FAD34E4-494D449A-9BB79115-66AC39E023EDDE69E56B62D0_ret|text=|trigger=button}{sub-section}{sub-section:D7849F4FB7AFDAF6-8FAD34E4-494D449A-9BB79115-66AC39E023EDDE69E56B62D0_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:D7849F4FB7AFDAF6-8FAD34E4-494D449A-9BB79115-66AC39E023EDDE69E56B62D0_see|text=|trigger=button}{sub-section}{sub-section:D7849F4FB7AFDAF6-8FAD34E4-494D449A-9BB79115-66AC39E023EDDE69E56B62D0_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:D7849F4FB7AFDAF6-8FAD34E4-494D449A-9BB79115-66AC39E023EDDE69E56B62D0_see|text=|trigger=button}{sub-section}{sub-section:D7849F4FB7AFDAF6-8FAD34E4-494D449A-9BB79115-66AC39E023EDDE69E56B62D0_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:D7849F4FB7AFDAF6-8FAD34E4-494D449A-9BB79115-66AC39E023EDDE69E56B62D0_sam|text=|trigger=button}{sub-section}{sub-section:D7849F4FB7AFDAF6-8FAD34E4-494D449A-9BB79115-66AC39E023EDDE69E56B62D0_sam|class=sIndent|trigger=none}{code:language=javascript}
if (event.getType() == JSEvent.DOUBLECLICK) 
{
   // its a double click event.
}
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=046D899A67E22495-2CF21077-40F44E4F-B98BA452-B45D856D29A65C9802E5383E}{tr:id=name}{td}h6.FOCUSGAINED{td}{tr}{tr:id=des}{td}{sub-section:046D899A67E22495-2CF21077-40F44E4F-B98BA452-B45D856D29A65C9802E5383E_des|text=|trigger=button}{sub-section}{sub-section:046D899A67E22495-2CF21077-40F44E4F-B98BA452-B45D856D29A65C9802E5383E_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=prs}{td}*Parameters*\\{sub-section:046D899A67E22495-2CF21077-40F44E4F-B98BA452-B45D856D29A65C9802E5383E_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:046D899A67E22495-2CF21077-40F44E4F-B98BA452-B45D856D29A65C9802E5383E_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:046D899A67E22495-2CF21077-40F44E4F-B98BA452-B45D856D29A65C9802E5383E_ret|text=|trigger=button}{sub-section}{sub-section:046D899A67E22495-2CF21077-40F44E4F-B98BA452-B45D856D29A65C9802E5383E_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:046D899A67E22495-2CF21077-40F44E4F-B98BA452-B45D856D29A65C9802E5383E_see|text=|trigger=button}{sub-section}{sub-section:046D899A67E22495-2CF21077-40F44E4F-B98BA452-B45D856D29A65C9802E5383E_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:046D899A67E22495-2CF21077-40F44E4F-B98BA452-B45D856D29A65C9802E5383E_see|text=|trigger=button}{sub-section}{sub-section:046D899A67E22495-2CF21077-40F44E4F-B98BA452-B45D856D29A65C9802E5383E_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:046D899A67E22495-2CF21077-40F44E4F-B98BA452-B45D856D29A65C9802E5383E_sam|text=|trigger=button}{sub-section}{sub-section:046D899A67E22495-2CF21077-40F44E4F-B98BA452-B45D856D29A65C9802E5383E_sam|class=sIndent|trigger=none}{code:language=javascript}
if (event.getType() == JSEvent.FOCUSGAINED) 
{
   // its a focus gained event.
}
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=5A337D5D9114CF30-D1D2EBED-492E458B-A3D3891B-8348E547893AB5C91CA917C8}{tr:id=name}{td}h6.FOCUSLOST{td}{tr}{tr:id=des}{td}{sub-section:5A337D5D9114CF30-D1D2EBED-492E458B-A3D3891B-8348E547893AB5C91CA917C8_des|text=|trigger=button}{sub-section}{sub-section:5A337D5D9114CF30-D1D2EBED-492E458B-A3D3891B-8348E547893AB5C91CA917C8_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=prs}{td}*Parameters*\\{sub-section:5A337D5D9114CF30-D1D2EBED-492E458B-A3D3891B-8348E547893AB5C91CA917C8_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:5A337D5D9114CF30-D1D2EBED-492E458B-A3D3891B-8348E547893AB5C91CA917C8_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:5A337D5D9114CF30-D1D2EBED-492E458B-A3D3891B-8348E547893AB5C91CA917C8_ret|text=|trigger=button}{sub-section}{sub-section:5A337D5D9114CF30-D1D2EBED-492E458B-A3D3891B-8348E547893AB5C91CA917C8_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:5A337D5D9114CF30-D1D2EBED-492E458B-A3D3891B-8348E547893AB5C91CA917C8_see|text=|trigger=button}{sub-section}{sub-section:5A337D5D9114CF30-D1D2EBED-492E458B-A3D3891B-8348E547893AB5C91CA917C8_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:5A337D5D9114CF30-D1D2EBED-492E458B-A3D3891B-8348E547893AB5C91CA917C8_see|text=|trigger=button}{sub-section}{sub-section:5A337D5D9114CF30-D1D2EBED-492E458B-A3D3891B-8348E547893AB5C91CA917C8_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:5A337D5D9114CF30-D1D2EBED-492E458B-A3D3891B-8348E547893AB5C91CA917C8_sam|text=|trigger=button}{sub-section}{sub-section:5A337D5D9114CF30-D1D2EBED-492E458B-A3D3891B-8348E547893AB5C91CA917C8_sam|class=sIndent|trigger=none}{code:language=javascript}
if (event.getType() == JSEvent.FOCUSLOST) 
{
   // its a focus lost event.
}
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=9277DD6DE5AA841E-72238EE4-42D04731-B4AFBCEA-B95CC4A0279C342745B31DCF}{tr:id=name}{td}h6.FORM{td}{tr}{tr:id=des}{td}{sub-section:9277DD6DE5AA841E-72238EE4-42D04731-B4AFBCEA-B95CC4A0279C342745B31DCF_des|text=|trigger=button}{sub-section}{sub-section:9277DD6DE5AA841E-72238EE4-42D04731-B4AFBCEA-B95CC4A0279C342745B31DCF_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=prs}{td}*Parameters*\\{sub-section:9277DD6DE5AA841E-72238EE4-42D04731-B4AFBCEA-B95CC4A0279C342745B31DCF_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:9277DD6DE5AA841E-72238EE4-42D04731-B4AFBCEA-B95CC4A0279C342745B31DCF_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:9277DD6DE5AA841E-72238EE4-42D04731-B4AFBCEA-B95CC4A0279C342745B31DCF_ret|text=|trigger=button}{sub-section}{sub-section:9277DD6DE5AA841E-72238EE4-42D04731-B4AFBCEA-B95CC4A0279C342745B31DCF_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:9277DD6DE5AA841E-72238EE4-42D04731-B4AFBCEA-B95CC4A0279C342745B31DCF_see|text=|trigger=button}{sub-section}{sub-section:9277DD6DE5AA841E-72238EE4-42D04731-B4AFBCEA-B95CC4A0279C342745B31DCF_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:9277DD6DE5AA841E-72238EE4-42D04731-B4AFBCEA-B95CC4A0279C342745B31DCF_see|text=|trigger=button}{sub-section}{sub-section:9277DD6DE5AA841E-72238EE4-42D04731-B4AFBCEA-B95CC4A0279C342745B31DCF_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:9277DD6DE5AA841E-72238EE4-42D04731-B4AFBCEA-B95CC4A0279C342745B31DCF_sam|text=|trigger=button}{sub-section}{sub-section:9277DD6DE5AA841E-72238EE4-42D04731-B4AFBCEA-B95CC4A0279C342745B31DCF_sam|class=sIndent|trigger=none}{code:language=javascript}
if (event.getType() == JSEvent.FORM) 
{
   // its a form event or command
}
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=B47374A45BF5A1AA-59283A7C-40EA4792-A4C69A20-02C689D8EC525DD12C6C7548}{tr:id=name}{td}h6.MODIFIER_ALT{td}{tr}{tr:id=des}{td}{sub-section:B47374A45BF5A1AA-59283A7C-40EA4792-A4C69A20-02C689D8EC525DD12C6C7548_des|text=|trigger=button}{sub-section}{sub-section:B47374A45BF5A1AA-59283A7C-40EA4792-A4C69A20-02C689D8EC525DD12C6C7548_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=prs}{td}*Parameters*\\{sub-section:B47374A45BF5A1AA-59283A7C-40EA4792-A4C69A20-02C689D8EC525DD12C6C7548_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:B47374A45BF5A1AA-59283A7C-40EA4792-A4C69A20-02C689D8EC525DD12C6C7548_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:B47374A45BF5A1AA-59283A7C-40EA4792-A4C69A20-02C689D8EC525DD12C6C7548_ret|text=|trigger=button}{sub-section}{sub-section:B47374A45BF5A1AA-59283A7C-40EA4792-A4C69A20-02C689D8EC525DD12C6C7548_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:B47374A45BF5A1AA-59283A7C-40EA4792-A4C69A20-02C689D8EC525DD12C6C7548_see|text=|trigger=button}{sub-section}{sub-section:B47374A45BF5A1AA-59283A7C-40EA4792-A4C69A20-02C689D8EC525DD12C6C7548_see|class=sIndent|trigger=none}[.getModifiers|JSEvent#getModifiers]\\{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:B47374A45BF5A1AA-59283A7C-40EA4792-A4C69A20-02C689D8EC525DD12C6C7548_see|text=|trigger=button}{sub-section}{sub-section:B47374A45BF5A1AA-59283A7C-40EA4792-A4C69A20-02C689D8EC525DD12C6C7548_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:B47374A45BF5A1AA-59283A7C-40EA4792-A4C69A20-02C689D8EC525DD12C6C7548_sam|text=|trigger=button}{sub-section}{sub-section:B47374A45BF5A1AA-59283A7C-40EA4792-A4C69A20-02C689D8EC525DD12C6C7548_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}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=575733FEC82C3548-AE987038-4E624373-925BA82C-3705BB7E035DD3D4059C84A5}{tr:id=name}{td}h6.MODIFIER_CTRL{td}{tr}{tr:id=des}{td}{sub-section:575733FEC82C3548-AE987038-4E624373-925BA82C-3705BB7E035DD3D4059C84A5_des|text=|trigger=button}{sub-section}{sub-section:575733FEC82C3548-AE987038-4E624373-925BA82C-3705BB7E035DD3D4059C84A5_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=prs}{td}*Parameters*\\{sub-section:575733FEC82C3548-AE987038-4E624373-925BA82C-3705BB7E035DD3D4059C84A5_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:575733FEC82C3548-AE987038-4E624373-925BA82C-3705BB7E035DD3D4059C84A5_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:575733FEC82C3548-AE987038-4E624373-925BA82C-3705BB7E035DD3D4059C84A5_ret|text=|trigger=button}{sub-section}{sub-section:575733FEC82C3548-AE987038-4E624373-925BA82C-3705BB7E035DD3D4059C84A5_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:575733FEC82C3548-AE987038-4E624373-925BA82C-3705BB7E035DD3D4059C84A5_see|text=|trigger=button}{sub-section}{sub-section:575733FEC82C3548-AE987038-4E624373-925BA82C-3705BB7E035DD3D4059C84A5_see|class=sIndent|trigger=none}[.getModifiers|JSEvent#getModifiers]\\{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:575733FEC82C3548-AE987038-4E624373-925BA82C-3705BB7E035DD3D4059C84A5_see|text=|trigger=button}{sub-section}{sub-section:575733FEC82C3548-AE987038-4E624373-925BA82C-3705BB7E035DD3D4059C84A5_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:575733FEC82C3548-AE987038-4E624373-925BA82C-3705BB7E035DD3D4059C84A5_sam|text=|trigger=button}{sub-section}{sub-section:575733FEC82C3548-AE987038-4E624373-925BA82C-3705BB7E035DD3D4059C84A5_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}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=826E2A27656E3D50-9A75822D-42BA407F-AD7A931A-0F2D395E45EF1421DB04928D}{tr:id=name}{td}h6.MODIFIER_META{td}{tr}{tr:id=des}{td}{sub-section:826E2A27656E3D50-9A75822D-42BA407F-AD7A931A-0F2D395E45EF1421DB04928D_des|text=|trigger=button}{sub-section}{sub-section:826E2A27656E3D50-9A75822D-42BA407F-AD7A931A-0F2D395E45EF1421DB04928D_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=prs}{td}*Parameters*\\{sub-section:826E2A27656E3D50-9A75822D-42BA407F-AD7A931A-0F2D395E45EF1421DB04928D_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:826E2A27656E3D50-9A75822D-42BA407F-AD7A931A-0F2D395E45EF1421DB04928D_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:826E2A27656E3D50-9A75822D-42BA407F-AD7A931A-0F2D395E45EF1421DB04928D_ret|text=|trigger=button}{sub-section}{sub-section:826E2A27656E3D50-9A75822D-42BA407F-AD7A931A-0F2D395E45EF1421DB04928D_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:826E2A27656E3D50-9A75822D-42BA407F-AD7A931A-0F2D395E45EF1421DB04928D_see|text=|trigger=button}{sub-section}{sub-section:826E2A27656E3D50-9A75822D-42BA407F-AD7A931A-0F2D395E45EF1421DB04928D_see|class=sIndent|trigger=none}[.getModifiers|JSEvent#getModifiers]\\{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:826E2A27656E3D50-9A75822D-42BA407F-AD7A931A-0F2D395E45EF1421DB04928D_see|text=|trigger=button}{sub-section}{sub-section:826E2A27656E3D50-9A75822D-42BA407F-AD7A931A-0F2D395E45EF1421DB04928D_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:826E2A27656E3D50-9A75822D-42BA407F-AD7A931A-0F2D395E45EF1421DB04928D_sam|text=|trigger=button}{sub-section}{sub-section:826E2A27656E3D50-9A75822D-42BA407F-AD7A931A-0F2D395E45EF1421DB04928D_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}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=605E8C64E0B3F8D0-190CB5E3-4AB840E1-8515A7CC-03565E8AB8DEC0145324680D}{tr:id=name}{td}h6.MODIFIER_SHIFT{td}{tr}{tr:id=des}{td}{sub-section:605E8C64E0B3F8D0-190CB5E3-4AB840E1-8515A7CC-03565E8AB8DEC0145324680D_des|text=|trigger=button}{sub-section}{sub-section:605E8C64E0B3F8D0-190CB5E3-4AB840E1-8515A7CC-03565E8AB8DEC0145324680D_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=prs}{td}*Parameters*\\{sub-section:605E8C64E0B3F8D0-190CB5E3-4AB840E1-8515A7CC-03565E8AB8DEC0145324680D_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:605E8C64E0B3F8D0-190CB5E3-4AB840E1-8515A7CC-03565E8AB8DEC0145324680D_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:605E8C64E0B3F8D0-190CB5E3-4AB840E1-8515A7CC-03565E8AB8DEC0145324680D_ret|text=|trigger=button}{sub-section}{sub-section:605E8C64E0B3F8D0-190CB5E3-4AB840E1-8515A7CC-03565E8AB8DEC0145324680D_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:605E8C64E0B3F8D0-190CB5E3-4AB840E1-8515A7CC-03565E8AB8DEC0145324680D_see|text=|trigger=button}{sub-section}{sub-section:605E8C64E0B3F8D0-190CB5E3-4AB840E1-8515A7CC-03565E8AB8DEC0145324680D_see|class=sIndent|trigger=none}[.getModifiers|JSEvent#getModifiers]\\{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:605E8C64E0B3F8D0-190CB5E3-4AB840E1-8515A7CC-03565E8AB8DEC0145324680D_see|text=|trigger=button}{sub-section}{sub-section:605E8C64E0B3F8D0-190CB5E3-4AB840E1-8515A7CC-03565E8AB8DEC0145324680D_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:605E8C64E0B3F8D0-190CB5E3-4AB840E1-8515A7CC-03565E8AB8DEC0145324680D_sam|text=|trigger=button}{sub-section}{sub-section:605E8C64E0B3F8D0-190CB5E3-4AB840E1-8515A7CC-03565E8AB8DEC0145324680D_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}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=42BC8CF5FDE71973-801FA9F0-4D2D43FC-AB688BE9-0336936126DF43899E25D832}{tr:id=name}{td}h6.NONE{td}{tr}{tr:id=des}{td}{sub-section:42BC8CF5FDE71973-801FA9F0-4D2D43FC-AB688BE9-0336936126DF43899E25D832_des|text=|trigger=button}{sub-section}{sub-section:42BC8CF5FDE71973-801FA9F0-4D2D43FC-AB688BE9-0336936126DF43899E25D832_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=prs}{td}*Parameters*\\{sub-section:42BC8CF5FDE71973-801FA9F0-4D2D43FC-AB688BE9-0336936126DF43899E25D832_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:42BC8CF5FDE71973-801FA9F0-4D2D43FC-AB688BE9-0336936126DF43899E25D832_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:42BC8CF5FDE71973-801FA9F0-4D2D43FC-AB688BE9-0336936126DF43899E25D832_ret|text=|trigger=button}{sub-section}{sub-section:42BC8CF5FDE71973-801FA9F0-4D2D43FC-AB688BE9-0336936126DF43899E25D832_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:42BC8CF5FDE71973-801FA9F0-4D2D43FC-AB688BE9-0336936126DF43899E25D832_see|text=|trigger=button}{sub-section}{sub-section:42BC8CF5FDE71973-801FA9F0-4D2D43FC-AB688BE9-0336936126DF43899E25D832_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:42BC8CF5FDE71973-801FA9F0-4D2D43FC-AB688BE9-0336936126DF43899E25D832_see|text=|trigger=button}{sub-section}{sub-section:42BC8CF5FDE71973-801FA9F0-4D2D43FC-AB688BE9-0336936126DF43899E25D832_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:42BC8CF5FDE71973-801FA9F0-4D2D43FC-AB688BE9-0336936126DF43899E25D832_sam|text=|trigger=button}{sub-section}{sub-section:42BC8CF5FDE71973-801FA9F0-4D2D43FC-AB688BE9-0336936126DF43899E25D832_sam|class=sIndent|trigger=none}{code:language=javascript}
if (event.getType() == JSEvent.NONE) 
{
   // type is not set.
}
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=75472BDFB42A5C90-56415AF8-46924E11-B73A8958-C3381AC7072AF449C003AA42}{tr:id=name}{td}h6.ONDRAG{td}{tr}{tr:id=des}{td}{sub-section:75472BDFB42A5C90-56415AF8-46924E11-B73A8958-C3381AC7072AF449C003AA42_des|text=|trigger=button}{sub-section}{sub-section:75472BDFB42A5C90-56415AF8-46924E11-B73A8958-C3381AC7072AF449C003AA42_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=prs}{td}*Parameters*\\{sub-section:75472BDFB42A5C90-56415AF8-46924E11-B73A8958-C3381AC7072AF449C003AA42_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:75472BDFB42A5C90-56415AF8-46924E11-B73A8958-C3381AC7072AF449C003AA42_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:75472BDFB42A5C90-56415AF8-46924E11-B73A8958-C3381AC7072AF449C003AA42_ret|text=|trigger=button}{sub-section}{sub-section:75472BDFB42A5C90-56415AF8-46924E11-B73A8958-C3381AC7072AF449C003AA42_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:75472BDFB42A5C90-56415AF8-46924E11-B73A8958-C3381AC7072AF449C003AA42_see|text=|trigger=button}{sub-section}{sub-section:75472BDFB42A5C90-56415AF8-46924E11-B73A8958-C3381AC7072AF449C003AA42_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:75472BDFB42A5C90-56415AF8-46924E11-B73A8958-C3381AC7072AF449C003AA42_see|text=|trigger=button}{sub-section}{sub-section:75472BDFB42A5C90-56415AF8-46924E11-B73A8958-C3381AC7072AF449C003AA42_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:75472BDFB42A5C90-56415AF8-46924E11-B73A8958-C3381AC7072AF449C003AA42_sam|text=|trigger=button}{sub-section}{sub-section:75472BDFB42A5C90-56415AF8-46924E11-B73A8958-C3381AC7072AF449C003AA42_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}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=97B38F00AD59C8F3-FB2E8D0A-4EFA4DE0-9A8A9E8A-3BDF88DE452F38F2327F7A7C}{tr:id=name}{td}h6.ONDRAGOVER{td}{tr}{tr:id=des}{td}{sub-section:97B38F00AD59C8F3-FB2E8D0A-4EFA4DE0-9A8A9E8A-3BDF88DE452F38F2327F7A7C_des|text=|trigger=button}{sub-section}{sub-section:97B38F00AD59C8F3-FB2E8D0A-4EFA4DE0-9A8A9E8A-3BDF88DE452F38F2327F7A7C_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=prs}{td}*Parameters*\\{sub-section:97B38F00AD59C8F3-FB2E8D0A-4EFA4DE0-9A8A9E8A-3BDF88DE452F38F2327F7A7C_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:97B38F00AD59C8F3-FB2E8D0A-4EFA4DE0-9A8A9E8A-3BDF88DE452F38F2327F7A7C_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:97B38F00AD59C8F3-FB2E8D0A-4EFA4DE0-9A8A9E8A-3BDF88DE452F38F2327F7A7C_ret|text=|trigger=button}{sub-section}{sub-section:97B38F00AD59C8F3-FB2E8D0A-4EFA4DE0-9A8A9E8A-3BDF88DE452F38F2327F7A7C_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:97B38F00AD59C8F3-FB2E8D0A-4EFA4DE0-9A8A9E8A-3BDF88DE452F38F2327F7A7C_see|text=|trigger=button}{sub-section}{sub-section:97B38F00AD59C8F3-FB2E8D0A-4EFA4DE0-9A8A9E8A-3BDF88DE452F38F2327F7A7C_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:97B38F00AD59C8F3-FB2E8D0A-4EFA4DE0-9A8A9E8A-3BDF88DE452F38F2327F7A7C_see|text=|trigger=button}{sub-section}{sub-section:97B38F00AD59C8F3-FB2E8D0A-4EFA4DE0-9A8A9E8A-3BDF88DE452F38F2327F7A7C_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:97B38F00AD59C8F3-FB2E8D0A-4EFA4DE0-9A8A9E8A-3BDF88DE452F38F2327F7A7C_sam|text=|trigger=button}{sub-section}{sub-section:97B38F00AD59C8F3-FB2E8D0A-4EFA4DE0-9A8A9E8A-3BDF88DE452F38F2327F7A7C_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}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=3075C13E069D0F71-FE014F30-4C524871-89CB915F-76842A086A14D6AE89208B5B}{tr:id=name}{td}h6.ONDROP{td}{tr}{tr:id=des}{td}{sub-section:3075C13E069D0F71-FE014F30-4C524871-89CB915F-76842A086A14D6AE89208B5B_des|text=|trigger=button}{sub-section}{sub-section:3075C13E069D0F71-FE014F30-4C524871-89CB915F-76842A086A14D6AE89208B5B_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=prs}{td}*Parameters*\\{sub-section:3075C13E069D0F71-FE014F30-4C524871-89CB915F-76842A086A14D6AE89208B5B_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:3075C13E069D0F71-FE014F30-4C524871-89CB915F-76842A086A14D6AE89208B5B_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:3075C13E069D0F71-FE014F30-4C524871-89CB915F-76842A086A14D6AE89208B5B_ret|text=|trigger=button}{sub-section}{sub-section:3075C13E069D0F71-FE014F30-4C524871-89CB915F-76842A086A14D6AE89208B5B_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:3075C13E069D0F71-FE014F30-4C524871-89CB915F-76842A086A14D6AE89208B5B_see|text=|trigger=button}{sub-section}{sub-section:3075C13E069D0F71-FE014F30-4C524871-89CB915F-76842A086A14D6AE89208B5B_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:3075C13E069D0F71-FE014F30-4C524871-89CB915F-76842A086A14D6AE89208B5B_see|text=|trigger=button}{sub-section}{sub-section:3075C13E069D0F71-FE014F30-4C524871-89CB915F-76842A086A14D6AE89208B5B_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:3075C13E069D0F71-FE014F30-4C524871-89CB915F-76842A086A14D6AE89208B5B_sam|text=|trigger=button}{sub-section}{sub-section:3075C13E069D0F71-FE014F30-4C524871-89CB915F-76842A086A14D6AE89208B5B_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}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=526330561D91A8C1-404FCC76-4725460A-875D9544-F2EDE0CB30DF3859FEC44651}{tr:id=name}{td}h6.RIGHTCLICK{td}{tr}{tr:id=des}{td}{sub-section:526330561D91A8C1-404FCC76-4725460A-875D9544-F2EDE0CB30DF3859FEC44651_des|text=|trigger=button}{sub-section}{sub-section:526330561D91A8C1-404FCC76-4725460A-875D9544-F2EDE0CB30DF3859FEC44651_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=prs}{td}*Parameters*\\{sub-section:526330561D91A8C1-404FCC76-4725460A-875D9544-F2EDE0CB30DF3859FEC44651_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:526330561D91A8C1-404FCC76-4725460A-875D9544-F2EDE0CB30DF3859FEC44651_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:526330561D91A8C1-404FCC76-4725460A-875D9544-F2EDE0CB30DF3859FEC44651_ret|text=|trigger=button}{sub-section}{sub-section:526330561D91A8C1-404FCC76-4725460A-875D9544-F2EDE0CB30DF3859FEC44651_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:526330561D91A8C1-404FCC76-4725460A-875D9544-F2EDE0CB30DF3859FEC44651_see|text=|trigger=button}{sub-section}{sub-section:526330561D91A8C1-404FCC76-4725460A-875D9544-F2EDE0CB30DF3859FEC44651_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:526330561D91A8C1-404FCC76-4725460A-875D9544-F2EDE0CB30DF3859FEC44651_see|text=|trigger=button}{sub-section}{sub-section:526330561D91A8C1-404FCC76-4725460A-875D9544-F2EDE0CB30DF3859FEC44651_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:526330561D91A8C1-404FCC76-4725460A-875D9544-F2EDE0CB30DF3859FEC44651_sam|text=|trigger=button}{sub-section}{sub-section:526330561D91A8C1-404FCC76-4725460A-875D9544-F2EDE0CB30DF3859FEC44651_sam|class=sIndent|trigger=none}{code:language=javascript}
if (event.getType() == JSEvent.RIGHTCLICK) 
{
   // its a right click event.
}
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table}\\ 

{table:class=servoy sDetail}{colgroup}{column:width=100%}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Property Details{th}{tr}{tbody:id=5333C847AD96359C-C5848A47-4EA24020-84DF89BF-DDB938AA364DC967BF9D4C0A}{tr:id=name}{td}h6.data{td}{tr}{tr:id=des}{td}{sub-section:5333C847AD96359C-C5848A47-4EA24020-84DF89BF-DDB938AA364DC967BF9D4C0A_des|text=|trigger=button}{sub-section}{sub-section:5333C847AD96359C-C5848A47-4EA24020-84DF89BF-DDB938AA364DC967BF9D4C0A_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=prs}{td}*Parameters*\\{sub-section:5333C847AD96359C-C5848A47-4EA24020-84DF89BF-DDB938AA364DC967BF9D4C0A_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:5333C847AD96359C-C5848A47-4EA24020-84DF89BF-DDB938AA364DC967BF9D4C0A_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:5333C847AD96359C-C5848A47-4EA24020-84DF89BF-DDB938AA364DC967BF9D4C0A_ret|text=|trigger=button}{sub-section}{sub-section:5333C847AD96359C-C5848A47-4EA24020-84DF89BF-DDB938AA364DC967BF9D4C0A_ret|trigger=none|class=sIndent}Object{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:5333C847AD96359C-C5848A47-4EA24020-84DF89BF-DDB938AA364DC967BF9D4C0A_see|text=|trigger=button}{sub-section}{sub-section:5333C847AD96359C-C5848A47-4EA24020-84DF89BF-DDB938AA364DC967BF9D4C0A_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:5333C847AD96359C-C5848A47-4EA24020-84DF89BF-DDB938AA364DC967BF9D4C0A_see|text=|trigger=button}{sub-section}{sub-section:5333C847AD96359C-C5848A47-4EA24020-84DF89BF-DDB938AA364DC967BF9D4C0A_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:5333C847AD96359C-C5848A47-4EA24020-84DF89BF-DDB938AA364DC967BF9D4C0A_sam|text=|trigger=button}{sub-section}{sub-section:5333C847AD96359C-C5848A47-4EA24020-84DF89BF-DDB938AA364DC967BF9D4C0A_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}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table}\\ 

{table:class=servoy sDetail}{colgroup}{column:width=100%}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Method Details{th}{tr}{tbody:id=6464EC6C2FCBB5DF-86D81F78-4BF949D0-8E348971-4B669B3E63258E0B50CD479F}{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:6464EC6C2FCBB5DF-86D81F78-4BF949D0-8E348971-4B669B3E63258E0B50CD479F_des|text=|trigger=button}{sub-section}{sub-section:6464EC6C2FCBB5DF-86D81F78-4BF949D0-8E348971-4B669B3E63258E0B50CD479F_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=prs}{td}*Parameters*\\{sub-section:6464EC6C2FCBB5DF-86D81F78-4BF949D0-8E348971-4B669B3E63258E0B50CD479F_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:6464EC6C2FCBB5DF-86D81F78-4BF949D0-8E348971-4B669B3E63258E0B50CD479F_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:6464EC6C2FCBB5DF-86D81F78-4BF949D0-8E348971-4B669B3E63258E0B50CD479F_ret|text=|trigger=button}{sub-section}{sub-section:6464EC6C2FCBB5DF-86D81F78-4BF949D0-8E348971-4B669B3E63258E0B50CD479F_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:6464EC6C2FCBB5DF-86D81F78-4BF949D0-8E348971-4B669B3E63258E0B50CD479F_see|text=|trigger=button}{sub-section}{sub-section:6464EC6C2FCBB5DF-86D81F78-4BF949D0-8E348971-4B669B3E63258E0B50CD479F_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:6464EC6C2FCBB5DF-86D81F78-4BF949D0-8E348971-4B669B3E63258E0B50CD479F_see|text=|trigger=button}{sub-section}{sub-section:6464EC6C2FCBB5DF-86D81F78-4BF949D0-8E348971-4B669B3E63258E0B50CD479F_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:6464EC6C2FCBB5DF-86D81F78-4BF949D0-8E348971-4B669B3E63258E0B50CD479F_sam|text=|trigger=button}{sub-section}{sub-section:6464EC6C2FCBB5DF-86D81F78-4BF949D0-8E348971-4B669B3E63258E0B50CD479F_sam|class=sIndent|trigger=none}{code:language=javascript}
if (event.getElementName() == 'myElement')
{
    elements[event.getElementName()].bgcolor = '#ff0000';
}
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=3D3787B8F24D623E-78CD72DA-42554B6D-9831A2A1-36BBCFF86604954228F86729}{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:3D3787B8F24D623E-78CD72DA-42554B6D-9831A2A1-36BBCFF86604954228F86729_des|text=|trigger=button}{sub-section}{sub-section:3D3787B8F24D623E-78CD72DA-42554B6D-9831A2A1-36BBCFF86604954228F86729_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=prs}{td}*Parameters*\\{sub-section:3D3787B8F24D623E-78CD72DA-42554B6D-9831A2A1-36BBCFF86604954228F86729_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:3D3787B8F24D623E-78CD72DA-42554B6D-9831A2A1-36BBCFF86604954228F86729_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:3D3787B8F24D623E-78CD72DA-42554B6D-9831A2A1-36BBCFF86604954228F86729_ret|text=|trigger=button}{sub-section}{sub-section:3D3787B8F24D623E-78CD72DA-42554B6D-9831A2A1-36BBCFF86604954228F86729_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:3D3787B8F24D623E-78CD72DA-42554B6D-9831A2A1-36BBCFF86604954228F86729_see|text=|trigger=button}{sub-section}{sub-section:3D3787B8F24D623E-78CD72DA-42554B6D-9831A2A1-36BBCFF86604954228F86729_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:3D3787B8F24D623E-78CD72DA-42554B6D-9831A2A1-36BBCFF86604954228F86729_see|text=|trigger=button}{sub-section}{sub-section:3D3787B8F24D623E-78CD72DA-42554B6D-9831A2A1-36BBCFF86604954228F86729_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:3D3787B8F24D623E-78CD72DA-42554B6D-9831A2A1-36BBCFF86604954228F86729_sam|text=|trigger=button}{sub-section}{sub-section:3D3787B8F24D623E-78CD72DA-42554B6D-9831A2A1-36BBCFF86604954228F86729_sam|class=sIndent|trigger=none}{code:language=javascript}
forms[event.getFormName()].myFormMethod();
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=38315B002E5AFB43-7932FAFE-44834FF6-BCE8AF13-9311BCC01F3247C01FD1B6E8}{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:38315B002E5AFB43-7932FAFE-44834FF6-BCE8AF13-9311BCC01F3247C01FD1B6E8_des|text=|trigger=button}{sub-section}{sub-section:38315B002E5AFB43-7932FAFE-44834FF6-BCE8AF13-9311BCC01F3247C01FD1B6E8_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=prs}{td}*Parameters*\\{sub-section:38315B002E5AFB43-7932FAFE-44834FF6-BCE8AF13-9311BCC01F3247C01FD1B6E8_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:38315B002E5AFB43-7932FAFE-44834FF6-BCE8AF13-9311BCC01F3247C01FD1B6E8_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:38315B002E5AFB43-7932FAFE-44834FF6-BCE8AF13-9311BCC01F3247C01FD1B6E8_ret|text=|trigger=button}{sub-section}{sub-section:38315B002E5AFB43-7932FAFE-44834FF6-BCE8AF13-9311BCC01F3247C01FD1B6E8_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:38315B002E5AFB43-7932FAFE-44834FF6-BCE8AF13-9311BCC01F3247C01FD1B6E8_see|text=|trigger=button}{sub-section}{sub-section:38315B002E5AFB43-7932FAFE-44834FF6-BCE8AF13-9311BCC01F3247C01FD1B6E8_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:38315B002E5AFB43-7932FAFE-44834FF6-BCE8AF13-9311BCC01F3247C01FD1B6E8_see|text=|trigger=button}{sub-section}{sub-section:38315B002E5AFB43-7932FAFE-44834FF6-BCE8AF13-9311BCC01F3247C01FD1B6E8_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:38315B002E5AFB43-7932FAFE-44834FF6-BCE8AF13-9311BCC01F3247C01FD1B6E8_sam|text=|trigger=button}{sub-section}{sub-section:38315B002E5AFB43-7932FAFE-44834FF6-BCE8AF13-9311BCC01F3247C01FD1B6E8_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}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=BF79E5A3410A5466-1C7BCA15-4CAA467E-9BF6A899-FFDE580B925AC250E1D89FB8}{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:BF79E5A3410A5466-1C7BCA15-4CAA467E-9BF6A899-FFDE580B925AC250E1D89FB8_des|text=|trigger=button}{sub-section}{sub-section:BF79E5A3410A5466-1C7BCA15-4CAA467E-9BF6A899-FFDE580B925AC250E1D89FB8_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=prs}{td}*Parameters*\\{sub-section:BF79E5A3410A5466-1C7BCA15-4CAA467E-9BF6A899-FFDE580B925AC250E1D89FB8_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:BF79E5A3410A5466-1C7BCA15-4CAA467E-9BF6A899-FFDE580B925AC250E1D89FB8_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:BF79E5A3410A5466-1C7BCA15-4CAA467E-9BF6A899-FFDE580B925AC250E1D89FB8_ret|text=|trigger=button}{sub-section}{sub-section:BF79E5A3410A5466-1C7BCA15-4CAA467E-9BF6A899-FFDE580B925AC250E1D89FB8_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:BF79E5A3410A5466-1C7BCA15-4CAA467E-9BF6A899-FFDE580B925AC250E1D89FB8_see|text=|trigger=button}{sub-section}{sub-section:BF79E5A3410A5466-1C7BCA15-4CAA467E-9BF6A899-FFDE580B925AC250E1D89FB8_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:BF79E5A3410A5466-1C7BCA15-4CAA467E-9BF6A899-FFDE580B925AC250E1D89FB8_see|text=|trigger=button}{sub-section}{sub-section:BF79E5A3410A5466-1C7BCA15-4CAA467E-9BF6A899-FFDE580B925AC250E1D89FB8_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:BF79E5A3410A5466-1C7BCA15-4CAA467E-9BF6A899-FFDE580B925AC250E1D89FB8_sam|text=|trigger=button}{sub-section}{sub-section:BF79E5A3410A5466-1C7BCA15-4CAA467E-9BF6A899-FFDE580B925AC250E1D89FB8_sam|class=sIndent|trigger=none}{code:language=javascript}
var sourceDataProvider = event.getSource().getDataProviderID();
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=9B67066752DAF81F-92EAF392-4E284B37-A5C59EBD-92BA805EDC3C80224D9E2877}{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:9B67066752DAF81F-92EAF392-4E284B37-A5C59EBD-92BA805EDC3C80224D9E2877_des|text=|trigger=button}{sub-section}{sub-section:9B67066752DAF81F-92EAF392-4E284B37-A5C59EBD-92BA805EDC3C80224D9E2877_des|trigger=none|class=sIndent}Returns the time the event occurred.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:9B67066752DAF81F-92EAF392-4E284B37-A5C59EBD-92BA805EDC3C80224D9E2877_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:9B67066752DAF81F-92EAF392-4E284B37-A5C59EBD-92BA805EDC3C80224D9E2877_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:9B67066752DAF81F-92EAF392-4E284B37-A5C59EBD-92BA805EDC3C80224D9E2877_ret|text=|trigger=button}{sub-section}{sub-section:9B67066752DAF81F-92EAF392-4E284B37-A5C59EBD-92BA805EDC3C80224D9E2877_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:9B67066752DAF81F-92EAF392-4E284B37-A5C59EBD-92BA805EDC3C80224D9E2877_see|text=|trigger=button}{sub-section}{sub-section:9B67066752DAF81F-92EAF392-4E284B37-A5C59EBD-92BA805EDC3C80224D9E2877_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:9B67066752DAF81F-92EAF392-4E284B37-A5C59EBD-92BA805EDC3C80224D9E2877_see|text=|trigger=button}{sub-section}{sub-section:9B67066752DAF81F-92EAF392-4E284B37-A5C59EBD-92BA805EDC3C80224D9E2877_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:9B67066752DAF81F-92EAF392-4E284B37-A5C59EBD-92BA805EDC3C80224D9E2877_sam|text=|trigger=button}{sub-section}{sub-section:9B67066752DAF81F-92EAF392-4E284B37-A5C59EBD-92BA805EDC3C80224D9E2877_sam|class=sIndent|trigger=none}{code:language=javascript}
event.getTimestamp();
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=9AE198B9763E6587-B9AF2618-4882402A-A3529A89-A2B98089125CA8471A11F4C8}{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:9AE198B9763E6587-B9AF2618-4882402A-A3529A89-A2B98089125CA8471A11F4C8_des|text=|trigger=button}{sub-section}{sub-section:9AE198B9763E6587-B9AF2618-4882402A-A3529A89-A2B98089125CA8471A11F4C8_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=prs}{td}*Parameters*\\{sub-section:9AE198B9763E6587-B9AF2618-4882402A-A3529A89-A2B98089125CA8471A11F4C8_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:9AE198B9763E6587-B9AF2618-4882402A-A3529A89-A2B98089125CA8471A11F4C8_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:9AE198B9763E6587-B9AF2618-4882402A-A3529A89-A2B98089125CA8471A11F4C8_ret|text=|trigger=button}{sub-section}{sub-section:9AE198B9763E6587-B9AF2618-4882402A-A3529A89-A2B98089125CA8471A11F4C8_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:9AE198B9763E6587-B9AF2618-4882402A-A3529A89-A2B98089125CA8471A11F4C8_see|text=|trigger=button}{sub-section}{sub-section:9AE198B9763E6587-B9AF2618-4882402A-A3529A89-A2B98089125CA8471A11F4C8_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:9AE198B9763E6587-B9AF2618-4882402A-A3529A89-A2B98089125CA8471A11F4C8_see|text=|trigger=button}{sub-section}{sub-section:9AE198B9763E6587-B9AF2618-4882402A-A3529A89-A2B98089125CA8471A11F4C8_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:9AE198B9763E6587-B9AF2618-4882402A-A3529A89-A2B98089125CA8471A11F4C8_sam|text=|trigger=button}{sub-section}{sub-section:9AE198B9763E6587-B9AF2618-4882402A-A3529A89-A2B98089125CA8471A11F4C8_sam|class=sIndent|trigger=none}{code:language=javascript}
if (event.getType() == JSEvent.ACTION) 
{
   // its an action event.
}
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=59E68EF5BAF0F6E1-F2DB1FFA-45124EC7-8903AE1B-A8C5250FADE444C34E5D6FD5}{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:59E68EF5BAF0F6E1-F2DB1FFA-45124EC7-8903AE1B-A8C5250FADE444C34E5D6FD5_des|text=|trigger=button}{sub-section}{sub-section:59E68EF5BAF0F6E1-F2DB1FFA-45124EC7-8903AE1B-A8C5250FADE444C34E5D6FD5_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=prs}{td}*Parameters*\\{sub-section:59E68EF5BAF0F6E1-F2DB1FFA-45124EC7-8903AE1B-A8C5250FADE444C34E5D6FD5_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:59E68EF5BAF0F6E1-F2DB1FFA-45124EC7-8903AE1B-A8C5250FADE444C34E5D6FD5_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:59E68EF5BAF0F6E1-F2DB1FFA-45124EC7-8903AE1B-A8C5250FADE444C34E5D6FD5_ret|text=|trigger=button}{sub-section}{sub-section:59E68EF5BAF0F6E1-F2DB1FFA-45124EC7-8903AE1B-A8C5250FADE444C34E5D6FD5_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:59E68EF5BAF0F6E1-F2DB1FFA-45124EC7-8903AE1B-A8C5250FADE444C34E5D6FD5_see|text=|trigger=button}{sub-section}{sub-section:59E68EF5BAF0F6E1-F2DB1FFA-45124EC7-8903AE1B-A8C5250FADE444C34E5D6FD5_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:59E68EF5BAF0F6E1-F2DB1FFA-45124EC7-8903AE1B-A8C5250FADE444C34E5D6FD5_see|text=|trigger=button}{sub-section}{sub-section:59E68EF5BAF0F6E1-F2DB1FFA-45124EC7-8903AE1B-A8C5250FADE444C34E5D6FD5_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:59E68EF5BAF0F6E1-F2DB1FFA-45124EC7-8903AE1B-A8C5250FADE444C34E5D6FD5_sam|text=|trigger=button}{sub-section}{sub-section:59E68EF5BAF0F6E1-F2DB1FFA-45124EC7-8903AE1B-A8C5250FADE444C34E5D6FD5_sam|class=sIndent|trigger=none}{code:language=javascript}
var x = event.getX();
var xPrevious = previousEvent.getX();
var movedXPixels = x -xPrevious;
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=D7CD0E03DFD48FD7-AFD8CFEA-4A254276-A711A01C-1F3500B52586C5CD12E9DDE3}{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:D7CD0E03DFD48FD7-AFD8CFEA-4A254276-A711A01C-1F3500B52586C5CD12E9DDE3_des|text=|trigger=button}{sub-section}{sub-section:D7CD0E03DFD48FD7-AFD8CFEA-4A254276-A711A01C-1F3500B52586C5CD12E9DDE3_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=prs}{td}*Parameters*\\{sub-section:D7CD0E03DFD48FD7-AFD8CFEA-4A254276-A711A01C-1F3500B52586C5CD12E9DDE3_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:D7CD0E03DFD48FD7-AFD8CFEA-4A254276-A711A01C-1F3500B52586C5CD12E9DDE3_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:D7CD0E03DFD48FD7-AFD8CFEA-4A254276-A711A01C-1F3500B52586C5CD12E9DDE3_ret|text=|trigger=button}{sub-section}{sub-section:D7CD0E03DFD48FD7-AFD8CFEA-4A254276-A711A01C-1F3500B52586C5CD12E9DDE3_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:D7CD0E03DFD48FD7-AFD8CFEA-4A254276-A711A01C-1F3500B52586C5CD12E9DDE3_see|text=|trigger=button}{sub-section}{sub-section:D7CD0E03DFD48FD7-AFD8CFEA-4A254276-A711A01C-1F3500B52586C5CD12E9DDE3_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:D7CD0E03DFD48FD7-AFD8CFEA-4A254276-A711A01C-1F3500B52586C5CD12E9DDE3_see|text=|trigger=button}{sub-section}{sub-section:D7CD0E03DFD48FD7-AFD8CFEA-4A254276-A711A01C-1F3500B52586C5CD12E9DDE3_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:D7CD0E03DFD48FD7-AFD8CFEA-4A254276-A711A01C-1F3500B52586C5CD12E9DDE3_sam|text=|trigger=button}{sub-section}{sub-section:D7CD0E03DFD48FD7-AFD8CFEA-4A254276-A711A01C-1F3500B52586C5CD12E9DDE3_sam|class=sIndent|trigger=none}{code:language=javascript}
var y = event.getY();
var yPrevious = previousEvent.getY();
var movedYPixels = y -yPrevious;
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table}