|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--DHTMLSuite.JSDragDropTree
Purpose of class: Transforms an UL,LI list into a folder tree with drag and drop capabilities(See demo).
Defined in dhtml-suite-for-applications.js
Author: Alf Magne Kalleland(www.dhtmlgoodies.com)
Version: 1.0 , 1.0
Field Summary | |
Object |
ajaxObjects
|
Object |
cookieName
|
Object |
dragDropTimer
|
Object |
dragNode_noSiblings
|
Object |
floatingContainer
|
Object |
folderImage
|
Object |
indicator_offsetX
|
Object |
indicator_offsetX_sub
|
Object |
indicator_offsetY
|
Object |
insertAsSub
|
Object |
layoutCSS
|
Object |
maximumDepth
|
Object |
messageMaximumDepthReached
|
Object |
minusImage
|
Object |
objectIndex
|
Object |
plusImage
|
Constructor Summary | |
DHTMLSuite.JSDragDropTree
()
|
Method Summary | |
void
|
collapseAll()
Collapse all tree nodes |
void
|
expandAll()
Expand all tree nodes |
String
|
getSaveString(initObj,saveString)
Return save string |
void
|
init()
Initializes the script |
void
|
setCookieName(cookieName)
set new CSS file |
void
|
setFolderImage(newFolderImage)
set new folder image file |
void
|
setLayoutCss(cssFileName)
set new CSS file |
void
|
setMaximumDepth(maxDepth)
set maximum depth of tree. |
void
|
setMessageMaximumDepthReached(newMessage)
Set maximum depth reached error message |
void
|
setMinusImage(newMinusImage)
set new plus imagee |
void
|
setPlusImage(newPlusImage)
set new CSS file |
void
|
setTreeId(idOfTree)
set ID of tree root element |
Object
|
showHideNode(e,inputId)
Expand a specific node |
Field Detail |
Object ajaxObjects
Object cookieName
Object dragDropTimer
Object dragNode_noSiblings
Object floatingContainer
Object folderImage
Object indicator_offsetX
Object indicator_offsetX_sub
Object indicator_offsetY
Object insertAsSub
Object layoutCSS
Object maximumDepth
Object messageMaximumDepthReached
Object minusImage
Object objectIndex
Object plusImage
Constructor Detail |
DHTMLSuite.JSDragDropTree()
Method Detail |
void collapseAll()
void expandAll()
String getSaveString(initObj,saveString)
Object
- initObj - Only for private use inside the method
String
- saveString - Only for private use inside the method - you should call this method without arguments.
void init()
void setCookieName(cookieName)
String
- cookieName - Name of cookie (storing expanded nodes ) default DHTMLSuite.JSDragDropTree.prototype.value = DHTMLSuite_expandedNodes;*
void setFolderImage(newFolderImage)
String
- newFolderImage - name of folder image(DHTMLSuite.JSDragDropTree.prototype.example = folder;.gif). Has to be set before init is called.
void setLayoutCss(cssFileName)
String
- cssFileName - name of new css file(DHTMLSuite.JSDragDropTree.prototype.example = drag;-drop.css). Has to be set before init is called.
void setMaximumDepth(maxDepth)
Int
- maxDepth - new maximum depth of tree.
void setMessageMaximumDepthReached(newMessage)
String
- newMessage - Specify message to show when max depth is reached, i.e. error message
void setMinusImage(newMinusImage)
String
- newMinusImage - name of new [-] image(DHTMLSuite.JSDragDropTree.prototype.example = minus;.gif). Has to be set before init is called.
void setPlusImage(newPlusImage)
String
- newPlusImage - name of new [+] image(DHTMLSuite.JSDragDropTree.prototype.example = plus;.gif). Has to be set before init is called.
void setTreeId(idOfTree)
String
- idOfTree - Id of UL tag which is root element of the tree.
Object showHideNode(e,inputId)
boolean
- e - If you call this method manually, set this argument to false(It's not used)
string
- inputId - Id of node to expand/collapse
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |