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=A89BCE99C9408CC4-3786F85C-4E3C4396-865690D0-B793B3E9DE2E2C42ED9678EB}{tr:id=name}{td}h6.ACTION{td}{tr}{tr:id=des}{td}{sub-section:A89BCE99C9408CC4-3786F85C-4E3C4396-865690D0-B793B3E9DE2E2C42ED9678EB_des|text=|trigger=button}{sub-section}{sub-section:A89BCE99C9408CC4-3786F85C-4E3C4396-865690D0-B793B3E9DE2E2C42ED9678EB_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:A89BCE99C9408CC4-3786F85C-4E3C4396-865690D0-B793B3E9DE2E2C42ED9678EB_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:A89BCE99C9408CC4-3786F85C-4E3C4396-865690D0-B793B3E9DE2E2C42ED9678EB_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:A89BCE99C9408CC4-3786F85C-4E3C4396-865690D0-B793B3E9DE2E2C42ED9678EB_ret|text=|trigger=button}{sub-section}{sub-section:A89BCE99C9408CC4-3786F85C-4E3C4396-865690D0-B793B3E9DE2E2C42ED9678EB_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:A89BCE99C9408CC4-3786F85C-4E3C4396-865690D0-B793B3E9DE2E2C42ED9678EB_see|text=|trigger=button}{sub-section}{sub-section:A89BCE99C9408CC4-3786F85C-4E3C4396-865690D0-B793B3E9DE2E2C42ED9678EB_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:A89BCE99C9408CC4-3786F85C-4E3C4396-865690D0-B793B3E9DE2E2C42ED9678EB_see|text=|trigger=button}{sub-section}{sub-section:A89BCE99C9408CC4-3786F85C-4E3C4396-865690D0-B793B3E9DE2E2C42ED9678EB_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:A89BCE99C9408CC4-3786F85C-4E3C4396-865690D0-B793B3E9DE2E2C42ED9678EB_sam|text=|trigger=button}{sub-section}{sub-section:A89BCE99C9408CC4-3786F85C-4E3C4396-865690D0-B793B3E9DE2E2C42ED9678EB_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=DB7EA69302C56A01-CADFBFCF-4CA44805-96969E06-46ECA293C112FA31A73D90D7}{tr:id=name}{td}h6.DATACHANGE{td}{tr}{tr:id=des}{td}{sub-section:DB7EA69302C56A01-CADFBFCF-4CA44805-96969E06-46ECA293C112FA31A73D90D7_des|text=|trigger=button}{sub-section}{sub-section:DB7EA69302C56A01-CADFBFCF-4CA44805-96969E06-46ECA293C112FA31A73D90D7_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:DB7EA69302C56A01-CADFBFCF-4CA44805-96969E06-46ECA293C112FA31A73D90D7_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:DB7EA69302C56A01-CADFBFCF-4CA44805-96969E06-46ECA293C112FA31A73D90D7_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:DB7EA69302C56A01-CADFBFCF-4CA44805-96969E06-46ECA293C112FA31A73D90D7_ret|text=|trigger=button}{sub-section}{sub-section:DB7EA69302C56A01-CADFBFCF-4CA44805-96969E06-46ECA293C112FA31A73D90D7_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:DB7EA69302C56A01-CADFBFCF-4CA44805-96969E06-46ECA293C112FA31A73D90D7_see|text=|trigger=button}{sub-section}{sub-section:DB7EA69302C56A01-CADFBFCF-4CA44805-96969E06-46ECA293C112FA31A73D90D7_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:DB7EA69302C56A01-CADFBFCF-4CA44805-96969E06-46ECA293C112FA31A73D90D7_see|text=|trigger=button}{sub-section}{sub-section:DB7EA69302C56A01-CADFBFCF-4CA44805-96969E06-46ECA293C112FA31A73D90D7_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:DB7EA69302C56A01-CADFBFCF-4CA44805-96969E06-46ECA293C112FA31A73D90D7_sam|text=|trigger=button}{sub-section}{sub-section:DB7EA69302C56A01-CADFBFCF-4CA44805-96969E06-46ECA293C112FA31A73D90D7_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=E2469A66AA82929C-8369511C-441A4026-83EFBB80-9643EB701C2DD335D5A6FE12}{tr:id=name}{td}h6.DOUBLECLICK{td}{tr}{tr:id=des}{td}{sub-section:E2469A66AA82929C-8369511C-441A4026-83EFBB80-9643EB701C2DD335D5A6FE12_des|text=|trigger=button}{sub-section}{sub-section:E2469A66AA82929C-8369511C-441A4026-83EFBB80-9643EB701C2DD335D5A6FE12_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:E2469A66AA82929C-8369511C-441A4026-83EFBB80-9643EB701C2DD335D5A6FE12_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:E2469A66AA82929C-8369511C-441A4026-83EFBB80-9643EB701C2DD335D5A6FE12_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:E2469A66AA82929C-8369511C-441A4026-83EFBB80-9643EB701C2DD335D5A6FE12_ret|text=|trigger=button}{sub-section}{sub-section:E2469A66AA82929C-8369511C-441A4026-83EFBB80-9643EB701C2DD335D5A6FE12_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:E2469A66AA82929C-8369511C-441A4026-83EFBB80-9643EB701C2DD335D5A6FE12_see|text=|trigger=button}{sub-section}{sub-section:E2469A66AA82929C-8369511C-441A4026-83EFBB80-9643EB701C2DD335D5A6FE12_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:E2469A66AA82929C-8369511C-441A4026-83EFBB80-9643EB701C2DD335D5A6FE12_see|text=|trigger=button}{sub-section}{sub-section:E2469A66AA82929C-8369511C-441A4026-83EFBB80-9643EB701C2DD335D5A6FE12_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:E2469A66AA82929C-8369511C-441A4026-83EFBB80-9643EB701C2DD335D5A6FE12_sam|text=|trigger=button}{sub-section}{sub-section:E2469A66AA82929C-8369511C-441A4026-83EFBB80-9643EB701C2DD335D5A6FE12_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=D8E1E829383CF5A1-81EB5894-4CCC48D9-BE9497FE-9146D3AF46A13887608B1897}{tr:id=name}{td}h6.FOCUSGAINED{td}{tr}{tr:id=des}{td}{sub-section:D8E1E829383CF5A1-81EB5894-4CCC48D9-BE9497FE-9146D3AF46A13887608B1897_des|text=|trigger=button}{sub-section}{sub-section:D8E1E829383CF5A1-81EB5894-4CCC48D9-BE9497FE-9146D3AF46A13887608B1897_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:D8E1E829383CF5A1-81EB5894-4CCC48D9-BE9497FE-9146D3AF46A13887608B1897_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:D8E1E829383CF5A1-81EB5894-4CCC48D9-BE9497FE-9146D3AF46A13887608B1897_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:D8E1E829383CF5A1-81EB5894-4CCC48D9-BE9497FE-9146D3AF46A13887608B1897_ret|text=|trigger=button}{sub-section}{sub-section:D8E1E829383CF5A1-81EB5894-4CCC48D9-BE9497FE-9146D3AF46A13887608B1897_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:D8E1E829383CF5A1-81EB5894-4CCC48D9-BE9497FE-9146D3AF46A13887608B1897_see|text=|trigger=button}{sub-section}{sub-section:D8E1E829383CF5A1-81EB5894-4CCC48D9-BE9497FE-9146D3AF46A13887608B1897_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:D8E1E829383CF5A1-81EB5894-4CCC48D9-BE9497FE-9146D3AF46A13887608B1897_see|text=|trigger=button}{sub-section}{sub-section:D8E1E829383CF5A1-81EB5894-4CCC48D9-BE9497FE-9146D3AF46A13887608B1897_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:D8E1E829383CF5A1-81EB5894-4CCC48D9-BE9497FE-9146D3AF46A13887608B1897_sam|text=|trigger=button}{sub-section}{sub-section:D8E1E829383CF5A1-81EB5894-4CCC48D9-BE9497FE-9146D3AF46A13887608B1897_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=5E526D4ACBF823FB-510BB326-4C1C43FE-829E8911-964F2DC413D469A593448BEC}{tr:id=name}{td}h6.FOCUSLOST{td}{tr}{tr:id=des}{td}{sub-section:5E526D4ACBF823FB-510BB326-4C1C43FE-829E8911-964F2DC413D469A593448BEC_des|text=|trigger=button}{sub-section}{sub-section:5E526D4ACBF823FB-510BB326-4C1C43FE-829E8911-964F2DC413D469A593448BEC_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:5E526D4ACBF823FB-510BB326-4C1C43FE-829E8911-964F2DC413D469A593448BEC_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:5E526D4ACBF823FB-510BB326-4C1C43FE-829E8911-964F2DC413D469A593448BEC_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:5E526D4ACBF823FB-510BB326-4C1C43FE-829E8911-964F2DC413D469A593448BEC_ret|text=|trigger=button}{sub-section}{sub-section:5E526D4ACBF823FB-510BB326-4C1C43FE-829E8911-964F2DC413D469A593448BEC_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:5E526D4ACBF823FB-510BB326-4C1C43FE-829E8911-964F2DC413D469A593448BEC_see|text=|trigger=button}{sub-section}{sub-section:5E526D4ACBF823FB-510BB326-4C1C43FE-829E8911-964F2DC413D469A593448BEC_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:5E526D4ACBF823FB-510BB326-4C1C43FE-829E8911-964F2DC413D469A593448BEC_see|text=|trigger=button}{sub-section}{sub-section:5E526D4ACBF823FB-510BB326-4C1C43FE-829E8911-964F2DC413D469A593448BEC_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:5E526D4ACBF823FB-510BB326-4C1C43FE-829E8911-964F2DC413D469A593448BEC_sam|text=|trigger=button}{sub-section}{sub-section:5E526D4ACBF823FB-510BB326-4C1C43FE-829E8911-964F2DC413D469A593448BEC_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=8734160A26D306E7-D650611C-43F04F66-85BE9FED-DF8393204D8F9BE234F86DAE}{tr:id=name}{td}h6.FORM{td}{tr}{tr:id=des}{td}{sub-section:8734160A26D306E7-D650611C-43F04F66-85BE9FED-DF8393204D8F9BE234F86DAE_des|text=|trigger=button}{sub-section}{sub-section:8734160A26D306E7-D650611C-43F04F66-85BE9FED-DF8393204D8F9BE234F86DAE_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:8734160A26D306E7-D650611C-43F04F66-85BE9FED-DF8393204D8F9BE234F86DAE_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:8734160A26D306E7-D650611C-43F04F66-85BE9FED-DF8393204D8F9BE234F86DAE_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:8734160A26D306E7-D650611C-43F04F66-85BE9FED-DF8393204D8F9BE234F86DAE_ret|text=|trigger=button}{sub-section}{sub-section:8734160A26D306E7-D650611C-43F04F66-85BE9FED-DF8393204D8F9BE234F86DAE_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:8734160A26D306E7-D650611C-43F04F66-85BE9FED-DF8393204D8F9BE234F86DAE_see|text=|trigger=button}{sub-section}{sub-section:8734160A26D306E7-D650611C-43F04F66-85BE9FED-DF8393204D8F9BE234F86DAE_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:8734160A26D306E7-D650611C-43F04F66-85BE9FED-DF8393204D8F9BE234F86DAE_see|text=|trigger=button}{sub-section}{sub-section:8734160A26D306E7-D650611C-43F04F66-85BE9FED-DF8393204D8F9BE234F86DAE_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:8734160A26D306E7-D650611C-43F04F66-85BE9FED-DF8393204D8F9BE234F86DAE_sam|text=|trigger=button}{sub-section}{sub-section:8734160A26D306E7-D650611C-43F04F66-85BE9FED-DF8393204D8F9BE234F86DAE_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=431800B4EE0425C7-AFB0E59A-44AC4EA3-9286AA20-84419B40E254F3C38758C19B}{tr:id=name}{td}h6.MODIFIER_ALT{td}{tr}{tr:id=des}{td}{sub-section:431800B4EE0425C7-AFB0E59A-44AC4EA3-9286AA20-84419B40E254F3C38758C19B_des|text=|trigger=button}{sub-section}{sub-section:431800B4EE0425C7-AFB0E59A-44AC4EA3-9286AA20-84419B40E254F3C38758C19B_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:431800B4EE0425C7-AFB0E59A-44AC4EA3-9286AA20-84419B40E254F3C38758C19B_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:431800B4EE0425C7-AFB0E59A-44AC4EA3-9286AA20-84419B40E254F3C38758C19B_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:431800B4EE0425C7-AFB0E59A-44AC4EA3-9286AA20-84419B40E254F3C38758C19B_ret|text=|trigger=button}{sub-section}{sub-section:431800B4EE0425C7-AFB0E59A-44AC4EA3-9286AA20-84419B40E254F3C38758C19B_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:431800B4EE0425C7-AFB0E59A-44AC4EA3-9286AA20-84419B40E254F3C38758C19B_see|text=|trigger=button}{sub-section}{sub-section:431800B4EE0425C7-AFB0E59A-44AC4EA3-9286AA20-84419B40E254F3C38758C19B_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:431800B4EE0425C7-AFB0E59A-44AC4EA3-9286AA20-84419B40E254F3C38758C19B_see|text=|trigger=button}{sub-section}{sub-section:431800B4EE0425C7-AFB0E59A-44AC4EA3-9286AA20-84419B40E254F3C38758C19B_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:431800B4EE0425C7-AFB0E59A-44AC4EA3-9286AA20-84419B40E254F3C38758C19B_sam|text=|trigger=button}{sub-section}{sub-section:431800B4EE0425C7-AFB0E59A-44AC4EA3-9286AA20-84419B40E254F3C38758C19B_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=42D6D51E8DBEF0BB-2603D91E-4B2A4E53-A9ABB288-F893C14879C94BC0945FF96B}{tr:id=name}{td}h6.MODIFIER_CTRL{td}{tr}{tr:id=des}{td}{sub-section:42D6D51E8DBEF0BB-2603D91E-4B2A4E53-A9ABB288-F893C14879C94BC0945FF96B_des|text=|trigger=button}{sub-section}{sub-section:42D6D51E8DBEF0BB-2603D91E-4B2A4E53-A9ABB288-F893C14879C94BC0945FF96B_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:42D6D51E8DBEF0BB-2603D91E-4B2A4E53-A9ABB288-F893C14879C94BC0945FF96B_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:42D6D51E8DBEF0BB-2603D91E-4B2A4E53-A9ABB288-F893C14879C94BC0945FF96B_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:42D6D51E8DBEF0BB-2603D91E-4B2A4E53-A9ABB288-F893C14879C94BC0945FF96B_ret|text=|trigger=button}{sub-section}{sub-section:42D6D51E8DBEF0BB-2603D91E-4B2A4E53-A9ABB288-F893C14879C94BC0945FF96B_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:42D6D51E8DBEF0BB-2603D91E-4B2A4E53-A9ABB288-F893C14879C94BC0945FF96B_see|text=|trigger=button}{sub-section}{sub-section:42D6D51E8DBEF0BB-2603D91E-4B2A4E53-A9ABB288-F893C14879C94BC0945FF96B_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:42D6D51E8DBEF0BB-2603D91E-4B2A4E53-A9ABB288-F893C14879C94BC0945FF96B_see|text=|trigger=button}{sub-section}{sub-section:42D6D51E8DBEF0BB-2603D91E-4B2A4E53-A9ABB288-F893C14879C94BC0945FF96B_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:42D6D51E8DBEF0BB-2603D91E-4B2A4E53-A9ABB288-F893C14879C94BC0945FF96B_sam|text=|trigger=button}{sub-section}{sub-section:42D6D51E8DBEF0BB-2603D91E-4B2A4E53-A9ABB288-F893C14879C94BC0945FF96B_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=D7B1D7C7AF7F9188-A0CC042E-44504996-AEA5A47B-645FA6F2BCA3368A791E91E1}{tr:id=name}{td}h6.MODIFIER_META{td}{tr}{tr:id=des}{td}{sub-section:D7B1D7C7AF7F9188-A0CC042E-44504996-AEA5A47B-645FA6F2BCA3368A791E91E1_des|text=|trigger=button}{sub-section}{sub-section:D7B1D7C7AF7F9188-A0CC042E-44504996-AEA5A47B-645FA6F2BCA3368A791E91E1_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:D7B1D7C7AF7F9188-A0CC042E-44504996-AEA5A47B-645FA6F2BCA3368A791E91E1_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:D7B1D7C7AF7F9188-A0CC042E-44504996-AEA5A47B-645FA6F2BCA3368A791E91E1_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:D7B1D7C7AF7F9188-A0CC042E-44504996-AEA5A47B-645FA6F2BCA3368A791E91E1_ret|text=|trigger=button}{sub-section}{sub-section:D7B1D7C7AF7F9188-A0CC042E-44504996-AEA5A47B-645FA6F2BCA3368A791E91E1_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:D7B1D7C7AF7F9188-A0CC042E-44504996-AEA5A47B-645FA6F2BCA3368A791E91E1_see|text=|trigger=button}{sub-section}{sub-section:D7B1D7C7AF7F9188-A0CC042E-44504996-AEA5A47B-645FA6F2BCA3368A791E91E1_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:D7B1D7C7AF7F9188-A0CC042E-44504996-AEA5A47B-645FA6F2BCA3368A791E91E1_see|text=|trigger=button}{sub-section}{sub-section:D7B1D7C7AF7F9188-A0CC042E-44504996-AEA5A47B-645FA6F2BCA3368A791E91E1_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:D7B1D7C7AF7F9188-A0CC042E-44504996-AEA5A47B-645FA6F2BCA3368A791E91E1_sam|text=|trigger=button}{sub-section}{sub-section:D7B1D7C7AF7F9188-A0CC042E-44504996-AEA5A47B-645FA6F2BCA3368A791E91E1_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=FA238A4E0F187718-1C0F2221-409242B4-BE9DAFCB-DF217D17361C45441DEDC94F}{tr:id=name}{td}h6.MODIFIER_SHIFT{td}{tr}{tr:id=des}{td}{sub-section:FA238A4E0F187718-1C0F2221-409242B4-BE9DAFCB-DF217D17361C45441DEDC94F_des|text=|trigger=button}{sub-section}{sub-section:FA238A4E0F187718-1C0F2221-409242B4-BE9DAFCB-DF217D17361C45441DEDC94F_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:FA238A4E0F187718-1C0F2221-409242B4-BE9DAFCB-DF217D17361C45441DEDC94F_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:FA238A4E0F187718-1C0F2221-409242B4-BE9DAFCB-DF217D17361C45441DEDC94F_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:FA238A4E0F187718-1C0F2221-409242B4-BE9DAFCB-DF217D17361C45441DEDC94F_ret|text=|trigger=button}{sub-section}{sub-section:FA238A4E0F187718-1C0F2221-409242B4-BE9DAFCB-DF217D17361C45441DEDC94F_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:FA238A4E0F187718-1C0F2221-409242B4-BE9DAFCB-DF217D17361C45441DEDC94F_see|text=|trigger=button}{sub-section}{sub-section:FA238A4E0F187718-1C0F2221-409242B4-BE9DAFCB-DF217D17361C45441DEDC94F_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:FA238A4E0F187718-1C0F2221-409242B4-BE9DAFCB-DF217D17361C45441DEDC94F_see|text=|trigger=button}{sub-section}{sub-section:FA238A4E0F187718-1C0F2221-409242B4-BE9DAFCB-DF217D17361C45441DEDC94F_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:FA238A4E0F187718-1C0F2221-409242B4-BE9DAFCB-DF217D17361C45441DEDC94F_sam|text=|trigger=button}{sub-section}{sub-section:FA238A4E0F187718-1C0F2221-409242B4-BE9DAFCB-DF217D17361C45441DEDC94F_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=C306DEADB86BFCAB-50A5082B-4AF1473A-BD84A187-E176E257265EBE38E1FC7F91}{tr:id=name}{td}h6.NONE{td}{tr}{tr:id=des}{td}{sub-section:C306DEADB86BFCAB-50A5082B-4AF1473A-BD84A187-E176E257265EBE38E1FC7F91_des|text=|trigger=button}{sub-section}{sub-section:C306DEADB86BFCAB-50A5082B-4AF1473A-BD84A187-E176E257265EBE38E1FC7F91_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:C306DEADB86BFCAB-50A5082B-4AF1473A-BD84A187-E176E257265EBE38E1FC7F91_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:C306DEADB86BFCAB-50A5082B-4AF1473A-BD84A187-E176E257265EBE38E1FC7F91_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:C306DEADB86BFCAB-50A5082B-4AF1473A-BD84A187-E176E257265EBE38E1FC7F91_ret|text=|trigger=button}{sub-section}{sub-section:C306DEADB86BFCAB-50A5082B-4AF1473A-BD84A187-E176E257265EBE38E1FC7F91_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:C306DEADB86BFCAB-50A5082B-4AF1473A-BD84A187-E176E257265EBE38E1FC7F91_see|text=|trigger=button}{sub-section}{sub-section:C306DEADB86BFCAB-50A5082B-4AF1473A-BD84A187-E176E257265EBE38E1FC7F91_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:C306DEADB86BFCAB-50A5082B-4AF1473A-BD84A187-E176E257265EBE38E1FC7F91_see|text=|trigger=button}{sub-section}{sub-section:C306DEADB86BFCAB-50A5082B-4AF1473A-BD84A187-E176E257265EBE38E1FC7F91_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:C306DEADB86BFCAB-50A5082B-4AF1473A-BD84A187-E176E257265EBE38E1FC7F91_sam|text=|trigger=button}{sub-section}{sub-section:C306DEADB86BFCAB-50A5082B-4AF1473A-BD84A187-E176E257265EBE38E1FC7F91_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=C221BCBB9915AF18-ABE48DD9-46854BFB-A46ABAF6-A4E550BA88B1F17EF6CE9862}{tr:id=name}{td}h6.ONDRAG{td}{tr}{tr:id=des}{td}{sub-section:C221BCBB9915AF18-ABE48DD9-46854BFB-A46ABAF6-A4E550BA88B1F17EF6CE9862_des|text=|trigger=button}{sub-section}{sub-section:C221BCBB9915AF18-ABE48DD9-46854BFB-A46ABAF6-A4E550BA88B1F17EF6CE9862_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:C221BCBB9915AF18-ABE48DD9-46854BFB-A46ABAF6-A4E550BA88B1F17EF6CE9862_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:C221BCBB9915AF18-ABE48DD9-46854BFB-A46ABAF6-A4E550BA88B1F17EF6CE9862_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:C221BCBB9915AF18-ABE48DD9-46854BFB-A46ABAF6-A4E550BA88B1F17EF6CE9862_ret|text=|trigger=button}{sub-section}{sub-section:C221BCBB9915AF18-ABE48DD9-46854BFB-A46ABAF6-A4E550BA88B1F17EF6CE9862_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:C221BCBB9915AF18-ABE48DD9-46854BFB-A46ABAF6-A4E550BA88B1F17EF6CE9862_see|text=|trigger=button}{sub-section}{sub-section:C221BCBB9915AF18-ABE48DD9-46854BFB-A46ABAF6-A4E550BA88B1F17EF6CE9862_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:C221BCBB9915AF18-ABE48DD9-46854BFB-A46ABAF6-A4E550BA88B1F17EF6CE9862_see|text=|trigger=button}{sub-section}{sub-section:C221BCBB9915AF18-ABE48DD9-46854BFB-A46ABAF6-A4E550BA88B1F17EF6CE9862_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:C221BCBB9915AF18-ABE48DD9-46854BFB-A46ABAF6-A4E550BA88B1F17EF6CE9862_sam|text=|trigger=button}{sub-section}{sub-section:C221BCBB9915AF18-ABE48DD9-46854BFB-A46ABAF6-A4E550BA88B1F17EF6CE9862_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=480F449FEAAA66D4-CB55DB4A-479A4B12-9644BB36-94B3BDA7F734FC659F8D00FC}{tr:id=name}{td}h6.ONDRAGOVER{td}{tr}{tr:id=des}{td}{sub-section:480F449FEAAA66D4-CB55DB4A-479A4B12-9644BB36-94B3BDA7F734FC659F8D00FC_des|text=|trigger=button}{sub-section}{sub-section:480F449FEAAA66D4-CB55DB4A-479A4B12-9644BB36-94B3BDA7F734FC659F8D00FC_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:480F449FEAAA66D4-CB55DB4A-479A4B12-9644BB36-94B3BDA7F734FC659F8D00FC_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:480F449FEAAA66D4-CB55DB4A-479A4B12-9644BB36-94B3BDA7F734FC659F8D00FC_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:480F449FEAAA66D4-CB55DB4A-479A4B12-9644BB36-94B3BDA7F734FC659F8D00FC_ret|text=|trigger=button}{sub-section}{sub-section:480F449FEAAA66D4-CB55DB4A-479A4B12-9644BB36-94B3BDA7F734FC659F8D00FC_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:480F449FEAAA66D4-CB55DB4A-479A4B12-9644BB36-94B3BDA7F734FC659F8D00FC_see|text=|trigger=button}{sub-section}{sub-section:480F449FEAAA66D4-CB55DB4A-479A4B12-9644BB36-94B3BDA7F734FC659F8D00FC_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:480F449FEAAA66D4-CB55DB4A-479A4B12-9644BB36-94B3BDA7F734FC659F8D00FC_see|text=|trigger=button}{sub-section}{sub-section:480F449FEAAA66D4-CB55DB4A-479A4B12-9644BB36-94B3BDA7F734FC659F8D00FC_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:480F449FEAAA66D4-CB55DB4A-479A4B12-9644BB36-94B3BDA7F734FC659F8D00FC_sam|text=|trigger=button}{sub-section}{sub-section:480F449FEAAA66D4-CB55DB4A-479A4B12-9644BB36-94B3BDA7F734FC659F8D00FC_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=5888F3ADD2A66579-52A777AB-40D54030-A3E3954F-BCEDCE3E7DAD82650D999545}{tr:id=name}{td}h6.ONDROP{td}{tr}{tr:id=des}{td}{sub-section:5888F3ADD2A66579-52A777AB-40D54030-A3E3954F-BCEDCE3E7DAD82650D999545_des|text=|trigger=button}{sub-section}{sub-section:5888F3ADD2A66579-52A777AB-40D54030-A3E3954F-BCEDCE3E7DAD82650D999545_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:5888F3ADD2A66579-52A777AB-40D54030-A3E3954F-BCEDCE3E7DAD82650D999545_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:5888F3ADD2A66579-52A777AB-40D54030-A3E3954F-BCEDCE3E7DAD82650D999545_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:5888F3ADD2A66579-52A777AB-40D54030-A3E3954F-BCEDCE3E7DAD82650D999545_ret|text=|trigger=button}{sub-section}{sub-section:5888F3ADD2A66579-52A777AB-40D54030-A3E3954F-BCEDCE3E7DAD82650D999545_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:5888F3ADD2A66579-52A777AB-40D54030-A3E3954F-BCEDCE3E7DAD82650D999545_see|text=|trigger=button}{sub-section}{sub-section:5888F3ADD2A66579-52A777AB-40D54030-A3E3954F-BCEDCE3E7DAD82650D999545_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:5888F3ADD2A66579-52A777AB-40D54030-A3E3954F-BCEDCE3E7DAD82650D999545_see|text=|trigger=button}{sub-section}{sub-section:5888F3ADD2A66579-52A777AB-40D54030-A3E3954F-BCEDCE3E7DAD82650D999545_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:5888F3ADD2A66579-52A777AB-40D54030-A3E3954F-BCEDCE3E7DAD82650D999545_sam|text=|trigger=button}{sub-section}{sub-section:5888F3ADD2A66579-52A777AB-40D54030-A3E3954F-BCEDCE3E7DAD82650D999545_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=1A369D257578CFDB-7CD823B2-455443DE-990EB393-E470A65C2F77DE3360F82485}{tr:id=name}{td}h6.RIGHTCLICK{td}{tr}{tr:id=des}{td}{sub-section:1A369D257578CFDB-7CD823B2-455443DE-990EB393-E470A65C2F77DE3360F82485_des|text=|trigger=button}{sub-section}{sub-section:1A369D257578CFDB-7CD823B2-455443DE-990EB393-E470A65C2F77DE3360F82485_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:1A369D257578CFDB-7CD823B2-455443DE-990EB393-E470A65C2F77DE3360F82485_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:1A369D257578CFDB-7CD823B2-455443DE-990EB393-E470A65C2F77DE3360F82485_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:1A369D257578CFDB-7CD823B2-455443DE-990EB393-E470A65C2F77DE3360F82485_ret|text=|trigger=button}{sub-section}{sub-section:1A369D257578CFDB-7CD823B2-455443DE-990EB393-E470A65C2F77DE3360F82485_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:1A369D257578CFDB-7CD823B2-455443DE-990EB393-E470A65C2F77DE3360F82485_see|text=|trigger=button}{sub-section}{sub-section:1A369D257578CFDB-7CD823B2-455443DE-990EB393-E470A65C2F77DE3360F82485_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:1A369D257578CFDB-7CD823B2-455443DE-990EB393-E470A65C2F77DE3360F82485_see|text=|trigger=button}{sub-section}{sub-section:1A369D257578CFDB-7CD823B2-455443DE-990EB393-E470A65C2F77DE3360F82485_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:1A369D257578CFDB-7CD823B2-455443DE-990EB393-E470A65C2F77DE3360F82485_sam|text=|trigger=button}{sub-section}{sub-section:1A369D257578CFDB-7CD823B2-455443DE-990EB393-E470A65C2F77DE3360F82485_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=DD5B2706EA74B34D-E5F659E7-45AA4567-8BAF8738-AC9B7177F7C1E9BA1EE81EAC}{tr:id=name}{td}h6.data{td}{tr}{tr:id=des}{td}{sub-section:DD5B2706EA74B34D-E5F659E7-45AA4567-8BAF8738-AC9B7177F7C1E9BA1EE81EAC_des|text=|trigger=button}{sub-section}{sub-section:DD5B2706EA74B34D-E5F659E7-45AA4567-8BAF8738-AC9B7177F7C1E9BA1EE81EAC_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:DD5B2706EA74B34D-E5F659E7-45AA4567-8BAF8738-AC9B7177F7C1E9BA1EE81EAC_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:DD5B2706EA74B34D-E5F659E7-45AA4567-8BAF8738-AC9B7177F7C1E9BA1EE81EAC_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:DD5B2706EA74B34D-E5F659E7-45AA4567-8BAF8738-AC9B7177F7C1E9BA1EE81EAC_ret|text=|trigger=button}{sub-section}{sub-section:DD5B2706EA74B34D-E5F659E7-45AA4567-8BAF8738-AC9B7177F7C1E9BA1EE81EAC_ret|trigger=none|class=sIndent}Object{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:DD5B2706EA74B34D-E5F659E7-45AA4567-8BAF8738-AC9B7177F7C1E9BA1EE81EAC_see|text=|trigger=button}{sub-section}{sub-section:DD5B2706EA74B34D-E5F659E7-45AA4567-8BAF8738-AC9B7177F7C1E9BA1EE81EAC_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:DD5B2706EA74B34D-E5F659E7-45AA4567-8BAF8738-AC9B7177F7C1E9BA1EE81EAC_see|text=|trigger=button}{sub-section}{sub-section:DD5B2706EA74B34D-E5F659E7-45AA4567-8BAF8738-AC9B7177F7C1E9BA1EE81EAC_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:DD5B2706EA74B34D-E5F659E7-45AA4567-8BAF8738-AC9B7177F7C1E9BA1EE81EAC_sam|text=|trigger=button}{sub-section}{sub-section:DD5B2706EA74B34D-E5F659E7-45AA4567-8BAF8738-AC9B7177F7C1E9BA1EE81EAC_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=AF93215FA320D3B4-0F9C6802-4C604F36-B1FC8BD8-4A4EE0F7567A546610EA60C3}{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:AF93215FA320D3B4-0F9C6802-4C604F36-B1FC8BD8-4A4EE0F7567A546610EA60C3_des|text=|trigger=button}{sub-section}{sub-section:AF93215FA320D3B4-0F9C6802-4C604F36-B1FC8BD8-4A4EE0F7567A546610EA60C3_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:AF93215FA320D3B4-0F9C6802-4C604F36-B1FC8BD8-4A4EE0F7567A546610EA60C3_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:AF93215FA320D3B4-0F9C6802-4C604F36-B1FC8BD8-4A4EE0F7567A546610EA60C3_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:AF93215FA320D3B4-0F9C6802-4C604F36-B1FC8BD8-4A4EE0F7567A546610EA60C3_ret|text=|trigger=button}{sub-section}{sub-section:AF93215FA320D3B4-0F9C6802-4C604F36-B1FC8BD8-4A4EE0F7567A546610EA60C3_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:AF93215FA320D3B4-0F9C6802-4C604F36-B1FC8BD8-4A4EE0F7567A546610EA60C3_see|text=|trigger=button}{sub-section}{sub-section:AF93215FA320D3B4-0F9C6802-4C604F36-B1FC8BD8-4A4EE0F7567A546610EA60C3_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:AF93215FA320D3B4-0F9C6802-4C604F36-B1FC8BD8-4A4EE0F7567A546610EA60C3_see|text=|trigger=button}{sub-section}{sub-section:AF93215FA320D3B4-0F9C6802-4C604F36-B1FC8BD8-4A4EE0F7567A546610EA60C3_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:AF93215FA320D3B4-0F9C6802-4C604F36-B1FC8BD8-4A4EE0F7567A546610EA60C3_sam|text=|trigger=button}{sub-section}{sub-section:AF93215FA320D3B4-0F9C6802-4C604F36-B1FC8BD8-4A4EE0F7567A546610EA60C3_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=5816C6CC2705DAF7-615E6D98-4F7E4213-90F7A995-CEDE1A26F8A9D924FB5B9149}{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:5816C6CC2705DAF7-615E6D98-4F7E4213-90F7A995-CEDE1A26F8A9D924FB5B9149_des|text=|trigger=button}{sub-section}{sub-section:5816C6CC2705DAF7-615E6D98-4F7E4213-90F7A995-CEDE1A26F8A9D924FB5B9149_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:5816C6CC2705DAF7-615E6D98-4F7E4213-90F7A995-CEDE1A26F8A9D924FB5B9149_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:5816C6CC2705DAF7-615E6D98-4F7E4213-90F7A995-CEDE1A26F8A9D924FB5B9149_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:5816C6CC2705DAF7-615E6D98-4F7E4213-90F7A995-CEDE1A26F8A9D924FB5B9149_ret|text=|trigger=button}{sub-section}{sub-section:5816C6CC2705DAF7-615E6D98-4F7E4213-90F7A995-CEDE1A26F8A9D924FB5B9149_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:5816C6CC2705DAF7-615E6D98-4F7E4213-90F7A995-CEDE1A26F8A9D924FB5B9149_see|text=|trigger=button}{sub-section}{sub-section:5816C6CC2705DAF7-615E6D98-4F7E4213-90F7A995-CEDE1A26F8A9D924FB5B9149_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:5816C6CC2705DAF7-615E6D98-4F7E4213-90F7A995-CEDE1A26F8A9D924FB5B9149_see|text=|trigger=button}{sub-section}{sub-section:5816C6CC2705DAF7-615E6D98-4F7E4213-90F7A995-CEDE1A26F8A9D924FB5B9149_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:5816C6CC2705DAF7-615E6D98-4F7E4213-90F7A995-CEDE1A26F8A9D924FB5B9149_sam|text=|trigger=button}{sub-section}{sub-section:5816C6CC2705DAF7-615E6D98-4F7E4213-90F7A995-CEDE1A26F8A9D924FB5B9149_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=4B3890320EEE31D9-3DB490BB-43BD402D-98D48307-535FE3F9C8CEC1AABB604891}{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:4B3890320EEE31D9-3DB490BB-43BD402D-98D48307-535FE3F9C8CEC1AABB604891_des|text=|trigger=button}{sub-section}{sub-section:4B3890320EEE31D9-3DB490BB-43BD402D-98D48307-535FE3F9C8CEC1AABB604891_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:4B3890320EEE31D9-3DB490BB-43BD402D-98D48307-535FE3F9C8CEC1AABB604891_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:4B3890320EEE31D9-3DB490BB-43BD402D-98D48307-535FE3F9C8CEC1AABB604891_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:4B3890320EEE31D9-3DB490BB-43BD402D-98D48307-535FE3F9C8CEC1AABB604891_ret|text=|trigger=button}{sub-section}{sub-section:4B3890320EEE31D9-3DB490BB-43BD402D-98D48307-535FE3F9C8CEC1AABB604891_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:4B3890320EEE31D9-3DB490BB-43BD402D-98D48307-535FE3F9C8CEC1AABB604891_see|text=|trigger=button}{sub-section}{sub-section:4B3890320EEE31D9-3DB490BB-43BD402D-98D48307-535FE3F9C8CEC1AABB604891_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:4B3890320EEE31D9-3DB490BB-43BD402D-98D48307-535FE3F9C8CEC1AABB604891_see|text=|trigger=button}{sub-section}{sub-section:4B3890320EEE31D9-3DB490BB-43BD402D-98D48307-535FE3F9C8CEC1AABB604891_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:4B3890320EEE31D9-3DB490BB-43BD402D-98D48307-535FE3F9C8CEC1AABB604891_sam|text=|trigger=button}{sub-section}{sub-section:4B3890320EEE31D9-3DB490BB-43BD402D-98D48307-535FE3F9C8CEC1AABB604891_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=B157016869E758DA-DF9FA44F-43C64770-8AF291A8-969D2A08EF050AACB22E54F7}{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:B157016869E758DA-DF9FA44F-43C64770-8AF291A8-969D2A08EF050AACB22E54F7_des|text=|trigger=button}{sub-section}{sub-section:B157016869E758DA-DF9FA44F-43C64770-8AF291A8-969D2A08EF050AACB22E54F7_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:B157016869E758DA-DF9FA44F-43C64770-8AF291A8-969D2A08EF050AACB22E54F7_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:B157016869E758DA-DF9FA44F-43C64770-8AF291A8-969D2A08EF050AACB22E54F7_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:B157016869E758DA-DF9FA44F-43C64770-8AF291A8-969D2A08EF050AACB22E54F7_ret|text=|trigger=button}{sub-section}{sub-section:B157016869E758DA-DF9FA44F-43C64770-8AF291A8-969D2A08EF050AACB22E54F7_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:B157016869E758DA-DF9FA44F-43C64770-8AF291A8-969D2A08EF050AACB22E54F7_see|text=|trigger=button}{sub-section}{sub-section:B157016869E758DA-DF9FA44F-43C64770-8AF291A8-969D2A08EF050AACB22E54F7_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:B157016869E758DA-DF9FA44F-43C64770-8AF291A8-969D2A08EF050AACB22E54F7_see|text=|trigger=button}{sub-section}{sub-section:B157016869E758DA-DF9FA44F-43C64770-8AF291A8-969D2A08EF050AACB22E54F7_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:B157016869E758DA-DF9FA44F-43C64770-8AF291A8-969D2A08EF050AACB22E54F7_sam|text=|trigger=button}{sub-section}{sub-section:B157016869E758DA-DF9FA44F-43C64770-8AF291A8-969D2A08EF050AACB22E54F7_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=B6D16DAE74AC6A52-B0184156-4F8A4D30-A74CAE09-9216760E5F5ABE5FB9ECE0D0}{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:B6D16DAE74AC6A52-B0184156-4F8A4D30-A74CAE09-9216760E5F5ABE5FB9ECE0D0_des|text=|trigger=button}{sub-section}{sub-section:B6D16DAE74AC6A52-B0184156-4F8A4D30-A74CAE09-9216760E5F5ABE5FB9ECE0D0_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:B6D16DAE74AC6A52-B0184156-4F8A4D30-A74CAE09-9216760E5F5ABE5FB9ECE0D0_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:B6D16DAE74AC6A52-B0184156-4F8A4D30-A74CAE09-9216760E5F5ABE5FB9ECE0D0_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:B6D16DAE74AC6A52-B0184156-4F8A4D30-A74CAE09-9216760E5F5ABE5FB9ECE0D0_ret|text=|trigger=button}{sub-section}{sub-section:B6D16DAE74AC6A52-B0184156-4F8A4D30-A74CAE09-9216760E5F5ABE5FB9ECE0D0_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:B6D16DAE74AC6A52-B0184156-4F8A4D30-A74CAE09-9216760E5F5ABE5FB9ECE0D0_see|text=|trigger=button}{sub-section}{sub-section:B6D16DAE74AC6A52-B0184156-4F8A4D30-A74CAE09-9216760E5F5ABE5FB9ECE0D0_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:B6D16DAE74AC6A52-B0184156-4F8A4D30-A74CAE09-9216760E5F5ABE5FB9ECE0D0_see|text=|trigger=button}{sub-section}{sub-section:B6D16DAE74AC6A52-B0184156-4F8A4D30-A74CAE09-9216760E5F5ABE5FB9ECE0D0_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:B6D16DAE74AC6A52-B0184156-4F8A4D30-A74CAE09-9216760E5F5ABE5FB9ECE0D0_sam|text=|trigger=button}{sub-section}{sub-section:B6D16DAE74AC6A52-B0184156-4F8A4D30-A74CAE09-9216760E5F5ABE5FB9ECE0D0_sam|class=sIndent|trigger=none}{code:language=javascript}
event.getTimestamp();
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=CB639834F02B7865-41212A8E-40AC42D6-A28D8006-8D676F2911CE2519C5232008}{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:CB639834F02B7865-41212A8E-40AC42D6-A28D8006-8D676F2911CE2519C5232008_des|text=|trigger=button}{sub-section}{sub-section:CB639834F02B7865-41212A8E-40AC42D6-A28D8006-8D676F2911CE2519C5232008_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:CB639834F02B7865-41212A8E-40AC42D6-A28D8006-8D676F2911CE2519C5232008_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:CB639834F02B7865-41212A8E-40AC42D6-A28D8006-8D676F2911CE2519C5232008_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:CB639834F02B7865-41212A8E-40AC42D6-A28D8006-8D676F2911CE2519C5232008_ret|text=|trigger=button}{sub-section}{sub-section:CB639834F02B7865-41212A8E-40AC42D6-A28D8006-8D676F2911CE2519C5232008_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:CB639834F02B7865-41212A8E-40AC42D6-A28D8006-8D676F2911CE2519C5232008_see|text=|trigger=button}{sub-section}{sub-section:CB639834F02B7865-41212A8E-40AC42D6-A28D8006-8D676F2911CE2519C5232008_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:CB639834F02B7865-41212A8E-40AC42D6-A28D8006-8D676F2911CE2519C5232008_see|text=|trigger=button}{sub-section}{sub-section:CB639834F02B7865-41212A8E-40AC42D6-A28D8006-8D676F2911CE2519C5232008_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:CB639834F02B7865-41212A8E-40AC42D6-A28D8006-8D676F2911CE2519C5232008_sam|text=|trigger=button}{sub-section}{sub-section:CB639834F02B7865-41212A8E-40AC42D6-A28D8006-8D676F2911CE2519C5232008_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=ED0849CBC004A263-18B9598A-49444C76-9BAF9F74-EC01926DB14A3300E33A5FBF}{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:ED0849CBC004A263-18B9598A-49444C76-9BAF9F74-EC01926DB14A3300E33A5FBF_des|text=|trigger=button}{sub-section}{sub-section:ED0849CBC004A263-18B9598A-49444C76-9BAF9F74-EC01926DB14A3300E33A5FBF_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:ED0849CBC004A263-18B9598A-49444C76-9BAF9F74-EC01926DB14A3300E33A5FBF_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:ED0849CBC004A263-18B9598A-49444C76-9BAF9F74-EC01926DB14A3300E33A5FBF_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:ED0849CBC004A263-18B9598A-49444C76-9BAF9F74-EC01926DB14A3300E33A5FBF_ret|text=|trigger=button}{sub-section}{sub-section:ED0849CBC004A263-18B9598A-49444C76-9BAF9F74-EC01926DB14A3300E33A5FBF_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:ED0849CBC004A263-18B9598A-49444C76-9BAF9F74-EC01926DB14A3300E33A5FBF_see|text=|trigger=button}{sub-section}{sub-section:ED0849CBC004A263-18B9598A-49444C76-9BAF9F74-EC01926DB14A3300E33A5FBF_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:ED0849CBC004A263-18B9598A-49444C76-9BAF9F74-EC01926DB14A3300E33A5FBF_see|text=|trigger=button}{sub-section}{sub-section:ED0849CBC004A263-18B9598A-49444C76-9BAF9F74-EC01926DB14A3300E33A5FBF_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:ED0849CBC004A263-18B9598A-49444C76-9BAF9F74-EC01926DB14A3300E33A5FBF_sam|text=|trigger=button}{sub-section}{sub-section:ED0849CBC004A263-18B9598A-49444C76-9BAF9F74-EC01926DB14A3300E33A5FBF_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=2BED173947C809CF-FCFA016A-4AF643D4-95ED8BD4-A255E39A781D2C12D0D34766}{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:2BED173947C809CF-FCFA016A-4AF643D4-95ED8BD4-A255E39A781D2C12D0D34766_des|text=|trigger=button}{sub-section}{sub-section:2BED173947C809CF-FCFA016A-4AF643D4-95ED8BD4-A255E39A781D2C12D0D34766_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:2BED173947C809CF-FCFA016A-4AF643D4-95ED8BD4-A255E39A781D2C12D0D34766_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:2BED173947C809CF-FCFA016A-4AF643D4-95ED8BD4-A255E39A781D2C12D0D34766_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:2BED173947C809CF-FCFA016A-4AF643D4-95ED8BD4-A255E39A781D2C12D0D34766_ret|text=|trigger=button}{sub-section}{sub-section:2BED173947C809CF-FCFA016A-4AF643D4-95ED8BD4-A255E39A781D2C12D0D34766_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:2BED173947C809CF-FCFA016A-4AF643D4-95ED8BD4-A255E39A781D2C12D0D34766_see|text=|trigger=button}{sub-section}{sub-section:2BED173947C809CF-FCFA016A-4AF643D4-95ED8BD4-A255E39A781D2C12D0D34766_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:2BED173947C809CF-FCFA016A-4AF643D4-95ED8BD4-A255E39A781D2C12D0D34766_see|text=|trigger=button}{sub-section}{sub-section:2BED173947C809CF-FCFA016A-4AF643D4-95ED8BD4-A255E39A781D2C12D0D34766_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:2BED173947C809CF-FCFA016A-4AF643D4-95ED8BD4-A255E39A781D2C12D0D34766_sam|text=|trigger=button}{sub-section}{sub-section:2BED173947C809CF-FCFA016A-4AF643D4-95ED8BD4-A255E39A781D2C12D0D34766_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}