|
Framework JavaScript ACube V2.10.0 | ||||||||
CLASSE PRECEDENTE CLASSE SUIVANTE | CADRES SANS CADRES | ||||||||
SOMMAIRE: ATTR | CONSTR | METH | DETAIL: ATTR | CONSTR | METH |
Object | +--Dragger
the class «Dragger» is the class permitting to drag DOMElement
Version: 2.9.1
Date: 23/01/2009
Definie dans technique/fw_popupinline.js
Sommaire des Attributs | |
<private> Boolean |
_autoScroll
Private attribute « _autoScroll » - Autoscroll activated or not |
<private> Object |
_constraints
Private attribute « _constraints » - the constraints to apply while dragging |
<private> Document |
_document
Private attribute « _document » - the root Document |
<private> DOMElement |
_domElement
Private attribute « _domElement » - the DOMElement to drag |
<private> Boolean |
_dragging
Private attribute « _dragging » - the dragging state |
<private> Array_int |
_elementCoords
Private attribute « _elementCoords » - the last recorded drag element coordinates |
<private> Array_int |
_mouseCoords
Private attribute « _mouseCoords » - the last recorded mouse coordinates |
<private> String |
_position
Private attribute « _position » - the positioning mode (absolute | relative) |
<private> Array_String |
_selectors
Private attribute « _selectors » - the CSS classes which start the drag |
Sommaire des Constructeurs | |
Dragger
(root, <Document_Optionnel> docBase, selectors)
Create a new Dragger object. |
Sommaire des Méthodes | |
void
|
addSelector(<String_Obligatoire> className)
The public method « addSelector() » is used to add a CSS selector class. |
void
|
dragTo(<int_Obligatoire> left, <int_Obligatoire> top)
The public method « dragTo() » is used to drag the DOMElement to specific coordinates. |
void
|
initCoords(<int_Obligatoire> left, <int_Obligatoire> top)
The public method « initCoords() » is used to initialize the first coordinates. |
void
|
leave()
The public method « leave() » is used to deactivate the dragging of the DOMElement. |
void
|
removeSelector(<String_Obligatoire> className)
The public method « removeSelector() » is used to remove a CSS selector class. |
void
|
setAutoScroll(<Boolean_Obligatoire> autoScroll)
The public method « setAutoScroll() » is used to set the autoScroll attribute. |
void
|
setDocument(<Document_Obligatoire> docBase)
The public method « setDocument() » is used to set the root Document. |
void
|
setMaxConstraints(<int_Obligatoire> maxLeft, <int_Obligatoire> maxTop)
The public method « setMaxConstraints() » is used to set the max constraints. |
void
|
setMinConstraints(<int_Obligatoire> minLeft, <int_Obligatoire> minTop)
The public method « setMinConstraints() » is used to set the min constraints. |
void
|
setPosition(<String_Obligatoire> position)
The public method « setPosition() » is used to set the position. |
void
|
toString()
The public method « toString() » is used to display the object. |
Détail des Attributs |
<private> Boolean _autoScroll
<private> Object _constraints
<private> Document _document
<private> DOMElement _domElement
<private> Boolean _dragging
<private> Array_int _elementCoords
<private> Array_int _mouseCoords
<private> String _position
<private> Array_String _selectors
Détail des Constructeurs |
Dragger(root, <Document_Optionnel> docBase, selectors)
docBase - Document_Optionnel
:
DOMElement -
|String)_Obligatoire} root :
String -
[]_Optionnel} selectors :
Détail des Méthodes |
void addSelector(<String_Obligatoire> className)
className - String_Obligatoire
: the CSS selector class name to add
void dragTo(<int_Obligatoire> left, <int_Obligatoire> top)
left - int_Obligatoire
: the left coordinate to drag
top - int_Obligatoire
: the top coordinate to drag
void initCoords(<int_Obligatoire> left, <int_Obligatoire> top)
left - int_Obligatoire
: the initialized left coordinate
top - int_Obligatoire
: the initialized top coordinate
void leave()
none -
void removeSelector(<String_Obligatoire> className)
className - String_Obligatoire
: the CSS selector class name to remove
void setAutoScroll(<Boolean_Obligatoire> autoScroll)
autoScroll - Boolean_Obligatoire
void setDocument(<Document_Obligatoire> docBase)
docBase - Document_Obligatoire
void setMaxConstraints(<int_Obligatoire> maxLeft, <int_Obligatoire> maxTop)
maxLeft - int_Obligatoire
: the max left constraint
maxTop - int_Obligatoire
: the max top constraint
void setMinConstraints(<int_Obligatoire> minLeft, <int_Obligatoire> minTop)
minLeft - int_Obligatoire
: the min left constraint
minTop - int_Obligatoire
: the min top constraint
void setPosition(<String_Obligatoire> position)
position - String_Obligatoire
: the position ("absolute" | "relative")
void toString()
none -
|
Framework JavaScript ACube V2.10.0 | ||||||||
CLASSE PRECEDENTE CLASSE SUIVANTE | CADRES SANS CADRES | ||||||||
SOMMAIRE: ATTR | CONSTR | METH | DETAIL: ATTR | CONSTR | METH |