Child pages
  • DRAGNDROP

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
{div:style=display: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{div} {div:id=description}{div}\\ {table:id=|class=servoy sSummary}{colgroup}{column:width=80px|padding=0px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Constants Summary{th}{tr}{tbody}{tr}{td}[Number]{td}{td}[#COPY] Constant for copy drag operation.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#MIME_TYPE_SERVOY] Constant used as mime type for servoy objects.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#MIME_TYPE_SERVOY_RECORD] Constant used as mime type for servoy record objects.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#MOVE] Constant for move drag operation.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#NONE] Constant for no drag operation.{td}{tr}{tbody}{table}\\ {table:id=constant|class=servoy sDetail}{colgroup}{column:width=100%|padding=0px}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Constants Details{th}{tr}{tbody:id=COPY}{tr:id=name}{td}h6.COPY{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[Number]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript} function startDrag(event) { if(event.getElementName() == "copy") return DRAGNDROP.COPY; else if(event.getElementName() == "move") return DRAGNDROP.MOVE return DRAGNDROP.NONE; } {code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=MIME_TYPE_SERVOY}{tr:id=name}{td}h6.MIME_TYPE_SERVOY{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[String]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript} 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; } {code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=MIME_TYPE_SERVOY_RECORD}{tr:id=name}{td}h6.MIME_TYPE_SERVOY_RECORD{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[String]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript} 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; } {code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=MOVE}{tr:id=name}{td}h6.MOVE{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[Number]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript} function startDrag(event) { if(event.getElementName() == "copy") return DRAGNDROP.COPY; else if(event.getElementName() == "move") return DRAGNDROP.MOVE return DRAGNDROP.NONE; } {code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=NONE}{tr:id=name}{td}h6.NONE{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[Number]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript} function startDrag(event) { if(event.getElementName() == "copy") return DRAGNDROP.COPY; else if(event.getElementName() == "move") return DRAGNDROP.MOVE return DRAGNDROP.NONE; } {code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table}
Wiki Markup
Cache
indextrue
refresh100d
showRefreshtrue
iddoc
titleRefresh page
showDatetrue
retryEnable

servoy sReturnTypes2100%height: 30px;2Supported ClientssWordListSmartClientsWordListWebClientsWordListNGClient

servoy sSummary12%30%58%height: 30px;3Constants SummaryConstant for copy drag operation.Constant used as mime type for servoy objects.Constant used as mime type for servoy record objects.Constant for move drag operation.Constant for no drag operation.

constantservoy sDetail2100%height:30px2Constants DetailsCOPYname

COPY

dessIndent
Constant for copy drag operation.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRowMIME_TYPE_SERVOYname

MIME_TYPE_SERVOY

dessIndent
Constant used as mime type for servoy objects.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
MIME_TYPE_SERVOY_RECORDname

MIME_TYPE_SERVOY_RECORD

dessIndent
Constant used as mime type for servoy record objects.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
MOVEname

MOVE

dessIndent
Constant for move drag operation.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
NONEname

NONE

dessIndent
Constant for no drag operation.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow