OracleJavaScript API Reference for Oracle ADF Faces

 

SUMMARY: FIELD | CONSTR | METHOD    DETAIL: FIELD | CONSTR | METHOD

oracle.adfinternal.view.js.dnd.touch
Class AdfColumnDragSource

Warning:

org.ecmascript.object.Object
   |
   +--oracle.adf.view.js.base.AdfObject
         |
         +--oracle.adf.view.js.dnd.AdfDragSource
               |
               +--oracle.adf.view.js.dnd.AdfComponentDragSource
                     |
                     +--oracle.adfinternal.view.js.dnd.touch.AdfColumnDragSource

public class AdfColumnDragSource
extends AdfComponentDragSource
AdfColumnDragSource, for column reordering by drag and drop. Currently only used on touchScreen devices



Field Summary


Fields inherited from oracle.adf.view.js.base.AdfObject

constructor, superclass


Fields inherited from org.ecmascript.object.Object

prototype


Constructor Summary

public
AdfColumnDragSource()
AdfColumnDragSource, for column reordering by drag and drop.


Method Summary

protected Node
GetDragOverFeedback(AdfUIInputEvent inputEvent)
Create a node to represent to the user what is being dragged.
private AdfRichTable|null
_getTable()
Get the table component for this column
protected Object
Init()
Initialize the class
public Boolean
isAvailable(AdfDndContext dndContext, Object inputEvent)
Checks if the drag and drop operation should be considered for the given input event.


Methods inherited from oracle.adf.view.js.dnd.AdfComponentDragSource

GetDragTransferable


Methods inherited from oracle.adf.view.js.dnd.AdfDragSource

applyDragReadyState, applyDragSourceState, clearDragReadyState, clearDragSourceState, CreateDragRecognizer, dragDropEnd, dragEnter, dragExit, dragOver, dropActionChanged, getAllowedActions, getComponent, getDefaultAction, GetDefaultDragCursor, GetDragOffset, getDragRecognizer, initiateDrag, toDebugString


Methods inherited from oracle.adf.view.js.base.AdfObject

adopt, clone, createCallback, createInitializedObject, createSubclass, ensureClassInitialization, equals, getClass, GetLazyArrayProperty, GetLazyMapProperty, getTypeName, toString


Field Detail


Constructor Detail


AdfColumnDragSource

public AdfColumnDragSource()

AdfColumnDragSource, for column reordering by drag and drop. Currently only used on touchScreen devices

Method Detail


GetDragOverFeedback

protected Node GetDragOverFeedback(AdfUIInputEvent inputEvent)

Create a node to represent to the user what is being dragged. In this case, the feedback is a DIV that has the dimensions of the column being dragged.

Parameters:
inputEvent  -  the event triggering the dragging
Return:
Node - the HTML node to use
Overrides:
AdfDragSource.GetDragOverFeedback(AdfUIInputEvent)

_getTable

private AdfRichTable|null _getTable()

Get the table component for this column

Return:
AdfRichTable|null - the table, if found

Init

protected Object Init()

Initialize the class

Return:
Object
Overrides:
AdfObject.Init()

isAvailable

public Boolean isAvailable(AdfDndContext dndContext,
                           Object inputEvent)

Checks if the drag and drop operation should be considered for the given input event. Ensures that the table column reordering has not been disabled, and that the event falls within the column header, and not near an edge, to be considered a resize gesture, or on a sort icon.

Parameters:
dndContext  -  the drag and drop context
inputEvent    
Return:
Boolean - if the event should be considered for starting a drag and drop operation
Overrides:
AdfDragSource.isAvailable(Object)

SUMMARY: FIELD | CONSTR | METHOD    DETAIL: FIELD | CONSTR | METHOD

 

Generated on 2012.08.25 02:16 UTC
Copyright (c) 1998, 2012, Oracle and/or its affiliates. All rights reserved.