Column drop target to support drag and drop reordering of columns on touch devices.
Method Summary |
public Object |
acceptDragEnter(Object dndContext, Object proposedAction, Object pageX, Object pageY)
Checks if the proposed drop is for a column owned by the table the dragging
column is owned by and that the resulting drop operation would result
in a reorder.
|
public Object |
acceptDragOver(Object dndContext, Object proposedAction, Object pageX, Object pageY)
Check if the base class allows the drag and that the column being dragged is the same table
as the component for this drop target.
|
private Object |
_applyUserFeedback(AdfDndContext dndContext, Integer pageX, Integer pageY)
Apply style classes to the column to insert before and insert after
to provide improved user feedback over the default drag and drop
feedback.
|
private Object |
_createColumnDropTarget(AdfRichColumn column)
Creates a DIV to display to the user where to drop the column.
|
private Object |
_createColumnReorderTracker(AdfRichColumn column)
Creates a DIV
|
public Object |
dragExit(Object dndContext)
Removes any user feedback for dragging between two columns.
|
public Object |
drop(Object dndContext, Object proposedAction, Object pageX, Object pageY)
Handles queuing a column reorder event on the server.
|
protected Object |
GetAllowedActions(Object dndContext)
Permits move actions for column reordering.
|
protected Object |
GetAllowedFlavors(Object dndContext)
Return a singleton array of a component drag and drop flavor for a
rich column.
|
private ?AdfRichColumn |
_getDragColumn(AdfDndContext dndContext)
Get the column being dragged from the drag and drop context.
|
private ?AdfRichTable |
_getTable(AdfRichColumn column)
Get the table component for the given column
|
protected Object |
Init()
Initializes this class
|
private Boolean |
_isDragAllowed(AdfDnDContext dndContext)
Perform any other drag logic to see if the drop should be allowed.
|
private Object |
_positionColumnDropTarget(AdfDnDContext dndContext, Integer pageX, Integer pageY)
Positions the DIV between the columns on the correct column gap
|
private Object |
_removeUserFeedback(AdfDndContext dndContext)
Removes the custom user feedback if necessary.
|