Child pages
  • JSDNDEvent

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]
Constant returned by JSEvent.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#ONDRAGEND]
Constant returned by JSEvent.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#ONDRAGOVER]
Constant returned by JSEvent.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#ONDROP]
Constant returned by JSEvent.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#RIGHTCLICK]
Constant returned by JSEvent.{td}{tr}{tbody}{table}\\ 

{table:id=|class=servoy sSummary}{colgroup}{column:padding=0px|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}{tbody}{tr}{td}[String]{td}{td}[#dataMimeType]
The event data mime type.{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}{td}[Number]{td}{td}[#getDragResult]\()
Returns the result of the drag action.{td}{tr}{tbody}{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}[JSRecord]{td}{td}[#getRecord]\()
Returns the record of the event.{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}{tr:id=ret}{td}*Returns*\\[String]{td}{tr}{builder-show}{tr:id=retsee}{td}*ReturnsAlso see*\\{sub-section:ACTION_ret|text=|trigger=button}{sub-section}{sub-section:ACTION_ret|trigger=none|div:class=sIndent}[String]{sub-section{div}{td}{tr}{builder-show:permission=edit}{tr:id=seelink}{td}*AlsoExternal seelinks*\\{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=linksam}{td}*External linksSample*\\{sub-section:ACTION_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:ACTION_link|trigger=none}{sub-sectioncode:language=javascript}
if (event.getType() == JSEvent.ACTION) 
{
   // its an action event.
}
{code}{div}{td}{tr}{builder-show}{tr:idclass=samlastDetailRow}{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{td}{tr}{tbody}{tbody:id=DATACHANGE|class=node}{tr:id=name}{td}h6.DATACHANGE{td}{tr}{tr:id=des}{td}Constant returned by JSEvent.getType() == JSEvent.ACTION) 
{
   // its an action event.
}
{code}{sub-section}{div}in a method that is attached to an onDataChange event.{td}{tr}{tr:id=snc}{td}*Since*\\ Replace with version info{td}{tr}{tr:classid=lastDetailRowprs}{td}*Parameters*\\{td}{tr}{tbody}{tbodytr:id=DATACHANGE|class=noderet}{td}*Returns*\\[String]{td}{tr}{tr:id=namesee}{td}h6.DATACHANGE}*Also see*\\{div:class=sIndent}{div}{td}{tr}{tr:id=deslink}{td}{sub-section:DATACHANGE_des|text=|trigger=button}{sub-section}{sub-section:DATACHANGE_des|trigger=none|class=sIndent}Constant returned by JSEvent*External links*\\{div:class=sIndent}{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
if (event.getType() in a method that is attached to an onDataChange event.{sub-section== JSEvent.DATACHANGE) 
{
   // its a data change event
}
{code}{div}{td}{tr}{builder-showtr:permissionclass=editlastDetailRow}{tr:id=snctd}{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}{tbody}{tbody:id=DOUBLECLICK|class=node}{tr:id=name}{td}h6.DOUBLECLICK{td}{tr}{tr:id=prsdes}{td}*Parameters*\\{sub-section:DATACHANGE_prs|text=|trigger=button}{sub-section}{sub-section:DATACHANGE_prs|trigger=none|class=sIndent}{sub-section}Constant returned by JSEvent.getType() in a method that is attached to an onDoubleClick event.{td}{tr}{tr:id=snc}{td}*Since*\\ Replace with version info{td}{tr}{builder-show}{tr:id=retprs}{td}*ReturnsParameters*\\{sub-section:DATACHANGE_ret|text=|trigger=button}{sub-section}{sub-section:DATACHANGE_ret|trigger=none|class=sIndent}[String]{sub-section}td}{tr}{tr:id=ret}{td}*Returns*\\[String]{td}{tr}{builder-show:permission=edit}{tr: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:code:language=javascript}
if (event.getType() == JSEvent.DATACHANGEDOUBLECLICK) 
{
   // its a datadouble changeclick event.
}
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=DOUBLECLICKFOCUSGAINED|class=node}{tr:id=name}{td}h6.DOUBLECLICKFOCUSGAINED{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 onDoubleClickonFocusGained or the forms onElementFocusGained 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-sectiontd}{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}{tr:id=ret}{td}*Returns*\\[String]{td}{tr}{builder-show}{tr:id=retsee}{td}*ReturnsAlso see*\\{sub-section:DOUBLECLICK_ret|text=|trigger=button}{sub-section}{sub-section:DOUBLECLICK_ret|trigger=none|div:class=sIndent}[String]{sub-section{div}{td}{tr}{builder-show:permission=edit}{tr:id=seelink}{td}*AlsoExternal seelinks*\\{sub-section:DOUBLECLICK_see|text=|trigger=button}{sub-section}div:class=sIndent}{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{sub-section:DOUBLECLICK_see|trigger=none}{sub-sectioncode:language=javascript}
if (event.getType() == JSEvent.FOCUSGAINED) 
{
   // its a focus gained event.
}
{code}{div}{td}{tr}{builder-show}{builder-show:permission=edittr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=FOCUSLOST|class=node}{tr:id=linkname}{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-showh6.FOCUSLOST{td}{tr}{tr:id=des}{td}Constant returned by JSEvent.getType() in a method that is attached to an onFocusLost or the forms onElementFocusLost event.{td}{tr}{tr:id=snc}{td}*Since*\\ Replace with version info{td}{tr}{tr:id=samprs}{td}*SampleParameters*\\{sub-section:DOUBLECLICK_sam|text=|trigger=button}{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\[String]{td}{tr}{tr:id=see}{td}*Also see*\\{div:class=sIndent}{div}{td}{tr}{tr:id=link}{td}*External links*\\{div:class=sIndent}{sub-section:DOUBLECLICK_sam|trigger=nonediv}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
if (event.getType() == JSEvent.DOUBLECLICKFOCUSLOST) 
{
   // its a doublefocus clicklost event.
}
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=FOCUSGAINEDFORM|class=node}{tr:id=name}{td}h6.FOCUSGAINEDFORM{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 Constant returned by JSEvent.getType() in a method that is attached to an onFocusGained a form event (like onShow) or thecommand forms onElementFocusGained event.{sub-section}{(like onDeleteRecord){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-sectiontd}{tdtr}{tr:id=prs}{builder-show}{builder-show:permission=edittd}*Parameters*\\{td}{tr}{tr:id=prsret}{td}*ParametersReturns*\\{sub-section:FOCUSGAINED_prs|text=|trigger=button}{sub-section}{sub-section:FOCUSGAINED_prs|trigger=none|[String]{td}{tr}{tr:id=see}{td}*Also see*\\{div:class=sIndent}{sub-sectiondiv}{td}{tr}{builder-show}{tr:id=retlink}{td}*ReturnsExternal links*\\{sub-section:FOCUSGAINED_ret|text=|trigger=button}{sub-section}{sub-section:FOCUSGAINED_ret|trigger=none|div:class=sIndent}[String]{sub-section{div}{td}{tr}{builder-showtr:permissionid=editsam}{tr:id=see}{td}*Also seeSample*\\{sub-section:FOCUSGAINED_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:FOCUSGAINED_see|trigger=none}{sub-section}{divdiv:class=sIndent}{code:language=javascript}
if (event.getType() == JSEvent.FORM) 
{
   // its a form event or command
}
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{builder-showtbody}{builder-show:permission=edittbody:id=MODIFIER_ALT|class=node}{tr:id=linkname}{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-showh6.MODIFIER_ALT{td}{tr}{tr:id=des}{td}Constant for the ALT modifier that can be returned by JSEvent.getModifiers();{td}{tr}{tr:id=snc}{td}*Since*\\ Replace with version info{td}{tr}{tr:id=samprs}{td}*SampleParameters*\\{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}td}{tr}{tr:id=ret}{td}*Returns*\\[Number]{td}{tr}{tr:id=see}{td}*Also see*\\{div:class=sIndent}[.getModifiers|JSEvent#getModifiers]\\ {div}{td}{tr}{tr:classid=lastDetailRowlink}{td}{td*External links*\\{div:class=sIndent}{trdiv}{tbodytd}{tbody:id=FOCUSLOST|class=nodetr}{tr:id=namesam}{td}h6.FOCUSLOST{td}{tr}{tr:id=des}{td}{sub-section:FOCUSLOST_des|text=|trigger=button}{sub-section}{sub-section:FOCUSLOST_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*Sample*\\{div:class=sIndent}{code:language=javascript}
//test if the SHIFT modifier is used.
if (event.getModifiers() & JSEvent.MODIFIER_SHIFT)
{
	//do shift action
}
{code}{div}{td}{tr}{builder-showtr:permissionclass=editlastDetailRow}{tr:id=snctd}{td}*Since*\\{sub-section:FOCUSLOST_snc|text=|trigger=button}{sub-section}{sub-section:FOCUSLOST_snc|trigger=none|class=sIndent}{tr}{tbody}{tbody:id=MODIFIER_CTRL|class=node}{tr:id=name}{td}h6.MODIFIER_CTRL{td}{tr}{tr:id=des}{td}Constant for the CTRL modifier that can be returned by JSEvent.getModifiers();{td}{tr}{tr:id=snc}{td}*Since*\\ Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:FOCUSLOST_prs|text=|trigger=button}{sub-section}{sub-section:FOCUSLOST_prs|trigger=none|class=sIndent}{sub-section}td}{tr}{tr:id=ret}{td}*Returns*\\[Number]{td}{tr}{builder-show}{tr:id=retsee}{td}*ReturnsAlso see*\\{sub-section:FOCUSLOST_ret|text=|trigger=button}{sub-section}{sub-section:FOCUSLOST_ret|trigger=none|div:class=sIndent}[String]{sub-section.getModifiers|JSEvent#getModifiers]\\ {div}{td}{tr}{builder-show:permission=edit}{tr:id=seelink}{td}*AlsoExternal seelinks*\\{sub-section:FOCUSLOST_see|text=|trigger=button}{sub-section}div:class=sIndent}{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{sub-section:FOCUSLOST_see|trigger=none}{sub-sectioncode:language=javascript}
//test if the SHIFT modifier is used.
if (event.getModifiers() & JSEvent.MODIFIER_SHIFT)
{
	//do shift action
}
{code}{div}{td}{tr}{tr}{builder-show}{builder-show:permission=edit:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=MODIFIER_META|class=node}{tr:id=linkname}{td}*External links*\\{sub-section:FOCUSLOST_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:FOCUSLOST_link|trigger=none}{sub-section}{div}{td}{tr}{builder-showh6.MODIFIER_META{td}{tr}{tr:id=des}{td}Constant for the META modifier that can be returned by JSEvent.getModifiers();{td}{tr}{tr:id=snc}{td}*Since*\\ Replace with version info{td}{tr}{tr:id=samprs}{td}*SampleParameters*\\{sub-section:FOCUSLOST_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:FOCUSLOST_sam|trigger=none}{code:language=javascript}
if (event.getType() == JSEvent.FOCUSLOST) 
{
   // its a focus lost event.
}
{code}{sub-section}td}{tr}{tr:id=ret}{td}*Returns*\\[Number]{td}{tr}{tr:id=see}{td}*Also see*\\{div:class=sIndent}[.getModifiers|JSEvent#getModifiers]\\ {div}{td}{tr}{tr:classid=lastDetailRowlink}{td}{td*External links*\\{div:class=sIndent}{trdiv}{tbodytd}{tbody:id=FORM|class=nodetr}{tr:id=namesam}{td}h6.FORM{td}{tr}{tr:id=des}{td}{sub-section:FORM_des|text=|trigger=button}{sub-section}{sub-section:FORM_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*Sample*\\{div:class=sIndent}{code:language=javascript}
//test if the SHIFT modifier is used.
if (event.getModifiers() & JSEvent.MODIFIER_SHIFT)
{
	//do shift action
}
{code}{div}{td}{tr}{builder-showtr:permissionclass=editlastDetailRow}{tr:id=snctd}{td}*Since*\\{sub-section:FORM_snc|text=|trigger=button}{sub-section}{sub-section:FORM_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit{tr}{tbody}{tbody:id=MODIFIER_SHIFT|class=node}{tr:id=name}{td}h6.MODIFIER_SHIFT{td}{tr}{tr:id=des}{td}Constant for the SHIFT modifier that can be returned by JSEvent.getModifiers();{td}{tr}{tr:id=prssnc}{td}*ParametersSince*\\{sub-section:FORM_prs|text=|trigger=button}{sub-section}{sub-section:FORM_prs|trigger=none|class=sIndent}{sub-section} Replace with version info{td}{tr}{tr:id=prs}{td}*Parameters*\\{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:FORM_ret|text=|trigger=button}{sub-section}{sub-section:FORM_ret|trigger=none|[Number]{td}{tr}{tr:id=see}{td}*Also see*\\{div:class=sIndent}[String]{sub-section.getModifiers|JSEvent#getModifiers]\\ {div}{td}{tr}{builder-show:permission=edit}{tr:id=seelink}{td}*AlsoExternal seelinks*\\{sub-section:FORM_see|text=|trigger=button}{sub-section}div:class=sIndent}{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{sub-section:FORM_see|trigger=none}{sub-sectioncode:language=javascript}
//test if the SHIFT modifier is used.
if (event.getModifiers() & JSEvent.MODIFIER_SHIFT)
{
	//do shift action
}
{code}{div}{td}{tr}{builder-show}{builder-show:permission=edittr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=NONE|class=node}{tr:id=linkname}{td}*External links*\\{sub-section:FORM_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:FORM_link|trigger=none}{sub-section}{div}{td}{tr}{builder-showh6.NONE{td}{tr}{tr:id=des}{td}Constant returned by JSEvent.getType() if the event is not used in a known event or command.{td}{tr}{tr:id=snc}{td}*Since*\\ Replace with version info{td}{tr}{tr:id=samprs}{td}*SampleParameters*\\{sub-section:FORM_sam|text=|trigger=button}{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\[String]{td}{tr}{tr:id=see}{td}*Also see*\\{div:class=sIndent}{div}{td}{tr}{tr:id=link}{td}*External links*\\{div:class=sIndent}{sub-section:FORM_sam|trigger=nonediv}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
if (event.getType() == JSEvent.FORMNONE) 
{
   // itstype ais form event or commandnot set.
}
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=MODIFIER_ALT|ONDRAG|class=node}{tr:id=name}{td}h6.MODIFIER_ALTONDRAG{td}{tr}{tr:id=des}{td}{sub-section:MODIFIER_ALT_des|text=|trigger=button}{sub-section}{sub-section:MODIFIER_ALT_des|trigger=none|class=sIndent}Constant for the ALT modifier that can be returned by JSEvent.getModifiers();{sub-section}{td}{tr}{builder-show:permission=edit}Constant returned by JSEvent.getType() in a method that is attached to an onDrag event.{td}{tr}{tr:id=snc}{td}*Since*\\{sub-section:MODIFIER_ALT_snc|text=|trigger=button}{sub-section}{sub-section:MODIFIER_ALT_snc|trigger=none|class=sIndent} Replace with version info{sub-section} Replace with version info{td}{tr}{tr:id=prs}{td}*Parameters*\\{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prsret}{td}*ParametersReturns*\\{sub-section:MODIFIER_ALT_prs|text=|trigger=button}{sub-section}{sub-section:MODIFIER_ALT_prs|trigger=none|[String]{td}{tr}{tr:id=see}{td}*Also see*\\{div:class=sIndent}{sub-sectiondiv}{td}{tr}{builder-show}{tr:id=retlink}{td}*ReturnsExternal links*\\{sub-section:MODIFIER_ALT_ret|text=|trigger=button}{sub-section}{sub-section:MODIFIER_ALT_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=editdiv:class=sIndent}{div}{td}{tr}{tr:id=seesam}{td}*Also seeSample*\\{sub-section:MODIFIER_ALT_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:MODIFIER_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:MODIFIER_ALT_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:MODIFIER_ALT_link|trigger=none}{sub-section}{div}{td}{tr}{builder-showcode:language=javascript}
if (event.getType() == JSEvent.ONDRAG) 
{
   // its an ondrag event
   if (event.getElementName() == 'todragelement')
   	return DRAGNDROP.COPY
}
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=ONDRAGEND|class=node}{tr:id=samname}{td}*Sample*\\{sub-section:MODIFIER_ALT_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:MODIFIER_ALT_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}h6.ONDRAGEND{td}{tr}{tr:id=des}{td}Constant returned by JSEvent.getType() in a method that is attached to an onDragEnd event.{td}{tr}{tr:classid=lastDetailRowsnc}{td}*Since*\\ Replace with version info{td}{tr}{tbody}{tbody:id=MODIFIER_CTRL|class=node}{tr:id=nameprs}{td}h6.MODIFIER_CTRL*Parameters*\\{td}{tr}{tr:id=des}ret}{td}*Returns*\\[String]{td}{sub-section:MODIFIER_CTRL_des|text=|trigger=button}{sub-section}{sub-section:MODIFIER_CTRL_des|trigger=none|class=sIndent}Constant for the CTRL modifier that can be returned by JSEvent.getModifiers();{sub-sectiontr}{tr:id=see}{td}*Also see*\\{div:class=sIndent}{div}{td}{tr}{builder-show:permission=edit}{tr:id=snclink}{td}*SinceExternal links*\\{sub-section:MODIFIER_CTRL_snc|text=|trigger=button}{sub-section}{sub-section:MODIFIER_CTRL_snc|trigger=none|div:class=sIndent} Replace with version info{sub-section{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prssam}{td}*ParametersSample*\\{sub-section:MODIFIER_CTRL_prs|text=|trigger=button}{sub-section}{sub-section:MODIFIER_CTRL_prs|trigger=none|div:class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:MODIFIER_CTRL_ret|text=|trigger=button}{sub-section}{sub-section:MODIFIER_CTRL_ret|trigger=none|class=sIndent}[Number]{sub-sectioncode: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(); 
}
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{builder-show:permission=edittbody}{tbody:id=ONDRAGOVER|class=node}{tr:id=seename}{td}*Also see*\\{sub-section:MODIFIER_CTRL_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:MODIFIER_CTRL_see|trigger=none}[.getModifiers|JSEvent#getModifiers]\\ {sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edith6.ONDRAGOVER{td}{tr}{tr:id=des}{td}Constant returned by JSEvent.getType() in a method that is attached to an onDragOver event.{td}{tr}{tr:id=linksnc}{td}*Since*External links\\ Replace with version info{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:MODIFIER_CTRL_link|text=|trigger=button}{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\[String]{td}{tr}{tr:id=see}{td}*Also see*\\{div:class=sIndent}{div}{td}{tr}{sub-section:MODIFIER_CTRL_link|trigger=none}{sub-sectiontr:id=link}{td}*External links*\\{div:class=sIndent}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:MODIFIER_CTRL_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:MODIFIER_CTRL_sam|trigger=nonediv:class=sIndent}{code:language=javascript}
if (event.getType() == JSEvent.ONDRAGOVER) 
{
   //test ifits thean SHIFTon modifierdrag isover usedevent.
   // return true if (event.getModifiers() & JSEvent.MODIFIER_SHIFT)
{
	//do shift action it over the right element.
   return event.getElementName() == 'candroponelement';
}
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=MODIFIER_METAONDROP|class=node}{tr:id=name}{td}h6.MODIFIER_METAONDROP{td}{tr}{tr:id=des}{td}{sub-section:MODIFIER_META_des|text=|trigger=button}{sub-section}{sub-section:MODIFIER_META_des|trigger=none|class=sIndent}Constant for the META modifier that can be returned by JSEvent.getModifiers();{sub-section}{td}{tr}{builder-show:permission=edit}Constant returned by JSEvent.getType() in a method that is attached to an onDrop event.{td}{tr}{tr:id=snc}{td}*Since*\\{sub-section:MODIFIER_META_snc|text=|trigger=button}{sub-section}{sub-section:MODIFIER_META_snc|trigger=none|class=sIndent} Replace with version info{sub-section} Replace with version info{td}{tr}{tr:id=prs}{td}*Parameters*\\{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prsret}{td}*ParametersReturns*\\{sub-section:MODIFIER_META_prs|text=|trigger=button}{sub-section}{sub-section:MODIFIER_META_prs|trigger=none|[String]{td}{tr}{tr:id=see}{td}*Also see*\\{div:class=sIndent}{sub-sectiondiv}{td}{tr}{builder-show}{tr:id=retlink}{td}*ReturnsExternal links*\\{sub-section:MODIFIER_META_ret|text=|trigger=button}{sub-section}{sub-section:MODIFIER_META_ret|trigger=none|class=sIndent}[Number]{sub-sectiondiv:class=sIndent}{div}{td}{tr}{builder-show:permission=edit}{tr:id=seesam}{td}*Also seeSample*\\{sub-section:MODIFIER_META_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:MODIFIER_META_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_META_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:MODIFIER_META_link|trigger=none}{sub-section}{divcode:language=javascript}
if (event.getType() == JSEvent.ONDROP) 
{
   // its a on drop event.
   var element = elements[event.getElementName()];
   // do drop on element
   return true;
}
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{builder-showtbody}{trtbody:id=samRIGHTCLICK|class=node}{td}*Sample*\\{sub-section:MODIFIER_META_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:MODIFIER_META_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}tr:id=name}{td}h6.RIGHTCLICK{td}{tr}{tr:id=des}{td}Constant returned by JSEvent.getType() in a method that is attached to an onRightClick event.{td}{tr}{tr:classid=lastDetailRowsnc}{td}*Since*\\ Replace with version info{td}{tr}{tbody}{tbodytr:id=MODIFIER_SHIFT|class=nodeprs}{td}*Parameters*\\{td}{tr}{tr:id=nameret}{td}h6.MODIFIER_SHIFT*Returns*\\[String]{td}{tr}{tr:id=dessee}{td}{sub-section:MODIFIER_SHIFT_des|text=|trigger=button}{sub-section}{sub-section:MODIFIER_SHIFT_des|trigger=none|class=sIndent}Constant for the SHIFT modifier that can be returned by JSEvent.getModifiers();{sub-section}{td}{tr}{builder-show:permission=edit*Also see*\\{div:class=sIndent}{div}{td}{tr}{tr:id=link}{td}*External links*\\{div:class=sIndent}{div}{td}{tr}{tr:id=sncsam}{td}*SinceSample*\\{sub-section:MODIFIER_SHIFT_snc|text=|trigger=button}{sub-section}{sub-section:MODIFIER_SHIFT_snc|trigger=none|class=sIndent} Replace with version info{sub-sectiondiv:class=sIndent}{code:language=javascript}
if (event.getType() == JSEvent.RIGHTCLICK) 
{
   // its a right click event.
}
{code}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:MODIFIER_SHIFT_prs|text=|trigger=button}{sub-section}{sub-section:MODIFIER_SHIFT_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:MODIFIER_SHIFT_ret|text=|trigger=button}{sub-section}{sub-section:MODIFIER_SHIFT_ret|trigger=none|class=sIndent}[Number]{sub-section}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}{builder-showtr:permission=editid=des}{td}A data object that specific events can set, a user can set data back to the system for events that supports this.{td}{tr}{tr:id=seesnc}{td}*Also seeSince*\\{sub-section:MODIFIER_SHIFT_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:MODIFIER_SHIFT_see|trigger=none}[.getModifiers|JSEvent#getModifiers]\\ {sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit Replace with version info{td}{tr}{tr:id=prs}{td}*Parameters*\\{td}{tr}{tr:id=ret}{td}*Returns*\\[Object]{td}{tr}{tr:id=linksee}{td}*ExternalAlso linkssee*\\{sub-section:MODIFIER_SHIFT_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:MODIFIER_SHIFT_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=samlink}{td}*SampleExternal links*\\{sub-section:MODIFIER_SHIFT_sam|text=|trigger=button}{sub-section}div:class=sIndent}{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{sub-section:MODIFIER_SHIFT_sam|trigger=none}{code:language=javascript}
//test A ifclient thedesign SHIFTmethod modifierthat ishandles used.ondrag
if (event.getModifiersgetType() &== JSEvent.MODIFIER_SHIFTONDRAG)
{
 	//do shift action
}
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=NONE|class=node}{tr:id=name}{td}h6.NONE{td}{tr}{tr:id=des}{td}{sub-section:NONE_des|text=|trigger=button}{sub-section}{sub-section:NONE_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=snc}{td}*Since*\\{sub-section:NONE_snc|text=|trigger=button}{sub-section}{sub-section:NONE_snc|trigger=none|class=sIndent} Replace with version info{sub-section    // 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}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prstr:class=lastDetailRow}{td}{td}*Parameters*\\{sub-section:NONE_prs|text=|trigger=button}{sub-section}{sub-section:NONE_prs|trigger=none|class=sIndent}{sub-section}{tr}{tbody}{tbody:id=dataMimeType|class=node}{tr:id=name}{td}h6.dataMimeType{td}{tr}{builder-showtr:id=des}{td}The event data mime type.{td}{tr}{tr:id=retsnc}{td}*ReturnsSince*\\{sub-section:NONE_ret|text=|trigger=button}{sub-section}{sub-section:NONE_ret|trigger=none|class=sIndent}[String]{sub-section} Replace with version info{td}{tr}{tr:id=prs}{td}*Parameters*\\{td}{tr}{builder-showtr:permission=editid=ret}{td}*Returns*\\[String]{td}{tr}{tr:id=see}{td}*Also see*\\{sub-section:NONE_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:NONE_see|trigger=none}{sub-sectiondiv}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:NONE_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:NONE_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:NONE_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:NONE_sam|trigger=none}{code:language=javascript}
if (event.getType() == JSEvent.NONE) 
{
   // type is not set.// only accept drag if data is a servoy record 
function onDragOver(event)
{
		if(event.dataMimeType.indexOf("application/x-servoy-record-object") == 0) return true;
		else return false;
}
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbodytable}\\ 

{table:id=ONDRAGfunction|class=nodeservoy sDetail}{colgroup}{tr:id=namecolumn:padding=0px|width=100%}{tdcolumn}h6.ONDRAG{tdcolgroup}{tr:style=height: 30px;}{trth:id=descolspan=1}Method Details{th}{tdtr}{sub-section:ONDRAG_des|text=|trigger=button}{sub-section}{sub-section:ONDRAG_des|trigger=none|class=sIndent}Constant returned by JSEvent.getType() in a method that is attached to an onDrag event.{sub-section}tbody:id=getDragResult|class=node}{tr:id=name}{td}h6.getDragResult{td}{tr}{builder-show:permission=edit}{tr:id=sncsig}{td}*Since*\\{sub-section:ONDRAG_snc|text=|trigger=button}{sub-section}{sub-section:ONDRAG_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:ONDRAG_prs|text=|trigger=button}{sub-section}{sub-section:ONDRAG_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show{span:style=float: left; margin-right: 5px;}[Number]{span}{span:id=iets|style=float: left; font-weight: bold;}getDragResult{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}Returns the result of the drag action.{td}{tr}{tr:id=retsnc}{td}*ReturnsSince*\\{sub-section:ONDRAG_ret|text=|trigger=button}{sub-section}{sub-section:ONDRAG_ret|trigger=none|class=sIndent}[String]{sub-section} Replace with version info{td}{tr}{tr:id=prs}{td}*Parameters*\\{td}{tr}{builder-showtr:permission=editid=ret}{td}*Returns*\\[Number] -- a DRAGNDROP constant, representing the result of the drag action{td}{tr}{tr:id=see}{td}*Also see*\\{sub-section:ONDRAG_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:ONDRAG_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}div:class=sIndent}{div}{td}{tr}{tr:id=link}{td}*External links*\\{sub-section:ONDRAG_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:ONDRAG_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:ONDRAG_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:ONDRAG_sam|trigger=none}{code:language=javascript}
iffunction onDragEnd(event.getType()
== JSEvent.ONDRAG) 
{
   // its an ondrag event
   if (event.getElementName() == 'todragelement')
   	return DRAGNDROP.COPY
}
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=ONDRAGEND|class=node}{tr:id=name}{td}h6.ONDRAGEND{td}{tr}{tr:id=des}{td}{sub-section:ONDRAGEND_des|text=|trigger=button}{sub-section}{sub-section:ONDRAGEND_des|trigger=none|class=sIndent}Constant returned by JSEvent.getType() in a method that is attached to an onDragEnd event.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:ONDRAGEND_snc|text=|trigger=button}{sub-section}{sub-section:ONDRAGEND_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:ONDRAGEND_prs|text=|trigger=button}{sub-section}{sub-section:ONDRAGEND_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:ONDRAGEND_ret|text=|trigger=button}{sub-section}{sub-section:ONDRAGEND_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:ONDRAGEND_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:ONDRAGEND_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:ONDRAGEND_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:ONDRAGEND_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:ONDRAGEND_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:ONDRAGEND_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(); 
}
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=ONDRAGOVER|class=node}{tr:id=name}{td}h6.ONDRAGOVER{td}{tr}{tr:id=des}{td}{sub-section:ONDRAGOVER_des|text=|trigger=button}{sub-section}{sub-section:ONDRAGOVER_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=snc}{td}*Since*\\{sub-section:ONDRAGOVER_snc|text=|trigger=button}{sub-section}{sub-section:ONDRAGOVER_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:ONDRAGOVER_prs|text=|trigger=button}{sub-section}{sub-section:ONDRAGOVER_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:ONDRAGOVER_ret|text=|trigger=button}{sub-section}{sub-section:ONDRAGOVER_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:ONDRAGOVER_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:ONDRAGOVER_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:ONDRAGOVER_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:ONDRAGOVER_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:ONDRAGOVER_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:ONDRAGOVER_sam|trigger=none}{code:language=javascript}
if (event.getType() == JSEvent.ONDRAGOVER) 
{
   // its an on drag over event.
   // return true if it over the right element.
   return event.getElementName() == 'candroponelement';
}
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=ONDROP|class=node}{tr:id=name}{td}h6.ONDROP{td}{tr}{tr:id=des}{td}{sub-section:ONDROP_des|text=|trigger=button}{sub-section}{sub-section:ONDROP_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=snc}{td}*Since*\\{sub-section:ONDROP_snc|text=|trigger=button}{sub-section}{sub-section:ONDROP_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:ONDROP_prs|text=|trigger=button}{sub-section}{sub-section:ONDROP_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:ONDROP_ret|text=|trigger=button}{sub-section}{sub-section:ONDROP_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:ONDROP_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:ONDROP_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:ONDROP_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:ONDROP_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:ONDROP_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:ONDROP_sam|trigger=none}{code:language=javascript}
if (event.getType() == JSEvent.ONDROP) 
{
   // its a on drop event.
   var element = elements[event.getElementName()];
   // do drop on element
   return true;
}
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=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}{tbody:id=dataMimeType|class=node}{tr:id=name}{td}h6.dataMimeType{td}{tr}{tr:id=des}{td}{sub-section:dataMimeType_des|text=|trigger=button}{sub-section}{sub-section:dataMimeType_des|trigger=none|class=sIndent}The event data mime type.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:dataMimeType_snc|text=|trigger=button}{sub-section}{sub-section:dataMimeType_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:dataMimeType_prs|text=|trigger=button}{sub-section}{sub-section:dataMimeType_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:dataMimeType_ret|text=|trigger=button}{sub-section}{sub-section:dataMimeType_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:dataMimeType_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:dataMimeType_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:dataMimeType_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:dataMimeType_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:dataMimeType_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:dataMimeType_sam|trigger=none}{code:language=javascript}
// only accept drag if data is a servoy record 
function onDragOver(event)
{
		if(event.dataMimeType.indexOf("application/x-servoy-record-object") == 0) return true;
		else return false;
}
{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=getDragResult|class=node}{tr:id=name}{td}h6.getDragResult{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Number]{span}{span:id=iets|style=float: left; font-weight: bold;}getDragResult{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:getDragResult_des|text=|trigger=button}{sub-section}{sub-section:getDragResult_des|trigger=none|class=sIndent}Returns the result of the drag action.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:getDragResult_snc|text=|trigger=button}{sub-section}{sub-section:getDragResult_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:getDragResult_prs|text=|trigger=button}{sub-section}{sub-section:getDragResult_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:getDragResult_ret|text=|trigger=button}{sub-section}{sub-section:getDragResult_ret|trigger=none|class=sIndent}[Number] -- a DRAGNDROP constant, representing the result of the drag action{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:getDragResult_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getDragResult_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getDragResult_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getDragResult_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getDragResult_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getDragResult_sam|trigger=none}{code:language=javascript}
function onDragEnd(event)
{
		var dragResult = event.getDragResult();
		if(dragResult == DRAGNDROP.NONE)
		{
			// the drag was canceled
		}
		else if(dragResult == DRAGNDROP.COPY)
		{
			// the drag ended with a copy action
		}
		else if(dragResult == DRAGNDROP.MOVE)
		{
			// the drag ended with a move action
		}
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{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{
		var dragResult = event.getDragResult();
		if(dragResult == DRAGNDROP.NONE)
		{
			// the drag was canceled
		}
		else if(dragResult == DRAGNDROP.COPY)
		{
			// the drag ended with a copy action
		}
		else if(dragResult == DRAGNDROP.MOVE)
		{
			// the drag ended with a move action
		}
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{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}returns the name of the element, can be null if the form was the source of the event.{td}{tr}{tr:id=snc}{td}*Since*\\ Replace with version info{td}{tr}{tr:id=prs}{td}*Parameters*\\{td}{tr}{tr:id=ret}{td}*Returns*\\[String] -- a String representing the element name.{td}{tr}{tr:id=see}{td}*Also see*\\{div:class=sIndent}{div}{td}{tr}{tr:id=link}{td}*External links*\\{div:class=sIndent}{div}{td}{tr}{tr:id=sigsam}{td}*Sample*\\{spandiv: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}class=sIndent}{code:language=javascript}
if (event.getElementName() == 'myElement')
{
    elements[event.getElementName()].bgcolor = '#ff0000';
}
{code}{div}{td}{tr}{tr:id=desclass=lastDetailRow}{td}{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=edittr}{tbody}{tbody:id=getFormName|class=node}{tr:id=name}{td}h6.getFormName{td}{tr}{tr:id=sncsig}{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}{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}returns the name of the form the element was placed on.{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prssnc}{td}*ParametersSince*\\{sub-section:getModifiers_prs|text=|trigger=button}{sub-section}{sub-section:getModifiers_prs|trigger=none|class=sIndent}{sub-section}{ Replace with version info{td}{tr}{builder-show}{tr:id=retprs}{td}*ReturnsParameters*\\{sub-section:getModifiers_ret|text=|trigger=button}{sub-section}{sub-section:getModifiers_ret|trigger=none|class=sIndent}[Numbertd}{tr}{tr:id=ret}{td}*Returns*\\[String] -- ana intString which holdsrepresenting the modifiers as a bitsetform name.{sub-sectiontd}{tdtr}{tr}{builder-show:permission=edit:id=see}{td}*Also see*\\{div:class=sIndent}{div}{td}{tr}{tr:id=seelink}{td}*AlsoExternal seelinks*\\{sub-section:getModifiers_see|text=|trigger=button}{sub-section}div:class=sIndent}{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{sub-section:getModifiers_see|trigger=none}{sub-sectioncode:language=javascript}
forms[event.getFormName()].myFormMethod();
{code}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=linktr:class=lastDetailRow}{td}{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}{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}Returns the modifiers of the event, see JSEvent.MODIFIER\_XXXX for the modifiers that can be returned.{td}{tr}{tr:id=snc}{td}*Since*\\ Replace with version info{td}{tr}{tr:id=prs}{td}*Parameters*\\{td}{tr}{tr:classid=lastDetailRowret}{td}*Returns*\\[Number] -- an int which holds the modifiers as a bitset.{td}{tr}{tbody}{tbodytr:id=getRecord|class=node}{tr:id=name}{td}h6.getRecordsee}{td}*Also see*\\{div:class=sIndent}{div}{td}{tr}{tr:id=siglink}{td}{span:style=float: left; margin-right: 5px;}[JSRecord]{span}{span:id=iets|style=float: left; font-weight: bold;}getRecord{span}{span:id=iets|style=float: left;}\(){span*External links*\\{div:class=sIndent}{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
//test if the SHIFT modifier is used.
if (event.getModifiers() & JSEvent.MODIFIER_SHIFT)
{
	//do shift action
}
{code}{div}{td}{tr}{tr:id=desclass=lastDetailRow}{td}{td}{sub-section:getRecord_des|text=|trigger=button}{sub-section}{sub-section:getRecord_des|trigger=none|class=sIndent}Returns the record of the event.{sub-section}{td}{tr}{builder-show:permission=edittr}{tbody}{tbody:id=getRecord|class=node}{tr:id=name}{td}h6.getRecord{td}{tr}{tr:id=sncsig}{td}*Since*\\{sub-section:getRecord_snc|text=|trigger=button}{sub-section}{sub-section:getRecord_snc|trigger=none|class=sIndent} Replace with version info{sub-section{span:style=float: left; margin-right: 5px;}[JSRecord]{span}{span:id=iets|style=float: left; font-weight: bold;}getRecord{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prsdes}{td}*Parameters*\\{sub-section:getRecord_prs|text=|trigger=button}{sub-section}{sub-section:getRecord_prs|trigger=none|class=sIndent}{sub-section}Returns the record of the event.{td}{tr}{tr:id=snc}{td}*Since*\\ Replace with version info{td}{tr}{builder-show}{tr:id=retprs}{td}*ReturnsParameters*\\{sub-section:getRecord_ret|text=|trigger=button}{sub-section}{sub-section:getRecord_ret|trigger=none|class=sIndent}td}{tr}{tr:id=ret}{td}*Returns*\\[JSRecord] -- Record of the event{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:getRecord_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getRecord_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getRecord_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getRecord_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getRecord_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getRecord_sam|trigger=none}{code:language=javascript}
event.Record();
{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}tr:id=snc}{td}*Since*\\ 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}:id=sam}{td}*Sample*\\{div:class=sIndent}{sub-section:getSource_sam|trigger=none}{code:language=javascript}
var sourceDataProvider = event.getSource().getDataProviderID();
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=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}tr:id=snc}{td}*Since*\\ 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:class=sIndent}{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}return.
Plugins can create events with there own types.{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prssnc}{td}*ParametersSince*\\{sub-section:getType_prs|text=|trigger=button}{sub-section}{sub-section:getType_prs|trigger=none|class=sIndent}{sub-section}{ Replace with version info{td}{tr}{builder-show}{tr:id=retprs}{td}*ReturnsParameters*\\{sub-section:getType_ret|text=|trigger=button}{sub-section}{sub-section:getType_ret|trigger=none|class=sIndent}td}{tr}{tr:id=ret}{td}*Returns*\\[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-showtr}{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}:id=snc}{td}*Since*\\ 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}position.{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{td}{tr}{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}:id=see}{td}*Also see*\\{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}