Child pages
  • DRAGNDROP

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Rev: 1381948887907

...

HTML Table
id
classservoy sSummary
Colgroup Tag
Column
padding0px
width80px

Column

Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan2
Constants Summary
tbody
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
#COPYCOPY
Constant for copy drag operation.
tbody
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
#MIMEMIME_TYPE_SERVOY
Constant used as mime type for servoy objects.
tbody
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
#MIMEMIME_TYPE_SERVOY_RECORD
Constant used as mime type for servoy record objects.
tbody
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
#MOVEMOVE
Constant for move drag operation.
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
#NONENONE
Constant for no drag operation.

HTML Table
idconstant
classservoy sDetail
Colgroup Tag
Column
padding0px
width100%

Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan1
Constants Details
Table Body (tbody)
idCOPY
Table Row (tr)
idname
Table Cell (td)
COPY
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Constant for copy drag operation.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
Number
Table Row (tr)
idsam
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;
}

...

Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idMIME_TYPE_SERVOY
Table Row (tr)
idname
Table Cell (td)
MIME_TYPE_SERVOY
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Constant used as mime type for servoy objects.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
String
Table Row (tr)
idsam
Table Cell (td)
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;
}

...

Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idMIME_TYPE_SERVOY_RECORD
Table Row (tr)
idname
Table Cell (td)
MIME_TYPE_SERVOY_RECORD
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Constant used as mime type for servoy record objects.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
String
Table Row (tr)
idsam
Table Cell (td)
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;
}

...

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
Constant for move drag operation.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
Number
Table Row (tr)
idsam
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;
}

...

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
Constant for no drag operation.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
Number
Table Row (tr)
idsam
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;
}

...

Table Row (tr)
classlastDetailRow
Table Cell (td)