Class DatasetCfg.AnTreeNode

java.lang.Object
io.odysz.anson.Anson
io.odysz.semantic.DA.TreeIndenode
io.odysz.semantic.DA.DatasetCfg.AnTreeNode
All Implemented Interfaces:
io.odysz.anson.IJsonable
Enclosing class:
DatasetCfg

public static class DatasetCfg.AnTreeNode extends TreeIndenode

Representing each tree node.

Design Memo:
What easy ui tree control expected is this:
    [{"children":[
       { "fullpath":"01.0101",
         "checked":true,
         "text":"users","sort":"0101", "value":"0101", "parentId":"01" },
       { "fullpath":"01.0102",
         "checked":true,
         "text":"roles","sort":"0102","value":"0102","parentId":"01" },
       { "fullpath":"01.0103",
         "checked":true,
         "text":"sys log","sort":"0103","value":"0103","parentId":"01" } ],
       "fullpath":"01",
       "checked":true,
       "text":"system","sort":"01","value":"01","parentId":""
     },
     {"children":[
       { "fullpath":"03.0301",
         "checked":true,
         "text":"FUNC 0301","sort":"0301","value":"0301","parentId":"03"} ],
       "fullpath":"03",
       "checked":true,
       "text":"web contents","sort":"03","value":"03"
     }]
  • Constructor Details

    • AnTreeNode

      public AnTreeNode()
      Only for Anson parser, don't create like this (use subclass constructor)
    • AnTreeNode

      public AnTreeNode(String id, String parent, int level, DatasetCfg.AnTreeNode... root)