|
|
|
_addItemClass(
node
: Node
type
: String
) :
void
adds a class with prefix "dojoDndItem"
Parameter |
Type |
Usage |
Description |
node |
Node |
required |
a node |
type |
String |
required |
a variable suffix for a class name |
|
|
|
|
_changeState(
type
: String
newState
: String
) :
void
changes a named state to new state value
Parameter |
Type |
Usage |
Description |
type |
String |
required |
a name of the state to change |
newState |
String |
required |
new state |
|
|
|
|
_getChildByEvent(
e
: Event
) :
void
gets a child, which is under the mouse at the moment, or null
Parameter |
Type |
Usage |
Description |
e |
Event |
required |
a mouse event |
|
|
|
|
_normalizedCreator(
item
hint
) :
void
adds all necessary data to the output of the user-supplied creator function
Parameter |
Type |
Usage |
Description |
item |
|
required |
|
hint |
|
required |
|
|
|
|
|
_removeAnchor(
) :
void
|
|
|
|
_removeItemClass(
node
: Node
type
: String
) :
void
removes a class with prefix "dojoDndItem"
Parameter |
Type |
Usage |
Description |
node |
Node |
required |
a node |
type |
String |
required |
a variable suffix for a class name |
|
|
|
|
_removeSelection(
) :
void
|
|
|
|
clearItems(
) :
void
removes all data items from the map
|
|
|
|
constructor(
node
: Node||String
params
: dojo.dnd.__SelectorArgs
) :
void
constructor of the Selector
Parameter |
Type |
Usage |
Description |
node |
Node||String |
required |
node or node's id to build the selector on |
params |
dojo.dnd.__SelectorArgs |
optional |
a dictionary of parameters |
|
|
|
|
creator(
) :
void
creator function, dummy at the moment
|
|
|
|
deleteSelectedNodes(
) :
void
deletes all selected items
|
|
|
|
delItem(
key
: String
) :
void
removes a data item from the map by its key (id)
Parameter |
Type |
Usage |
Description |
key |
String |
required |
|
|
|
|
|
destroy(
) :
void
prepares the object to be garbage-collected
|
|
|
|
forInItems(
f
: Function
o
: Object
) :
void
iterates over a data map skipping members that
are present in the empty object (IE and/or 3rd-party libraries).
Parameter |
Type |
Usage |
Description |
f |
Function |
required |
|
o |
Object |
optional |
|
|
|
|
|
forInSelectedItems(
f
: Function
o
: Object
) :
void
iterates over selected items;
see dojo.dnd.Container.forInItems() for details
Parameter |
Type |
Usage |
Description |
f |
Function |
required |
|
o |
Object |
optional |
|
|
|
|
|
getAllNodes(
) :
void
returns a list (an array) of all valid child nodes
|
|
|
|
getItem(
key
: String
) :
void
returns a data item by its key (id)
Parameter |
Type |
Usage |
Description |
key |
String |
required |
|
|
|
|
|
getSelectedNodes(
) :
void
returns a list (an array) of selected nodes
|
|
|
|
insertNodes(
addSelected
: Boolean
data
: Array
before
: Boolean
anchor
: Node
) :
void
inserts new data items (see dojo.dnd.Container.insertNodes() method for details)
Parameter |
Type |
Usage |
Description |
addSelected |
Boolean |
required |
all new nodes will be added to selected items, if true, no selection change otherwise |
data |
Array |
required |
a list of data items, which should be processed by the creator function |
before |
Boolean |
required |
insert before the anchor, if true, and after the anchor otherwise |
anchor |
Node |
required |
the anchor node to be used as a point of insertion |
|
|
|
|
markupFactory(
params
node
) :
void
Parameter |
Type |
Usage |
Description |
params |
|
required |
|
node |
|
required |
|
|
|
|
|
onMouseDown(
e
: Event
) :
void
event processor for onmousedown
Parameter |
Type |
Usage |
Description |
e |
Event |
required |
mouse event |
|
|
|
|
onMouseMove(
e
: Event
) :
void
Parameter |
Type |
Usage |
Description |
e |
Event |
required |
mouse event |
|
|
|
|
onMouseOut(
e
: Event
) :
void
event processor for onmouseout
Parameter |
Type |
Usage |
Description |
e |
Event |
required |
mouse event |
|
|
|
|
onMouseOver(
e
: Event
) :
void
event processor for onmouseover
Parameter |
Type |
Usage |
Description |
e |
Event |
required |
mouse event |
|
|
|
|
onMouseUp(
e
: Event
) :
void
event processor for onmouseup
Parameter |
Type |
Usage |
Description |
e |
Event |
required |
mouse event |
|
|
|
|
onOutEvent(
) :
void
this function is called once, when mouse is out of our container
|
|
|
|
onOverEvent(
) :
void
this function is called once, when mouse is over our container
|
|
|
|
onSelectStart(
e
: Event
) :
void
event processor for onselectevent and ondragevent
Parameter |
Type |
Usage |
Description |
e |
Event |
required |
mouse event |
|
|
|
|
selectAll(
) :
void
|
|
|
|
selectNone(
) :
void
|
|
|
|
setItem(
key
: String
data
: dojo.dnd.Item
) :
void
associates a data item with its key (id)
Parameter |
Type |
Usage |
Description |
key |
String |
required |
|
data |
dojo.dnd.Item |
required |
|
|
|
|
|
startup(
) :
void
collects valid child items and populate the map
|
|
|
|
sync(
) :
void
sync up the node list with the data map
|