Ext.NET  5.3.0
.NET Component Framework for Enterprise Level Apps
Ext.Net.DropTarget.Builder< TDropTarget, TBuilder > Class Template Reference

More...

Inheritance diagram for Ext.Net.DropTarget.Builder< TDropTarget, TBuilder >:
Ext.Net.DDTarget.Builder< TDropTarget, TBuilder >

Public Member Functions

 Builder (TDropTarget component)
 
virtual TBuilder Group (string group)
 A named drag drop group to which this object belongs. If a group is specified, then this object will only interact with other drag drop objects in the same group (defaults to undefined). More...
 
virtual TBuilder DropAllowed (string dropAllowed)
 The CSS class returned to the drag source when drop is allowed (defaults to "x-dd-drop-ok"). More...
 
virtual TBuilder DropNotAllowed (string dropNotAllowed)
 The CSS class returned to the drag source when drop is not allowed (defaults to "x-dd-drop-nodrop"). More...
 
virtual TBuilder OverClass (string overClass)
 The CSS class applied to the drop target element while the drag source is over it (defaults to ""). More...
 
virtual TBuilder ContainerScroll (bool containerScroll)
 True to register this container with the Scrollmanager for auto scrolling during drag operations. More...
 
virtual TBuilder NotifyDrop (Action< JFunction > action)
 The function a Ext.dd.DragSource calls once to notify this drop target that the dragged item has been dropped on it. This method has no default implementation and returns false, so you must provide an implementation that does something to process the drop event and returns true so that the drag source's repair action does not run. More...
 
virtual TBuilder NotifyEnter (Action< JFunction > action)
 The function a Ext.dd.DragSource calls once to notify this drop target that the source is now over the target. This default implementation adds the CSS class specified by overClass (if any) to the drop element and returns the dropAllowed config value. This method should be overridden if drop validation is required. More...
 
virtual TBuilder NotifyOut (Action< JFunction > action)
 The function a Ext.dd.DragSource calls once to notify this drop target that the source has been dragged out of the target without dropping. This default implementation simply removes the CSS class specified by overClass (if any) from the drop element. More...
 
virtual TBuilder NotifyOver (Action< JFunction > action)
 The function a Ext.dd.DragSource calls continuously while it is being dragged over the target. This method will be called on every mouse movement while the drag source is over the drop target. This default implementation simply returns the dropAllowed config value. More...
 
 Builder ()
 
 Builder (DropTarget component)
 
 Builder (DropTarget.Config config)
 
- Public Member Functions inherited from Ext.Net.DDTarget.Builder< TDropTarget, TBuilder >
 Builder (TDDTarget component)
 
 Builder ()
 
 Builder (DDTarget component)
 
 Builder (DDTarget.Config config)
 

Static Public Member Functions

static implicit operator Builder (DropTarget component)
 
- Static Public Member Functions inherited from Ext.Net.DDTarget.Builder< TDropTarget, TBuilder >
static implicit operator Builder (DDTarget component)
 

Detailed Description

Type Constraints
TDropTarget :DropTarget 
TBuilder :Builder 
TBuilder :TDropTarget 
TBuilder :TBuilder 

Constructor & Destructor Documentation

◆ Builder() [1/4]

Ext.Net.DropTarget.Builder< TDropTarget, TBuilder >.Builder ( TDropTarget  component)
inline

◆ Builder() [2/4]

Ext.Net.DropTarget.Builder< TDropTarget, TBuilder >.Builder ( )
inline

◆ Builder() [3/4]

Ext.Net.DropTarget.Builder< TDropTarget, TBuilder >.Builder ( DropTarget  component)
inline

◆ Builder() [4/4]

Ext.Net.DropTarget.Builder< TDropTarget, TBuilder >.Builder ( DropTarget.Config  config)
inline

Member Function Documentation

◆ ContainerScroll()

virtual TBuilder Ext.Net.DropTarget.Builder< TDropTarget, TBuilder >.ContainerScroll ( bool  containerScroll)
inlinevirtual

True to register this container with the Scrollmanager for auto scrolling during drag operations.

◆ DropAllowed()

virtual TBuilder Ext.Net.DropTarget.Builder< TDropTarget, TBuilder >.DropAllowed ( string  dropAllowed)
inlinevirtual

The CSS class returned to the drag source when drop is allowed (defaults to "x-dd-drop-ok").

◆ DropNotAllowed()

virtual TBuilder Ext.Net.DropTarget.Builder< TDropTarget, TBuilder >.DropNotAllowed ( string  dropNotAllowed)
inlinevirtual

The CSS class returned to the drag source when drop is not allowed (defaults to "x-dd-drop-nodrop").

◆ Group()

virtual TBuilder Ext.Net.DropTarget.Builder< TDropTarget, TBuilder >.Group ( string  group)
inlinevirtual

A named drag drop group to which this object belongs. If a group is specified, then this object will only interact with other drag drop objects in the same group (defaults to undefined).

◆ NotifyDrop()

virtual TBuilder Ext.Net.DropTarget.Builder< TDropTarget, TBuilder >.NotifyDrop ( Action< JFunction action)
inlinevirtual

The function a Ext.dd.DragSource calls once to notify this drop target that the dragged item has been dropped on it. This method has no default implementation and returns false, so you must provide an implementation that does something to process the drop event and returns true so that the drag source's repair action does not run.

Parameters
actionThe action delegate
Returns
An instance of TBuilder

◆ NotifyEnter()

virtual TBuilder Ext.Net.DropTarget.Builder< TDropTarget, TBuilder >.NotifyEnter ( Action< JFunction action)
inlinevirtual

The function a Ext.dd.DragSource calls once to notify this drop target that the source is now over the target. This default implementation adds the CSS class specified by overClass (if any) to the drop element and returns the dropAllowed config value. This method should be overridden if drop validation is required.

Parameters
actionThe action delegate
Returns
An instance of TBuilder

◆ NotifyOut()

virtual TBuilder Ext.Net.DropTarget.Builder< TDropTarget, TBuilder >.NotifyOut ( Action< JFunction action)
inlinevirtual

The function a Ext.dd.DragSource calls once to notify this drop target that the source has been dragged out of the target without dropping. This default implementation simply removes the CSS class specified by overClass (if any) from the drop element.

Parameters
actionThe action delegate
Returns
An instance of TBuilder

◆ NotifyOver()

virtual TBuilder Ext.Net.DropTarget.Builder< TDropTarget, TBuilder >.NotifyOver ( Action< JFunction action)
inlinevirtual

The function a Ext.dd.DragSource calls continuously while it is being dragged over the target. This method will be called on every mouse movement while the drag source is over the drop target. This default implementation simply returns the dropAllowed config value.

Parameters
actionThe action delegate
Returns
An instance of TBuilder

◆ operator Builder()

static implicit Ext.Net.DropTarget.Builder< TDropTarget, TBuilder >.operator Builder ( DropTarget  component)
inlinestatic

◆ OverClass()

virtual TBuilder Ext.Net.DropTarget.Builder< TDropTarget, TBuilder >.OverClass ( string  overClass)
inlinevirtual

The CSS class applied to the drop target element while the drag source is over it (defaults to "").


The documentation for this class was generated from the following file: