Child pages
  • DRAGNDROP

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Divcache
Div
iddescription
HTML Table
id
classservoy sSummary
Colgroup Tag
Col
width80px
Col
Table Head (thead)
Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan2
Constants Summary
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)COPY
styleindexdisplay:none

DO NOT EDIT THE CONTENT OF THIS PAGE DIRECTLY (EXCEPT INSIDE THE DIV BELOW WITH ID=DESCRIPTION), UNLESS YOU KNOW WHAT YOU'RE DOING.
THE STRUCTURE OF THE CONTENT IS VITAL IN BEING ABLE TO AUTO UPDATE THE CONTENT THROUGH THE DOC GENERATOR.

true
refresh100d
showRefreshtrue
iddoc
titleRefresh page
showDatetrue
retryEnable

servoy sReturnTypes2100%height: 30px;2Supported ClientssWordListSmartClientsWordListWebClient

Table Cell (td)
String
Table Cell (td)MIME_TYPE_SERVOY
servoy sSummary12%30%58%height: 30px;3Constants SummaryConstant for copy drag operation. Table Row (tr) Table Row (tr)
Table Cell (td)
String
Table Cell (td)MIME_TYPE_SERVOY_RECORD
Constant used as mime type for servoy objects.Constant used as mime type for servoy record objects. Table Row (tr)
Table Cell (td)
Number
Table Cell (td)MOVE
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)NONE
Constant for move drag operation.Constant for no drag operation.table

id

constantclass Colgroup Tag Colcolspanservoy sDetail2width100%

Col
Table Head (thead) Table Row (tr)styleheight:30px; Table Head (th)colspan2Constants Details Table Body (tbody)ididCOPY Table Row (tr)name

Table Cell (td)

COPY

tr

iddes Table Cell (td) DivclasssIndentConstant for copy drag operation. Table Row (tr)idret

Table Cell (td)

Returns

divsIndentclients

classtd

Supported Clients

sIndent
Number Table Row (tr)
idsam
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)idSmartClient,WebClientsam

Sample

Div
classsIndent
Code Block
languagejavascript
function startDrag(event)
{
	if(event.getElementName() == "copy")
		return DRAGNDROP.COPY;
	else if(event.getElementName() == "move")
		return DRAGNDROP.MOVE

	return DRAGNDROP.NONE;
}
sIdentjavascriptlastDetailRow MIME_TYPE_SERVOY Table Row (tr)idname

Table Cell (td)

MIME_TYPE_SERVOY

Table Row (tr)id Table Cell (td) Divclass

dessIndentConstant used as mime type for servoy objects. Table Row (tr)idtdret

Returns

divsIndentclients

classtd

Supported Clients

sIndent
String Table Row (tr)
idsam
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)idSmartClient,WebClientsam

Sample

Div
classsIndent
Code Block
languagejavascript
if (event.dataMimeType == DRAGNDROP.MIME_TYPE_SERVOY || event.dataMimeType == DRAGNDROP.MIME_TYPE_SERVOY_RECORD) {
	application.output("Dropping is allowed" );
	return true;
} else {
	application.output("Dropping is not allowed" );
	return false;
}
sIdentjavascriptlastDetailRow MIME_TYPE_SERVOY_RECORD Table Row (tr)idtdname

MIME_TYPE_SERVOY_RECORD

Table Row (tr)id Table Cell (td) DivclassdessIndentConstant used as mime type for servoy record objects. Table Row (tr)idtdret

Returns

divsIndentclients

classtd

Supported Clients

sIndent
String Table Row (tr)
idsam
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idMOVE
Table Row (tr)
idname
Table Cell (td)

MOVE

Table Row (tr)
iddes
Table Cell (td) Div
classsIndent
SmartClient,WebClientsam

Sample

Div
classsIndent
Code Block
languagejavascript
if (event.dataMimeType == DRAGNDROP.MIME_TYPE_SERVOY || event.dataMimeType == DRAGNDROP.MIME_TYPE_SERVOY_RECORD) {
	application.output("Dropping is allowed" );
	return true;
} else {
	application.output("Dropping is not allowed" );
	return false;
}
sIdentjavascriptlastDetailRow MOVEname

MOVE

dessIndentConstant for move drag operation.
Table Row (tr)idtdret

Returns

divsIndentclients

classtd

Supported Clients

sIndent
Number Table Row (tr)
idsam
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idNONE
Table Row (tr)
idname
Table Cell (td)

NONE

Table Row (tr)
iddes
Table Cell (td) Div
classsIndent
SmartClient,WebClientsam

Sample

Div
classsIndent
Code Block
languagejavascript
function startDrag(event)
{
	if(event.getElementName() == "copy")
		return DRAGNDROP.COPY;
	else if(event.getElementName() == "move")
		return DRAGNDROP.MOVE

	return DRAGNDROP.NONE;
}
sIdentjavascriptlastDetailRow NONEname

NONE

dessIndentConstant for no drag operation.
Table Row (tr)idtdret

Returns

divsIndentclients

classid

Supported Clients

sIndent
Number Table Row (tr)SmartClient,WebClientsam

Table Cell (td) Table Row (tr)

classlastDetailRow
Table Cell (td) 

Sample

Div
classsIndent
Code Block
languagejavascript
function startDrag(event)
{
	if(event.getElementName() == "copy")
		return DRAGNDROP.COPY;
	else if(event.getElementName() == "move")
		return DRAGNDROP.MOVE

	return DRAGNDROP.NONE;
}
sIdentjavascriptlastDetailRow