Changes between Version 4 and Version 5 of SopUseJQuerytree


Ignore:
Timestamp:
2012-01-10T16:58:09+01:00 (13 years ago)
Author:
antonak
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • SopUseJQuerytree

    v4 v5  
    1515
    1616* JQueryTreeView.java contains the constructor , renderTree() and toHtml().
    17 * The function renderTree() is used by toHtml() is order to print each specific node to html <li>.The function toHtml() is actually serving the whole tree if called . * * Contains the css and js references as well as the jquery functionality.
    18 ** About the tree: No Nodes collapsed explicitly. Node is manually closed then by giving its LI element a "closed"(/opened) CSS class.
    19 ** The animation is enabled, and the speed is "normal" (this can be modified). "Cookie" persistence enabled, causing the current tree state to be persisted.
    20 ** Dynamically adding a sub tree to the existing tree demonstrated.
    21 
     17* The function renderTree() is used by toHtml() is order to print each specific node to html <li>.The function toHtml() is actually serving the whole tree if called .
     18* Contains the css and js references as well as the jquery functionality.
     19**About the tree: No Nodes collapsed explicitly. Node is manually closed then by giving its LI element a "closed"(/opened) CSS class.
     20**The animation is enabled, and the speed is "normal" (this can be modified). "Cookie" persistence enabled, causing the current tree state to be persisted.
     21**Dynamically adding a sub tree to the existing tree demonstrated.
    2222
    2323= How to instantiate and use it =
     
    2525* Inside your plugin instantiate a tree object by calling
    2626
    27 {{{
    28 JQueryTreeView<JQueryTreeViewElement> treeView 
     27{{{JQueryTreeView<JQueryTreeViewElement> treeView  }}}
    2928
    30 }}}
    31 
    32 *You will probably need a function like addingObjectsToTree which will actually create the JQueryTreeViewElemen and fill the JQueryTreeView. 
     29* You will probably need a function like addingObjectsToTree which will actually create the JQueryTreeViewElemen and fill the JQueryTreeView. 
    3330*For the purposes of the measurements tree in LLcatalogueTree plugin(/molgenis_apps/apps/lifelines/plugins/LLcatalogueTree)  we have instantiated the JQuery tree  in public class JQueryTreeViewElementMeasurement extends JQueryTreeViewElement{ where the elements of the tree are measurements.
    3431* There is an example in LLcatalogueTree