function AdfStampedDropTarget(a,b){arguments.length&&this.Init(a,b)}AdfObject.createSubclass(AdfStampedDropTarget,AdfDropTarget);AdfStampedDropTarget.prototype.Init=function(a,b){AdfStampedDropTarget.superclass.Init.call(this);AdfAssert.assertNumber(a);AdfAssert.assert(a!=AdfDnDContext.ACTION_NONE,"allowedActions must be specified");AdfAssert.assert(0==(a&~AdfDnDContext.ACTIONS_ALL),"Invalid allowedActions:"+a);this._allowedActions=a;this._modelName=b};
AdfStampedDropTarget.prototype.toDebugString=function(){AdfAssert.assertNumber(this._allowedActions);return AdfStampedDropTarget.superclass.toDebugString.call(this)+" allowedActions:"+this._allowedActions.toString(2)};AdfStampedDropTarget.prototype.dragExit=function(a){AdfLogger.LOGGER.finer("dragExit:",this);this._cleanUpDragFeedback(a,!0)};
AdfStampedDropTarget.prototype.drop=function(a,b,d,e){AdfLogger.LOGGER.finer("drop:",this);this._cleanUpDragFeedback(a,!1);var f=this.getComponent().getPeer(),g=a.getDropTargetProperty(AdfStampedDropTarget._ROWKEY_HINTS);null==g&&(g={},a.setDropTargetProperty(AdfStampedDropTarget._ROWKEY_HINTS,g));f.getRowKeyAndOrientationFromHints(d,e,g);return this.DropOnRowKey(a,b,d,e,g[AdfStampedDropTarget.ROW_KEY],g[AdfStampedDropTarget.DROP_ORIENTATION])};
AdfStampedDropTarget.prototype.DropOnRowKey=function(a,b,d,e,f,g){AdfLogger.LOGGER.fine("Queing Drop Event with row key:",f);(new AdfDropEvent(this.getComponent(),a.getDragSource(),a.getTransferable(),b,d,e,g,f)).queue();return b};AdfStampedDropTarget.prototype.getRowKeyDataFlavor=function(){if(this.getComponent()){var a=this._modelName;if(a)return AdfDataFlavor.getRowKeyDataFlavor(a)}return null};
AdfStampedDropTarget.prototype.AcceptDrag=function(a,b,d,e,f){var g=AdfDnDContext.ACTION_NONE,h=d,k=null,l=null,l=null;d=AdfStampedDropTarget.superclass.AcceptDrag.call(this,a,b,d,e,f);d==AdfDnDContext.ACTION_NONE&&(d=this.AcceptDragOverrideIfRejectedByFlavor(a,h));if(d!=AdfDnDContext.ACTION_NONE){g=this.getComponent();b=g.getPeer();h=a.getDropTargetProperty(AdfStampedDropTarget._ROWKEY_HINTS);null==h&&(h={},a.setDropTargetProperty(AdfStampedDropTarget._ROWKEY_HINTS,h));var m=h.lastRowKey;b.getRowKeyAndOrientationFromHints(e,
f,h);l=k=h.rowKey;null==l&&(l=AdfStampedDropTarget._NULL_ROW_KEY);var n=h[l],q,r=AdfStampedDropTarget._ACTION_KEYS[d];null==n?(n={},h[l]=n,l=b.getRowKeyBounds(k),n[AdfStampedDropTarget._BOUNDS_KEY]=l,q=null):(q=n[r],l=n[AdfStampedDropTarget._BOUNDS_KEY]);null!=q?g=q:(AdfLogger.LOGGER.finer("Check AdfStampedDropTarget rowKey:",k),q=a.getDragSource(),(null!=q?q.getComponent():null)===g&&this.NeedsRowKeyCollectionCheck()&&d==AdfDnDContext.ACTION_MOVE&&(g=a.getTransferable())&&(g=g.getTransferData(this.getRowKeyDataFlavor()),
-1!=AdfCollections.indexOf(g,k)&&(d=AdfDnDContext.ACTION_NONE)),g=d,n[r]=g);b.showDragFeedback(a,k,g,m,e,f,!1);h[AdfStampedDropTarget.HINT_LAST_ROWKEY]=k;h[AdfStampedDropTarget.HINT_LAST_ROWKEY_BOUNDS]=l;h[AdfStampedDropTarget.HINT_LAST_DROP_ORIENTATION]=h[AdfStampedDropTarget.DROP_ORIENTATION]}return g};AdfStampedDropTarget.prototype.NeedsRowKeyCollectionCheck=function(){return!0};AdfStampedDropTarget.prototype.AcceptDragOverrideIfRejectedByFlavor=function(a,b){return AdfDnDContext.ACTION_NONE};
AdfStampedDropTarget.prototype.GetAllowedFlavors=function(a){a=null;var b=this.getRowKeyDataFlavor();b&&(a=[],a.push(b));return a};AdfStampedDropTarget.prototype.GetAllowedActions=function(a){return this._allowedActions};
AdfStampedDropTarget.prototype._cleanUpDragFeedback=function(a,b){var d=a.getDropTargetProperty(AdfStampedDropTarget._ROWKEY_HINTS),e=d?d[AdfStampedDropTarget.HINT_LAST_ROWKEY]:null;b&&d&&(d[AdfStampedDropTarget.HINT_LAST_ROWKEY]=null);this.getComponent().getPeer().showDragFeedback(a,null,AdfDnDContext.ACTION_NONE,e,null,null,b)};AdfStampedDropTarget._ROWKEY_HINTS="StampedDropTarget:hints";AdfStampedDropTarget.HINT_LAST_ROWKEY="lastRowKey";AdfStampedDropTarget.HINT_LAST_ROWKEY_BOUNDS="lastRowKeyBounds";
AdfStampedDropTarget.HINT_LAST_DROP_ORIENTATION="lastDropOrientation";AdfStampedDropTarget.DROP_ORIENTATION="dropOrientation";AdfStampedDropTarget.ROW_KEY="rowKey";AdfStampedDropTarget._BOUNDS_KEY="bounds";AdfStampedDropTarget._NULL_ROW_KEY="null_rk";AdfStampedDropTarget._ACTION_KEYS=[null,"COPY","MOVE",null,"LINK"];