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:id=|class=servoy sSummary}{colgroup}{column:padding=0px|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#RIGHTCLICK]
Constant returned by JSEvent.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#ONDRAGEND]
Constant returned by JSEvent.{td}{table}\\ 

{table:id=|class=servoy sSummary}{colgroup}{column:padding=0px|width=80px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Property Summary{th}{tr}{tbody}{tbody}{tr}{td}[StringObject]{td}{td}[#ONDRAGOVER#data]
Constant returned by JSEvent
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}{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}\\ 

{tabletable}\\ 

{table:id=|class=servoy sSummary}{colgroup}{column:padding=0px|width=80px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}PropertyMethod Summary{th}{tr}{tbody}{tr}{td}[ObjectString]{td}{td}[#data#getElementName]\()
Areturns datathe objectname thatof specificthe eventselement, can set,be anull userif canthe set data back toform was the systemsource forof events that supports thisthe event.{td}{tr}{tbody}{table}\\ 

{table:id=|class=servoy sSummary}{colgroup}{column:padding=0px|width=80px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Method Summary{th}{tr}{tbody}{tr}{tbody}{tr}{td}[String]{td}{td}[#getElementName#getFormName]\()
returns the name of the element, can be null ifform the formelement was the source of the eventplaced on.{td}{tr}{tbody}{tbody}{tr}{td}[StringNumber]{td}{td}[#getFormName#getModifiers]\()
returnsReturns the namemodifiers of the formevent, the element was placed onsee JSEvent.{td}{tr}{tbody}{tbody}{tr}{td}[NumberObject]{td}{td}[#getModifiers#getSource]\()
Returnsreturns the source modifierscomponent/element 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, relative to the component that fired it, if applicable.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#getY]\()
Returns the y position of the event, relative to the component that fired it, if applicable.{td}{tr}{tbody}{table}\\ 

{table:id=constant|class=servoy sDetail}{colgroup}{column:padding=0px|width=100%}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Constants Details{th}{tr}{tbody:id=ACTION|class=node}{tr:id=name}{td}h6.ACTION{td}{tr}{tr:id=des}{td}{sub-section:ACTION_des|text=|trigger=button}{sub-section}{sub-section:ACTION_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=snc}{td}*Since*\\{sub-section:ACTION_snc|text=|trigger=button}{sub-section}{sub-section:ACTION_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:ACTION_prs|text=|trigger=button}{sub-section}{sub-section:ACTION_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:ACTION_ret|text=|trigger=button}{sub-section}{sub-section:ACTION_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:ACTION_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:ACTION_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:ACTION_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:ACTION_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:ACTION_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:ACTION_sam|trigger=none}{code:language=javascript}
if (event.getType() == JSEvent.ACTION) 
{
   // its an action event.
}
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=DATACHANGE|class=node}{tr:id=name}{td}h6.DATACHANGE{td}{tr}{tr:id=des}{td}{sub-section:DATACHANGE_des|text=|trigger=button}{sub-section}{sub-section:DATACHANGE_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=snc}{td}*Since*\\{sub-section:DATACHANGE_snc|text=|trigger=button}{sub-section}{sub-section:DATACHANGE_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:DATACHANGE_prs|text=|trigger=button}{sub-section}{sub-section:DATACHANGE_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:DATACHANGE_ret|text=|trigger=button}{sub-section}{sub-section:DATACHANGE_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:DATACHANGE_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:DATACHANGE_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:DATACHANGE_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:DATACHANGE_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:DATACHANGE_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:DATACHANGE_sam|trigger=none}{code:language=javascript}
if (event.getType() == JSEvent.DATACHANGE) 
{
   // its a data change event
}
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=DOUBLECLICK|class=node}{tr:id=name}{td}h6.DOUBLECLICK{td}{tr}{tr:id=des}{td}{sub-section:DOUBLECLICK_des|text=|trigger=button}{sub-section}{sub-section:DOUBLECLICK_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=snc}{td}*Since*\\{sub-section:DOUBLECLICK_snc|text=|trigger=button}{sub-section}{sub-section:DOUBLECLICK_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:DOUBLECLICK_prs|text=|trigger=button}{sub-section}{sub-section:DOUBLECLICK_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:DOUBLECLICK_ret|text=|trigger=button}{sub-section}{sub-section:DOUBLECLICK_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:DOUBLECLICK_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:DOUBLECLICK_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:DOUBLECLICK_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:DOUBLECLICK_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:DOUBLECLICK_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:DOUBLECLICK_sam|trigger=none}{code:language=javascript}
if (event.getType() == JSEvent.DOUBLECLICK) 
{
   // its a double click event.
}
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=FOCUSGAINED|class=node}{tr:id=name}{td}h6.FOCUSGAINED{td}{tr}{tr:id=des}{td}{sub-section:FOCUSGAINED_des|text=|trigger=button}{sub-section}{sub-section:FOCUSGAINED_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=snc}{td}*Since*\\{sub-section:FOCUSGAINED_snc|text=|trigger=button}{sub-section}{sub-section:FOCUSGAINED_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:FOCUSGAINED_prs|text=|trigger=button}{sub-section}{sub-section:FOCUSGAINED_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:FOCUSGAINED_ret|text=|trigger=button}{sub-section}{sub-section:FOCUSGAINED_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:FOCUSGAINED_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:FOCUSGAINED_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:FOCUSGAINED_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:FOCUSGAINED_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:FOCUSGAINED_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:FOCUSGAINED_sam|trigger=none}{code:language=javascript}
if (event.getType() == JSEvent.FOCUSGAINED) 
{
   // its a focus gained event.
}
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{tdDetails{th}{tr}{tbody}{tbody:id=FOCUSLOSTACTION|class=node}{tr:id=name}{td}h6.FOCUSLOSTACTION{td}{tr}{tr:id=des}{td}{sub-section:FOCUSLOSTACTION_des|text=|trigger=button}{sub-section}{sub-section:FOCUSLOSTACTION_des|trigger=none|class=sIndent}Constant returned by JSEvent.getType() in a method that is attached to an onFocusLost or the forms onElementFocusLost onAction event.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:FOCUSLOSTACTION_snc|text=|trigger=button}{sub-section}{sub-section:FOCUSLOSTACTION_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:FOCUSLOSTACTION_prs|text=|trigger=button}{sub-section}{sub-section:FOCUSLOSTACTION_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:FOCUSLOSTACTION_ret|text=|trigger=button}{sub-section}{sub-section:FOCUSLOSTACTION_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:FOCUSLOSTACTION_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:FOCUSLOSTACTION_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:FOCUSLOSTACTION_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:FOCUSLOSTACTION_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:FOCUSLOSTACTION_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:FOCUSLOSTACTION_sam|trigger=none}{code:language=javascript}
if (event.getType() == JSEvent.FOCUSLOSTACTION) 
{
   	// its aan focusaction lost event.
}
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=FORMDATACHANGE|class=node}{tr:id=name}{td}h6.FORMDATACHANGE{td}{tr}{tr:id=des}{td}{sub-section:FORMDATACHANGE_des|text=|trigger=button}{sub-section}{sub-section:FORMDATACHANGE_des|trigger=none|class=sIndent}Constant returned by JSEvent.getType() in a method that is attached to aan formonDataChange event (like onShow) or command (like onDeleteRecord).{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:FORMDATACHANGE_snc|text=|trigger=button}{sub-section}{sub-section:FORMDATACHANGE_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:FORMDATACHANGE_prs|text=|trigger=button}{sub-section}{sub-section:FORMDATACHANGE_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:FORMDATACHANGE_ret|text=|trigger=button}{sub-section}{sub-section:FORMDATACHANGE_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:FORMDATACHANGE_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:FORMDATACHANGE_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:FORMDATACHANGE_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:FORMDATACHANGE_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:FORMDATACHANGE_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:FORMDATACHANGE_sam|trigger=none}{code:language=javascript}
if (event.getType() == JSEvent.FORMDATACHANGE) 
{
   	// its a data formchange event or command
}
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=MODIFIER_ALTDOUBLECLICK|class=node}{tr:id=name}{td}h6.MODIFIER_ALTDOUBLECLICK{td}{tr}{tr:id=des}{td}{sub-section:MODIFIERDOUBLECLICK_ALT_des|text=|trigger=button}{sub-section}{sub-section:MODIFIER_ALTDOUBLECLICK_des|trigger=none|class=sIndent}Constant for the ALT modifierreturned by JSEvent.getType() in a method that canis attached beto returnedan byonDoubleClick JSEventevent.getModifiers();{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:MODIFIERDOUBLECLICK_ALT_snc|text=|trigger=button}{sub-section}{sub-section:MODIFIER_ALTDOUBLECLICK_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:MODIFIER_ALTDOUBLECLICK_prs|text=|trigger=button}{sub-section}{sub-section:MODIFIERDOUBLECLICK_ALT_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:MODIFIERDOUBLECLICK_ALT_ret|text=|trigger=button}{sub-section}{sub-section:MODIFIER_ALTDOUBLECLICK_ret|trigger=none|class=sIndent}[NumberString]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:MODIFIERDOUBLECLICK_ALT_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:MODIFIERDOUBLECLICK_ALT_see|trigger=none}[.getModifiers|JSEvent#getModifiers]\\ {sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:MODIFIERDOUBLECLICK_ALT_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:MODIFIERDOUBLECLICK_ALT_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:MODIFIERDOUBLECLICK_ALT_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:MODIFIER_ALTDOUBLECLICK_sam|trigger=none}{code:language=javascript}
//test if the SHIFT modifier is used.
if (event.getModifiersgetType() &== JSEvent.MODIFIER_SHIFTDOUBLECLICK) 
{
	//do shift action its a double click event.
}
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=MODIFIER_CTRLFOCUSGAINED|class=node}{tr:id=name}{td}h6.MODIFIER_CTRLFOCUSGAINED{td}{tr}{tr:id=des}{td}{sub-section:MODIFIER_CTRLFOCUSGAINED_des|text=|trigger=button}{sub-section}{sub-section:MODIFIERFOCUSGAINED_CTRL_des|trigger=none|class=sIndent}Constant for the CTRL modifier that can be returned by JSEvent.getModifiers();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=snc}{td}*Since*\\{sub-section:MODIFIER_CTRLFOCUSGAINED_snc|text=|trigger=button}{sub-section}{sub-section:MODIFIER_CTRLFOCUSGAINED_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:MODIFIERFOCUSGAINED_CTRL_prs|text=|trigger=button}{sub-section}{sub-section:MODIFIER_CTRLFOCUSGAINED_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:MODIFIER_CTRLFOCUSGAINED_ret|text=|trigger=button}{sub-section}{sub-section:MODIFIER_CTRLFOCUSGAINED_ret|trigger=none|class=sIndent}[NumberString]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:MODIFIERFOCUSGAINED_CTRL_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:MODIFIER_CTRLFOCUSGAINED_see|trigger=none}[.getModifiers|JSEvent#getModifiers]\\ {sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:MODIFIERFOCUSGAINED_CTRL_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:MODIFIER_CTRLFOCUSGAINED_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:MODIFIER_CTRLFOCUSGAINED_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:MODIFIER_CTRLFOCUSGAINED_sam|trigger=none}{code:language=javascript}
//test if the SHIFT modifier is used.
{code:language=javascript}
if (event.getModifiersgetType() &== JSEvent.MODIFIER_SHIFTFOCUSGAINED) 
{
	//do shift action its a focus gained event.
}
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=MODIFIER_METAFOCUSLOST|class=node}{tr:id=name}{td}h6.MODIFIER_METAFOCUSLOST{td}{tr}{tr:id=des}{td}{sub-section:MODIFIER_METAFOCUSLOST_des|text=|trigger=button}{sub-section}{sub-section:MODIFIER_METAFOCUSLOST_des|trigger=none|class=sIndent}Constant for the META modifier that can be returned by JSEvent.getModifiers();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=snc}{td}*Since*\\{sub-section:MODIFIER_METAFOCUSLOST_snc|text=|trigger=button}{sub-section}{sub-section:MODIFIER_METAFOCUSLOST_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:MODIFIERFOCUSLOST_META_prs|text=|trigger=button}{sub-section}{sub-section:MODIFIERFOCUSLOST_META_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:MODIFIERFOCUSLOST_META_ret|text=|trigger=button}{sub-section}{sub-section:MODIFIER_METAFOCUSLOST_ret|trigger=none|class=sIndent}[NumberString]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:MODIFIER_METAFOCUSLOST_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:MODIFIER_METAFOCUSLOST_see|trigger=none}[.getModifiers|JSEvent#getModifiers]\\ =none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:MODIFIERFOCUSLOST_META_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:MODIFIER_METAFOCUSLOST_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:MODIFIER_METAFOCUSLOST_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:MODIFIERFOCUSLOST_META_sam|trigger=none}{code:language=javascript}
//test if the SHIFT modifier
is used.
if (event.getModifiersgetType() &== JSEvent.MODIFIER_SHIFTFOCUSLOST) 
{
	//do shift action its a focus lost event.
}
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=MODIFIER_SHIFTFORM|class=node}{tr:id=name}{td}h6.MODIFIER_SHIFTFORM{td}{tr}{tr:id=des}{td}{sub-section:MODIFIERFORM_SHIFT_des|text=|trigger=button}{sub-section}{sub-section:MODIFIERFORM_SHIFT_des|trigger=none|class=sIndent}Constant for the SHIFT modifier that can be returned by JSEvent.getModifiers(); returned by JSEvent.getType() in a method that is attached to a form event (like onShow) or command (like onDeleteRecord){sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:MODIFIER_SHIFTFORM_snc|text=|trigger=button}{sub-section}{sub-section:MODIFIER_SHIFTFORM_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:MODIFIER_SHIFTFORM_prs|text=|trigger=button}{sub-section}{sub-section:MODIFIERFORM_SHIFT_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:MODIFIER_SHIFTFORM_ret|text=|trigger=button}{sub-section}{sub-section:MODIFIER_SHIFTFORM_ret|trigger=none|class=sIndent}[NumberString]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:MODIFIER_SHIFTFORM_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:MODIFIERFORM_SHIFT_see|trigger=none}[.getModifiers|JSEvent#getModifiers]\\ {sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:MODIFIER_SHIFTFORM_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:MODIFIERFORM_SHIFT_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:MODIFIER_SHIFTFORM_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:MODIFIER_SHIFTFORM_sam|trigger=none}{code:language=javascript}
//test
if the SHIFT modifier is used.
if (event.getModifiersgetType() &== JSEvent.MODIFIER_SHIFTFORM) 
{
	//do shift action its a form event or command
}
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=NONEMODIFIER_ALT|class=node}{tr:id=name}{td}h6.NONEMODIFIER_ALT{td}{tr}{tr:id=des}{td}{sub-section:NONEMODIFIER_ALT_des|text=|trigger=button}{sub-section}{sub-section:NONEMODIFIER_ALT_des|trigger=none|class=sIndent}Constant returned by JSEvent.getType() if for the eventALT ismodifier notthat usedcan inbe areturned known event or command.by JSEvent.getModifiers();{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:NONEMODIFIER_ALT_snc|text=|trigger=button}{sub-section}{sub-section:NONEMODIFIER_ALT_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:NONEMODIFIER_ALT_prs|text=|trigger=button}{sub-section}{sub-section:NONEMODIFIER_ALT_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:NONEMODIFIER_ALT_ret|text=|trigger=button}{sub-section}{sub-section:NONEMODIFIER_ALT_ret|trigger=none|class=sIndent}[StringNumber]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:NONEMODIFIER_ALT_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:NONEMODIFIER_ALT_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:NONEMODIFIER_ALT_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:NONEMODIFIER_ALT_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:NONEMODIFIER_ALT_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:NONEMODIFIER_ALT_sam|trigger=none}{code:language=javascript}
//test if the SHIFT modifier is used.
if (event.getTypegetModifiers() ==& JSEvent.NONEMODIFIER_SHIFT) 
{
   	//do typeshift isaction
not set.
}
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=ONDRAGMODIFIER_CTRL|class=node}{tr:id=name}{td}h6.ONDRAGMODIFIER_CTRL{td}{tr}{tr:id=des}{td}{sub-section:ONDRAGMODIFIER_CTRL_des|text=|trigger=button}{sub-section}{sub-section:ONDRAGMODIFIER_CTRL_des|trigger=none|class=sIndent}Constant returnedfor by JSEvent.getType() in a methodthe CTRL modifier that iscan attachedbe to anreturned onDragby eventJSEvent.getModifiers();{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:ONDRAGMODIFIER_CTRL_snc|text=|trigger=button}{sub-section}{sub-section:ONDRAGMODIFIER_CTRL_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:ONDRAGMODIFIER_CTRL_prs|text=|trigger=button}{sub-section}{sub-section:ONDRAGMODIFIER_CTRL_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:ONDRAGMODIFIER_CTRL_ret|text=|trigger=button}{sub-section}{sub-section:ONDRAGMODIFIER_CTRL_ret|trigger=none|class=sIndent}[StringNumber]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:ONDRAGMODIFIER_CTRL_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:ONDRAGMODIFIER_CTRL_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:ONDRAGMODIFIER_CTRL_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:ONDRAGMODIFIER_CTRL_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:ONDRAGMODIFIER_CTRL_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:ONDRAGMODIFIER_CTRL_sam|trigger=none}{code:language=javascript}
if
(event.getType() == JSEvent.ONDRAG) 
{
   //test itsif anthe ondragSHIFT eventmodifier is used.
 if (event.getElementNamegetModifiers() == 'todragelement'& JSEvent.MODIFIER_SHIFT)
{
	//do shift 	return DRAGNDROP.COPY
action
}
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=ONDRAGENDMODIFIER_META|class=node}{tr:id=name}{td}h6.ONDRAGENDMODIFIER_META{td}{tr}{tr:id=des}{td}{sub-section:ONDRAGENDMODIFIER_META_des|text=|trigger=button}{sub-section}{sub-section:ONDRAGENDMODIFIER_META_des|trigger=none|class=sIndent}Constant returnedfor by JSEvent.getType() in a methodthe META modifier that iscan attachedbe toreturned anby onDragEnd event.JSEvent.getModifiers();{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:ONDRAGENDMODIFIER_META_snc|text=|trigger=button}{sub-section}{sub-section:ONDRAGENDMODIFIER_META_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:ONDRAGENDMODIFIER_META_prs|text=|trigger=button}{sub-section}{sub-section:ONDRAGENDMODIFIER_META_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:ONDRAGENDMODIFIER_META_ret|text=|trigger=button}{sub-section}{sub-section:ONDRAGENDMODIFIER_META_ret|trigger=none|class=sIndent}[StringNumber]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:ONDRAGENDMODIFIER_META_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:ONDRAGENDMODIFIER_META_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:ONDRAGENDMODIFIER_META_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:ONDRAGENDMODIFIER_META_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:ONDRAGENDMODIFIER_META_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:ONDRAGENDMODIFIER_META_sam|trigger=none}{code:language=javascript}
if
(event.getType() == JSEvent.ONDRAGEND) 
{
   // its an on drag end event.
   // return true if the drop has been completed successfully
   return event.isDropSuccess(); 
//test if the SHIFT modifier is used.
if (event.getModifiers() & JSEvent.MODIFIER_SHIFT)
{
	//do shift action
}
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=ONDRAGOVERMODIFIER_SHIFT|class=node}{tr:id=name}{td}h6.ONDRAGOVERMODIFIER_SHIFT{td}{tr}{tr:id=des}{td}{sub-section:ONDRAGOVERMODIFIER_SHIFT_des|text=|trigger=button}{sub-section}{sub-section:ONDRAGOVERMODIFIER_SHIFT_des|trigger=none|class=sIndent}Constant returnedfor by JSEvent.getType() in a method that is attached to an onDragOver event.the SHIFT modifier that can be returned by JSEvent.getModifiers();{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:ONDRAGOVERMODIFIER_SHIFT_snc|text=|trigger=button}{sub-section}{sub-section:ONDRAGOVERMODIFIER_SHIFT_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:ONDRAGOVERMODIFIER_SHIFT_prs|text=|trigger=button}{sub-section}{sub-section:ONDRAGOVERMODIFIER_SHIFT_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:ONDRAGOVERMODIFIER_SHIFT_ret|text=|trigger=button}{sub-section}{sub-section:ONDRAGOVERMODIFIER_SHIFT_ret|trigger=none|class=sIndent}[StringNumber]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:ONDRAGOVERMODIFIER_SHIFT_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:ONDRAGOVERMODIFIER_SHIFT_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:ONDRAGOVERMODIFIER_SHIFT_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:ONDRAGOVERMODIFIER_SHIFT_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:ONDRAGOVERMODIFIER_SHIFT_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:ONDRAGOVER:MODIFIER_SHIFT_sam|trigger=none}{code:language=javascript}
//test if the SHIFT modifier is used.
if (event.getTypegetModifiers() ==& JSEvent.ONDRAGOVERMODIFIER_SHIFT) 
{
   	//do its an on drag over event.
   // return true if it over the right element.
   return event.getElementName() == 'candroponelement';
shift action
}
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=ONDROPNONE|class=node}{tr:id=name}{td}h6.ONDROPNONE{td}{tr}{tr:id=des}{td}{sub-section:ONDROPNONE_des|text=|trigger=button}{sub-section}{sub-section:ONDROPNONE_des|trigger=none|class=sIndent}Constant returned by JSEvent.getType() inif athe methodevent thatis isnot attachedused toin ana onDropknown event or command.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:ONDROPNONE_snc|text=|trigger=button}{sub-section}{sub-section:ONDROPNONE_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:ONDROPNONE_prs|text=|trigger=button}{sub-section}{sub-section:ONDROPNONE_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:ONDROPNONE_ret|text=|trigger=button}{sub-section}{sub-section:ONDROPNONE_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:ONDROPNONE_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:ONDROPNONE_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:ONDROPNONE_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:ONDROPNONE_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:ONDROPNONE_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:ONDROPNONE_sam|trigger=none}{code:language=javascript}
if (event.getType() == JSEvent.ONDROPNONE) 
{
   	// itstype ais on drop event.
   var element = elements[event.getElementName()];
   // do drop on element
   return true;
not set.
}
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=RIGHTCLICK|class=node}{tr:id=name}{td}h6.RIGHTCLICK{td}{tr}{tr:id=des}{td}{sub-section:RIGHTCLICK_des|text=|trigger=button}{sub-section}{sub-section:RIGHTCLICK_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=snc}{td}*Since*\\{sub-section:RIGHTCLICK_snc|text=|trigger=button}{sub-section}{sub-section:RIGHTCLICK_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:RIGHTCLICK_prs|text=|trigger=button}{sub-section}{sub-section:RIGHTCLICK_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:RIGHTCLICK_ret|text=|trigger=button}{sub-section}{sub-section:RIGHTCLICK_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:RIGHTCLICK_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:RIGHTCLICK_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:RIGHTCLICK_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:RIGHTCLICK_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:RIGHTCLICK_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:RIGHTCLICK_sam|trigger=none}{code:language=javascript}
if (event.getType() == JSEvent.RIGHTCLICK) 
{
   	// its a right click event.
}
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table}\\ 

{table:id=property|class=servoy sDetail}{colgroup}{column:padding=0px|width=100%}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Property Details{th}{tr}{tbody:id=data|class=node}{tr:id=name}{td}h6.data{td}{tr}{tr:id=des}{td}{sub-section:data_des|text=|trigger=button}{sub-section}{sub-section:data_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=snc}{td}*Since*\\{sub-section:data_snc|text=|trigger=button}{sub-section}{sub-section:data_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:data_prs|text=|trigger=button}{sub-section}{sub-section:data_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:data_ret|text=|trigger=button}{sub-section}{sub-section:data_ret|trigger=none|class=sIndent}[Object]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:data_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:data_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:data_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:data_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:data_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:data_sam|trigger=none}{code:language=javascript}
// A client design method that handles ondrag
if (event.getType() == JSEvent.ONDRAG)
{
     // the data is the selected elements array
     var elements = event.data;
     // only start a client design drag when there is 1 element
     if (elements.length == 1)
     {
     	return true;
     }
}

// code for a data drag method
event.data = "drag me!";
return DRAGNDROP.COPY;

// code for a data drop method
var data = event.data;
elemements[event.getElementName()].setText(data);
return true;
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table}\\ 

{table:id=function|class=servoy sDetail}{colgroup}{column:padding=0px|width=100%}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Method Details{th}{tr}{tbody:id=getElementName|class=node}{tr:id=name}{td}h6.getElementName{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}getElementName{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:getElementName_des|text=|trigger=button}{sub-section}{sub-section:getElementName_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=snc}{td}*Since*\\{sub-section:getElementName_snc|text=|trigger=button}{sub-section}{sub-section:getElementName_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:getElementName_prs|text=|trigger=button}{sub-section}{sub-section:getElementName_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:getElementName_ret|text=|trigger=button}{sub-section}{sub-section:getElementName_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:getElementName_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getElementName_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getElementName_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getElementName_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getElementName_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getElementName_sam|trigger=none}{code:language=javascript}
if (event.getElementName() == 'myElement')
{
    elements[event.getElementName()].bgcolor = '#ff0000';
}
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getFormName|class=node}{tr:id=name}{td}h6.getFormName{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}getFormName{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:getFormName_des|text=|trigger=button}{sub-section}{sub-section:getFormName_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=snc}{td}*Since*\\{sub-section:getFormName_snc|text=|trigger=button}{sub-section}{sub-section:getFormName_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:getFormName_prs|text=|trigger=button}{sub-section}{sub-section:getFormName_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:getFormName_ret|text=|trigger=button}{sub-section}{sub-section:getFormName_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:getFormName_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getFormName_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getFormName_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getFormName_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getFormName_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getFormName_sam|trigger=none}{code:language=javascript}
forms[event.getFormName()].myFormMethod();
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getModifiers|class=node}{tr:id=name}{td}h6.getModifiers{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Number]{span}{span:id=iets|style=float: left; font-weight: bold;}getModifiers{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:getModifiers_des|text=|trigger=button}{sub-section}{sub-section:getModifiers_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=snc}{td}*Since*\\{sub-section:getModifiers_snc|text=|trigger=button}{sub-section}{sub-section:getModifiers_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:getModifiers_prs|text=|trigger=button}{sub-section}{sub-section:getModifiers_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:getModifiers_ret|text=|trigger=button}{sub-section}{sub-section:getModifiers_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:getModifiers_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getModifiers_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getModifiers_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getModifiers_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getModifiers_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getModifiers_sam|trigger=none}{code:language=javascript}
//test if the SHIFT modifier is used.
if (event.getModifiers() & JSEvent.MODIFIER_SHIFT)
{
	//do shift action
}
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getSource|class=node}{tr:id=name}{td}h6.getSource{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Object]{span}{span:id=iets|style=float: left; font-weight: bold;}getSource{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:getSource_des|text=|trigger=button}{sub-section}{sub-section:getSource_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=snc}{td}*Since*\\{sub-section:getSource_snc|text=|trigger=button}{sub-section}{sub-section:getSource_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:getSource_prs|text=|trigger=button}{sub-section}{sub-section:getSource_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:getSource_ret|text=|trigger=button}{sub-section}{sub-section:getSource_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:getSource_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getSource_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getSource_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getSource_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getSource_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getSource_sam|trigger=none}{code:language=javascript}
// cast to runtime text field (change var sourceDataProviderto anoter kind of type if you know the type)
/** @type {RuntimeTextField} */
var source = event.getSource();
var sourceDataProvider = source.getDataProviderID();
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getTimestamp|class=node}{tr:id=name}{td}h6.getTimestamp{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Date]{span}{span:id=iets|style=float: left; font-weight: bold;}getTimestamp{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:getTimestamp_des|text=|trigger=button}{sub-section}{sub-section:getTimestamp_des|trigger=none|class=sIndent}Returns the time the event occurred.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:getTimestamp_snc|text=|trigger=button}{sub-section}{sub-section:getTimestamp_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:getTimestamp_prs|text=|trigger=button}{sub-section}{sub-section:getTimestamp_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:getTimestamp_ret|text=|trigger=button}{sub-section}{sub-section:getTimestamp_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:getTimestamp_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getTimestamp_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getTimestamp_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getTimestamp_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getTimestamp_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getTimestamp_sam|trigger=none}{code:language=javascript}
event.getTimestamp();
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getType|class=node}{tr:id=name}{td}h6.getType{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}getType{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:getType_des|text=|trigger=button}{sub-section}{sub-section:getType_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=snc}{td}*Since*\\{sub-section:getType_snc|text=|trigger=button}{sub-section}{sub-section:getType_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:getType_prs|text=|trigger=button}{sub-section}{sub-section:getType_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:getType_ret|text=|trigger=button}{sub-section}{sub-section:getType_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:getType_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getType_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getType_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getType_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getType_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getType_sam|trigger=none}{code:language=javascript}
if (event.getType() == JSEvent.ACTION) 
{
   	// its an action event.
}
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getX|class=node}{tr:id=name}{td}h6.getX{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Number]{span}{span:id=iets|style=float: left; font-weight: bold;}getX{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:getX_des|text=|trigger=button}{sub-section}{sub-section:getX_des|trigger=none|class=sIndent}Returns the x position of the event, relative to the component that fired it, if applicable.
For example drag'n'drop events will set the x,y positions.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:getX_snc|text=|trigger=button}{sub-section}{sub-section:getX_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:getX_prs|text=|trigger=button}{sub-section}{sub-section:getX_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:getX_ret|text=|trigger=button}{sub-section}{sub-section:getX_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:getX_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getX_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getX_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getX_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getX_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getX_sam|trigger=none}{code:language=javascript}
var x = event.getX();
var xPrevious = previousEvent.getX();
var movedXPixels = x -xPrevious;
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getY|class=node}{tr:id=name}{td}h6.getY{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Number]{span}{span:id=iets|style=float: left; font-weight: bold;}getY{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:getY_des|text=|trigger=button}{sub-section}{sub-section:getY_des|trigger=none|class=sIndent}Returns the y position of the event, relative to the component that fired it, if applicable.
For example drag'n'drop events will set the x,y positions.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:getY_snc|text=|trigger=button}{sub-section}{sub-section:getY_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:getY_prs|text=|trigger=button}{sub-section}{sub-section:getY_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:getY_ret|text=|trigger=button}{sub-section}{sub-section:getY_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:getY_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getY_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getY_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getY_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getY_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getY_sam|trigger=none}{code:language=javascript}
var y = event.getY();
var yPrevious = previousEvent.getY();
var movedYPixels = y -yPrevious;
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table}