Customizing tree component

hi
i would like to know if it's possible to use a tree component, where each node is more than the simple default static text component.
ideally, i'd like a tree to dynamically create a node for each Order in a database. each Order Node would have sub-nodes for each item of that order. this can be done by following the tree component tutorials.
but what i need is to be able to add other components to the nodes, other than the default static text. for example, adding a table to a node, or a text area. whenever i try to do this, the IDE adds the components to the nodes but aligns them with the left-most border of the entire tree component, instead of aligning them with the left border of the node to which they belong.
what can i do?

thank you very much. it works!!
my only problem occurs when the text being set for a node is too long. the tree component displays the text on a single line OUTSIDE of the tree node ie. the start of the text is aligned on the left with the tree title instead of being under the node it is supposed to be in.
thanks again!!

Similar Messages

  • JSF tree component

    Hello,
    I am using JSF 1.1
    + looking to add tree functionality to a couple of rows.
    I know that myfaces has it but would like to know if JSF 1.1 also have something similar to tree2 from myfaces.
    Thanks!

    The Sun RI of JSF does not have a tree component like MyFaces.
    You will either have to create your own custom tree component using the Sun JSF RI (could be a lot of work, especially if you've never created a custom component before), or use the MyFaces one.
    CowKing

  • CheckBox Tree Component

    Hye guys,
    I need a custom tree component for some xml elements that represent some files and their attributes. I have written one such component but what I need now to add to this component is Checkboxes.
    The user is supposed to select files from this Tree component via these chk boxes.
    Can someone point me in the direction of such an existing Tree component.
    Or if I have to write one how do I go about it.
    Pls donot point me to the Java tutorial. I read it but I still have a very very vague idea, if any idea at all, of doing this.
    Regards

    worth a look
    http://forum.java.sun.com/thread.jsp?forum=57&thread=122006

  • Custom background Colour of tree component

    I want to set custom background to each node of the tree
    component.
    I've tried
    myTree.setPropertiesAt(2, {backgroundColor:0x000000});
    or
    myTree.getTreeNodeAt(2).setStyle("backgroundColor",
    0x000000);
    but also not working
    how could I do this?
    pls help.

    From the API docu
    Further, if you do not invoker super's implementation you must honor the opaque property, that is if this component is opaque, you must completely fill in the background in a non-opaque color. If you do not honor the opaque property you will likely see visual artifacts.
    I read this as either call super.paintComponent() or you must draw a filled rectangle of the background color yourself, but that whether it changes the background color or not, also depends on the setOpaque(true).
    Reading that it seems as though it is a combination of our suggestions.

  • Custom icon per entry in the AS2 Tree Component (using CS3)

    I have a tree component that loads its data from an XML file and I wonder if I can customize every entry to have its own icon by adding an icon attribute to every entry in the XML and giving the tree an action to read that icon (which would exist in the library of the Flash file). My goal is to reproduce a tree within an application that my company is developing (it's for a training tool related to that application).
    My XML says something like <node label = 'Label' heading = 'LABEL' desc = 'Description' icon = 'icon1' />
    My label is what the tree displays, the heading is what the information dialog in the training tool displays as a title bar, the desc is what the training tool displays within the body of the text for the function description and the icon is what I want to be a reference to the graphic in the library to place as an icon in front of the item rather than use setStyle with the properties for disclosure, leaf, and folder icons.
    Is that possible? I haven't found a solution for it yet.

    I've never used the Tree component, so I'm just guessing here....
    There is a slight delay before the xml file loads and your tree has its data provider.
    Perhaps during that time there is no node at mTree.getTreeNodeAt(0) to open? Try adding this just before the last line of your code:
    trace("the node is: "+mTree.getTreeNodeAt(0));
    What do you get?
    You might need to move that code inside the xml's load event handler.
    Another thing is that the Flash components tend to work on an invalidate-then-wait-one-frame-to-redraw kind of model. So it is possible you will need to wait one frame after the xml has loaded and then tell it to open that node.
    The doLater method might help with that.
    var home:MovieClip=this;
    var xmlTreeData:XML = new XML();
    xmlTreeData.onLoad = function() {
    mTree.dataProvider = this.firstChild;
    mTree.doLater(home,"delay");
    xmlTreeData.ignoreWhite = true;
    xmlTreeData.load("xml/treeValues1.xml");
    mTree.setStyle("fontSize","11");
    mTree.setStyle("selectionColor","0xE0E0E0");
    mTree.setStyle("useRollOver",false);
    function delay(){ 

  • Customizing the Tree Component inn ADF Faces..

    HI,
    I am using the ADF Faces Tree Component and was wondering wheteher we
    can use a specific theme instead of the default one..
    The scenario's i am looking at are
    1) Changing the Style of the Selected Node
    2) Programatically can i assign a different styling for a Specific
    Node (Previously Selected) in the Tree ??
    3) And any info reg Enabling the Drag and Drop functionality ?? As of
    now i don't think it is supported. Are there any plans of it being
    supported in the furture releases??
    Thanks
    Sateesh

    Hi,
    1) See tree skin selectors: http://www.oracle.com/technology/products/jdev/htdocs/partners/addins/exchange/jsf/doc/skin-selectors.html
    2) You can reference a managed bean for providing the inline style sheet on a component. This however only works when the tree is re-drawn and not dynamically
    3) Drag and drop doesn't work in 10.1.3.x. In 11 this may work - havent tested yet - using a client listener component
    Frank

  • Customizing the Tree Component

    Is there a way to set different font sizes and colors for
    different levels of the tree menu?

    I am guessing that you are using AS2 components, as there is
    not a default Tree component for AS3...
    I don't know about font sizes, but you can set depth colors
    for the AS2 Tree.
    The following will set the background colors to black, medium
    grey, lighter grey for the Tree that is named "myTree":
    var colorArray:Array = new Array();
    colorArray.push(0x000000);
    colorArray.push(0x555555);
    colorArray.push(0x999999);
    myTree.setStyle( "depthColors", colorArray );
    Note that this is based on the depth. IE for the node
    structure:
    <node label="First Level">
    <node label="Second Level">
    <node label="Third Level">
    </node>
    </node>
    </node>
    First Level with have a black background, Second Level will
    have a medium grey background and Third Level will have a lighter
    grey background.

  • Label display issue in Tree component when it is having vertical scrollbar

    I am using tree component as dropdown factory for combo box. When i open dropdown, it doesn't have vertical scrollbar and all the root nodes are getting displayed correctly(in closed mode). Now if i try to open any node, i am getting vertical scrollbar as the child nodes are more. Now the problem is if scroll down, some of the nodes(labels) are not getting displayed but i am able to see the icon. If i keep on scrolling bottom to top and top to bottom, some of the nodes are showing labels and some are not(It is inconsistant).
    I have not used any custom item renderer for tree control. I used my custom dataDescriptor which i have implemented from ITreeDataDescriptor. Also I tried extending DefalutDataDescriptor, but no luck.

    Does it work if the tree is not in a combobox?

  • How to resize a custom tree node like you would a JFrame window?

    Hello,
    I am trying to resize a custom tree node like you would a JFrame window.
    As with a JFrame, when your mouse crosses the Border, the cursor should change and you are able to drag the edge to resize the node.
    However, I am faced with a problem. Border cannot detect this and I dont want to use a mouse motion listener (with a large number of nodes, I fear it will be inefficient, calculating every node's position constantly).
    import java.awt.BorderLayout;
    import java.awt.Color;
    import java.awt.Component;
    import java.awt.Dimension;
    import java.awt.Insets;
    import java.util.EventObject;
    import javax.swing.BorderFactory;
    import javax.swing.Box;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JScrollPane;
    import javax.swing.JTextArea;
    import javax.swing.JTree;
    import javax.swing.tree.DefaultMutableTreeNode;
    import javax.swing.tree.DefaultTreeCellEditor;
    import javax.swing.tree.DefaultTreeCellRenderer;
    import javax.swing.tree.DefaultTreeModel;
    import javax.swing.tree.TreeSelectionModel;
    public class ResizeNode extends JPanel {
           AnilTreeCellRenderer2 atcr;
           AnilTreeCellEditor2 atce;
           DefaultTreeModel treeModel;
           JTree tree;
           DefaultMutableTreeNode markedNode = null;
         public ResizeNode() {
                super(new BorderLayout());
                   treeModel = new DefaultTreeModel(null);
                   tree = new JTree(treeModel);          
                  tree.setEditable(true);
                   tree.getSelectionModel().setSelectionMode(
                             TreeSelectionModel.SINGLE_TREE_SELECTION);
                   tree.setShowsRootHandles(true);
                  tree.setCellRenderer(atcr = new AnilTreeCellRenderer2());
                  tree.setCellEditor(atce = new AnilTreeCellEditor2(tree, atcr));
                   JScrollPane scrollPane = new JScrollPane(tree);
                   add(scrollPane,BorderLayout.CENTER);
         public void setRootNode(DefaultMutableTreeNode node) {
              treeModel.setRoot(node);
              treeModel.reload();
           public static void main(String[] args){
                ResizeNode tb = new ResizeNode();
                tb.setPreferredSize(new Dimension(400,200));
                  JFrame frame = new JFrame("ResizeNode");
                  frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                  frame.setContentPane(tb);
                  frame.setSize(400, 200);
                  frame.pack();
                  frame.setVisible(true);
                  tb.populate();
         private void populate() {
              TextAreaNode2 r = new TextAreaNode2(this);
               setRootNode(r);
               TextAreaNode2 a = new TextAreaNode2(this);
               treeModel.insertNodeInto(a, r, r.getChildCount());          
    class AnilTreeCellRenderer2 extends DefaultTreeCellRenderer{
    TreeBasic panel;
    DefaultMutableTreeNode currentNode;
      public AnilTreeCellRenderer2() {
         super();
    public Component getTreeCellRendererComponent
       (JTree tree, Object value, boolean selected, boolean expanded,
       boolean leaf, int row, boolean hasFocus){
         TextAreaNode2 currentNode = (TextAreaNode2)value;
         NodeGUI2 gNode = (NodeGUI2) currentNode.gNode;
        return gNode.box;
    class AnilTreeCellEditor2 extends DefaultTreeCellEditor{
      DefaultTreeCellRenderer rend;
      public AnilTreeCellEditor2(JTree tree, DefaultTreeCellRenderer r){
        super(tree, r);
        rend = r;
      public Component getTreeCellEditorComponent(JTree tree, Object value,
       boolean isSelected, boolean expanded, boolean leaf, int row){
        return rend.getTreeCellRendererComponent(tree, value, isSelected, expanded,
         leaf, row, true);
      public boolean isCellEditable(EventObject event){
        return true;
    class NodeGUI2 {
         final ResizeNode view;
         Box box = Box.createVerticalBox();
         final JTextArea aa = new JTextArea( 1, 5 );
         final JTextArea aaa = new JTextArea( 1, 8 );
         NodeGUI2( ResizeNode view_ ) {
              this.view = view_;
              box.add( aa );
              aa.setBorder( BorderFactory.createMatteBorder( 0, 0, 1, 0, Color.GREEN ) );
              box.add( aaa );
              box.setBorder( BorderFactory.createMatteBorder( 5, 5, 5, 5, Color.CYAN ) );
         private Dimension getEditorPreferredSize() {
              Insets insets = box.getInsets();
              Dimension boxSize = box.getPreferredSize();
              Dimension aaSize = aa.getPreferredSize();
              Dimension aaaSize = aaa.getPreferredSize();
              int height = aaSize.height + aaaSize.height + insets.top + insets.bottom;
              int width = Math.max( aaSize.width, aaaSize.width );
              if ( width < boxSize.width )
                   width += insets.right + insets.left + 3;     // 3 for cursor
              return new Dimension( width, height );               
    class TextAreaNode2 extends DefaultMutableTreeNode {  
         NodeGUI2 gNode;
         TextAreaNode2(ResizeNode view_) {     
              gNode = new NodeGUI2(view_);
    }

    the node on the tree is only painted on using the
    renderer to do the painting work. A mouse listener
    has to be added to the tree, and when moved over an
    area, you have to determine if you are over the
    border and which direction to update the cursor and
    to know which way to resize when dragged. One of the
    BasicRootPaneUI has some code that can help determine
    that.Thanks for replying. What is your opinion on this alternative idea that I just had?
    I am wondering if it might be easier to have a toggle button in the node that you click when you want to resize the node. Then a mouse-down and dragging the mouse will resize the node. Mouse-up will reset the toggle button, and so will mouse down in an invalid area.
    Anil

  • Tree Component Icons

    I'm using the tree component for a little Windows Parody I'm making. In my .fla, There's a tree component that loads an external XML file.  I can't figure out how to add custom icons to my component, though.
    I know it's possible to set the icons for just the default folder and file icons, but since it's a Windows Parody, there'll be different icons for different file types, folder types, etc.
    In other words,  I'd like to have a different icon for every item in my Tree component.
    How can I do this? 
    Here are the contents of my XML file:
    <node>
        <node label="Desktop">
    </node>
        <node label="Documents">
    <node label="Pictures" isBranch="true" />
    <node label="Movies" isBranch="true" />
    <node label="Games" isBranch="true" />
    <node label="Video" isBranch="true" />
    </node>
        <node label="Computer">
    <node label="Local Disk (C:)" isBranch="true" />
    <node label="Local Disk (D:)" isBranch="true" />
    <node label="DVD-RAM Drive (E:)" isBranch="true" />
    <node label="DVD/CD-RW Drive (F:)" isBranch="true" />
    </node>
    <node label="Readme.txt" isBranch="true" />
    </node>
    And the code on the first frame of my .fla file.  The Tree's name is "fileTree", and the XML file is "doors_explorerXML.xml".
    //Tree
    var fileDP:XML = new XML();
    fileDP.ignoreWhite = true;
    fileDP.load("doors_explorerXML.xml");
    fileDP.onLoad = function() {
        fileTree.dataProvider = this.firstChild;
    Also, I don't need to have an XML file loaded.  If there's an easy way that does it all within Flash, please tell me.  I just need to be able to handle events from the Tree. 

    Im having the same issue. I dont know how to change the tree icons separately with the xml. Is there anyone who knows how to do it?
    This is what I got so far. However, i can only get my first branch to show custom icons. I tried ALOT, but i guess I´m doing something completely wrong.
    Here is the code for my tree so far:
    my_xml = new XML();
    my_xml.ignoreWhite = true;
    my_xml.load("tree.xml");
    my_xml.onLoad = function(){
    myTree.dataProvider = this.firstChild;
    var folders = my_xml.firstChild.firstChild;
    var docs = folders.childNodes;
    for (var i=0; i < docs.length; i++){
    currDoc = docs[i];
    trace(docs[i]);
    var docIcon = currDoc.attributes.pic;
    switch(docIcon){
    case "pdf":
    myTree.setIcon(currDoc, "pdfIcon");
    break;
    case "word":
    myTree.setIcon(currDoc, "wordIcon");
    break;
    case "excel":
    myTree.setIcon(currDoc, "excelIcon");
    break;
    case "ie":
    myTree.setIcon(currDoc, "ieIcon");
    break;
    }//switch
    } //for
    };//onLoad
    And here is the XML I used:
    <node label="» Dokument typer">
    <node label="» links - document">
    <node label="test.url" url="http://www." pic="ie" info="test text" />
    <node label="test.doc" url="test.doc" pic="word" info="test text" />
    <node label="test.excel" url="test.xls" pic="excel" info="test text" />
    <node label="test.pdf" url="test.pdf" pic="pdf" info="test text." />
    </node>
    <node label="» Links - document">
    <node label="test URL" url="http://www." pic="ie" info="test text." />
    <node label="test URL" url="http://www." pic="ie" info="test text." />
    </node>
    </node>

  • Questions about AS2 Tree Component (Flash CS3)

    I have Flash application with a Tree component on the Stage. I'm using an XML file to create the structure of the Tree component.
    Each entry on my XML has the attributes id, label, heading, desc, and icon.
    My problem is that I can't seem to be able to set the Tree to default with the first node open.
    My code is:
    var xmlTreeData:XML = new XML();
    xmlTreeData.onLoad = function() {
    mTree.dataProvider = this.firstChild;
    xmlTreeData.ignoreWhite = true;
    xmlTreeData.load("xml/treeValues1.xml");
    mTree.setStyle("fontSize","11");
    mTree.setStyle("selectionColor","0xE0E0E0");
    mTree.setStyle("useRollOver",false);
    mTree.setIsOpen(mTree.getTreeNodeAt(0), true);
    My tree populates fine, and the handler I retrieve whatever item is clicked works great. However, the tree refuses to default to having that first node open.
    I'm also interested in placing custom icons into certain nodes via the icon attribute I've set in the XML, but that will have to come later I guess.

    I've never used the Tree component, so I'm just guessing here....
    There is a slight delay before the xml file loads and your tree has its data provider.
    Perhaps during that time there is no node at mTree.getTreeNodeAt(0) to open? Try adding this just before the last line of your code:
    trace("the node is: "+mTree.getTreeNodeAt(0));
    What do you get?
    You might need to move that code inside the xml's load event handler.
    Another thing is that the Flash components tend to work on an invalidate-then-wait-one-frame-to-redraw kind of model. So it is possible you will need to wait one frame after the xml has loaded and then tell it to open that node.
    The doLater method might help with that.
    var home:MovieClip=this;
    var xmlTreeData:XML = new XML();
    xmlTreeData.onLoad = function() {
    mTree.dataProvider = this.firstChild;
    mTree.doLater(home,"delay");
    xmlTreeData.ignoreWhite = true;
    xmlTreeData.load("xml/treeValues1.xml");
    mTree.setStyle("fontSize","11");
    mTree.setStyle("selectionColor","0xE0E0E0");
    mTree.setStyle("useRollOver",false);
    function delay(){ 

  • Tree component flash cs3 multiline/wordwrap

    Hi All,
    I have a tree component customized ..now i am stuck at the
    length of the text ..i need to have the text in the tree node to
    word warp for lengthy text..
    thank you for the help in advance..
    kakas

    nothing so far..really needed it very urgently!
    thx again
    kakas

  • Tree component customization

    Hi all,
    I'm new to flex and having a hard time figuring out the best way to approach the following problem (in Flex context, _not_ AIR):
    I need a tree representation of some hierarchical/composite data structures as depicted below (for those familiar with XMLSpy, the diagram is similar to the XSD tree structure diagrams):                                                                                     |-------------|
                                                                                         | Child       |
                                                                                         | child info  |
                                          |------------------|                           |-------------|
                                       |--| Child            |--------- Choice (x) ------|
                                       |  | Child Info      (x)                          |-------------|
                                       |  --------------------                           | Child       |
                                       |                                                 | child info  |
    ---------------                    |  |------------------|                           |-------------|
    | Parent      |------ Sequence (x)-|--| Child            |
    | Parent Info (x)                  |   | Child Info     (x)
    ---------------                    |   --------------------
                                       |
                                       |  |------------------|
                                       |--| Child            |
                                          | Child Info      (x)
    The (x) in the picture are the collapse/expand buttons.
    What would be the best way to approach this project ?
    - Is it a customization of the standard Tree component + custom Tree Item Renderer ?
    - The nodes should be expandable/collapsible + selectable (additional information to be displayed on selection of node without expand/collapse effect)
    - For the nodes would it make sense to derive them from the ToggleButton ? (and what would be the most sensefull way of introducing the second line on the button ? Or just building a proper graphical component for it (derived from Group)?
    - What is the most effective way to deal with the balancing of the tree in such a way that subtrees move out of the way/in place on expand resp. collapse of nodes ? (through (H/V)groups ?)
    - What would be the most efficient way to deal with the connectors between nodes ?
    - dataprovider would be an XML structure - what is the best place to put the building algo ? (Every node know how to create itself and the first level children ? Or a tree traverse on the XML structure, building all components in one go ?)
    Any advice/thoughts/references are welcome !
    Thanks in advance,
    Best regards,
    Bart

    Sorry for the "text picture" - if you copy/paste it in word (with courier new font
    ), the picture becomes clear ;-)

  • Tree component children displays [Object, Object] need help displaying the names :)

    hey guys... i've run into yet another problem...
    i have a tree component that gets its data from a httpservice.. xml file.
    i then pasrse thru the recieved xml to create a dataprovider for the tree component. the code for that is below...
    <mx:Tree id="tree" dataProvider="{treeData2}" showRoot="false" width="50%" height="100%" />
    [Bindable] public var treeData2:ArrayCollection = new ArrayCollection;
    [Bindable] public var treeData:Object;
    public var resultArr:Object;
    public function initNavTab():void{
        var navService:HTTPService = new HTTPService();
        navService.url = "http://www.apxalarm.com/pages/getnav";
        navService.method = "POST";
        navService.useProxy = false;
        navService.resultFormat = "e4x";
        //navService.resultFormat = "array";
        navService.addEventListener(ResultEvent.RESULT, returnNavData);
        navService.addEventListener(FaultEvent.FAULT, navDataFault);
        navService.send();
    public function returnNavData(event:ResultEvent):void{
        navData = event.result;
        //resultArr = event.result;
        Alert.show("load complete");
        tree_labelFunc(navData);
    public function navDataFault(event:FaultEvent):void{
        Alert.show(event.fault.faultDetail);
    public function tree_labelFunc(item:Object):void{
        var node:XML = XML(item);
        var nav:XMLList = new XMLList();
        nav = node.sections;
        var i:Number = 0;
        for each (var section:XML in nav.section){
            var obj:Object = new Object();
            obj.label = section.name;
            obj.urlName = section.urlName;
            obj.children = new ArrayCollection;
                for each(var nav1:XML in section.navs.nav){
                    obj.children.addItem([{label: nav1.name}]);
            treeData2.addItem(obj);
    the tree_labelFunc parces thru the xml and creates the appropriate structure i need to be displayed in the tree component... but unfortunately the children of the tree component only shows [Object, Object]
    can someone show me how to display the labels instead of the Object???
    thank you soo much in advace guys!!! i really appretiate it!!!
    oh and this is part of the xml that it is pulling
    <siteMap>
      <sections>
        <section>
          <name>About APX</name>
          <urlName>about</urlName>
          <position>1</position>
          <defaultaction>/about/mission</defaultaction>
          <navs>
            <nav>
              <name>Our Mission</name>
              <urlName>mission</urlName>
              <position>1</position>
              <defaultaction>13</defaultaction>
              <subNavs/>
            </nav>
            <nav>
              <name>Links</name>
              <urlName>links</urlName>
              <position>4</position>
              <subNavs>
                <nav>
                  <name>iamapx.com</name>
                  <urlName>iamapx</urlName>
                  <position>1</position>
                  <defaultaction>http://www.iamapx.com</defaultaction>
                  <subNavs/>
                </nav>
                <nav>
                  <name>apxgivesback.com</name>
                  <urlName>agb</urlName>
                  <position>2</position>
                  <defaultaction>http://www.apxgivesback.com</defaultaction>
                  <subNavs/>
                </nav>
              </subNavs>
            </nav>
            <nav>
              <name>Newsletter</name>
              <urlName>newsletter</urlName>
              <position>3</position>
              <defaultaction>37</defaultaction>
              <subNavs/>
            </nav>
          </navs>
        </section>
        <section>
        </section>
        <section>
        </section>
        <section>
        </section>
        <section>
        </section>
        <section>
        </section>
      </sections>
    </siteMap>
    i need the name tags in the xml to be displayed in the tree component....
    again thank you soo much in advace for your help!!

    thank you soo much for your quick responce alex!!
    the toXMLString is exactly like the xml
    <siteMap>
      <sections>
        <section>
          <name>About APX</name>
          <urlName>about</urlName>
          <position>1</position>
          <defaultaction>/about/mission</defaultaction>
          <navs>
            <nav>
              <name>Our Mission</name>
              <urlName>mission</urlName>
              <position>1</position>
              <defaultaction>13</defaultaction>
              <subNavs/>
            </nav>
            <nav>
              <name>Links</name>
              <urlName>links</urlName>
              <position>4</position>
              <subNavs>
                <nav>
                  <name>iamapx.com</name>
                  <urlName>iamapx</urlName>
                  <position>1</position>
                  <defaultaction>http://www.iamapx.com</defaultaction>
                  <subNavs/>
                </nav>
                <nav>
                  <name>apxgivesback.com</name>
                  <urlName>agb</urlName>
                  <position>2</position>
                  <defaultaction>http://www.apxgivesback.com</defaultaction>
                  <subNavs/>
                </nav>
              </subNavs>
            </nav>
            <nav>
              <name>Newsletter</name>
              <urlName>newsletter</urlName>
              <position>3</position>
              <defaultaction>37</defaultaction>
              <subNavs/>
            </nav>
          </navs>
        </section>
        <section>
          <name>APX Security Systems</name>
          <urlName>apxsystems</urlName>
          <position>2</position>
          <defaultaction>/apxsystems/systems/products</defaultaction>
          <navs>
            <nav>
              <name>Service Areas</name>
              <urlName>serviceareas</urlName>
              <position>1</position>
              <defaultaction>25</defaultaction>
              <subNavs/>
            </nav>
            <nav>
              <name>Systems</name>
              <urlName>systems</urlName>
              <position>2</position>
              <defaultaction>27</defaultaction>
              <subNavs>
                <nav>
                  <name>Get A System</name>
                  <urlName>get</urlName>
                  <position>2</position>
                  <defaultaction>27</defaultaction>
                  <subNavs/>
                </nav>
                <nav>
                  <name>Browse Products</name>
                  <urlName>products</urlName>
                  <position>1</position>
                  <defaultaction>28</defaultaction>
                  <subNavs/>
                </nav>
                <nav>
                  <name>Refer A Friend</name>
                  <urlName>refer</urlName>
                  <position>3</position>
                  <defaultaction>38</defaultaction>
                  <subNavs/>
                </nav>
              </subNavs>
            </nav>
          </navs>
        </section>
        <section>
          <name>Customer Support</name>
          <urlName>support</urlName>
          <position>3</position>
          <defaultaction>/support/specialist</defaultaction>
          <navs>
            <nav>
              <name>Technical Support</name>
              <urlName>tech</urlName>
              <position>2</position>
              <defaultaction>32</defaultaction>
              <subNavs>
                <nav>
                  <name>Troubleshooting</name>
                  <urlName>troubleshooting</urlName>
                  <position>2</position>
                  <defaultaction>32</defaultaction>
                  <subNavs/>
                </nav>
              </subNavs>
            </nav>
            <nav>
              <name>Speak To A Specialist</name>
              <urlName>specialist</urlName>
              <position>1</position>
              <defaultaction>30</defaultaction>
              <subNavs/>
            </nav>
            <nav>
              <name>Move Options</name>
              <urlName>moves</urlName>
              <position>3</position>
              <defaultaction>35</defaultaction>
              <subNavs/>
            </nav>
          </navs>
        </section>
        <section>
          <name>Home Safety</name>
          <urlName>safety</urlName>
          <position>4</position>
          <defaultaction>/safety/outside</defaultaction>
          <navs>
            <nav>
              <name>Indoor Tips</name>
              <urlName>inside</urlName>
              <position>1</position>
              <defaultaction>17</defaultaction>
              <subNavs/>
            </nav>
            <nav>
              <name>Outdoor Tips</name>
              <urlName>outside</urlName>
              <position>2</position>
              <defaultaction>18</defaultaction>
              <subNavs/>
            </nav>
          </navs>
        </section>
        <section>
          <name>Customer Stories</name>
          <urlName>stories</urlName>
          <position>5</position>
          <defaultaction>/stories/videos</defaultaction>
          <navs>
            <nav>
              <name>Videos</name>
              <urlName>videos</urlName>
              <position>3</position>
              <defaultaction>15</defaultaction>
              <subNavs/>
            </nav>
            <nav>
              <name>Read Stories</name>
              <urlName>read</urlName>
              <position>1</position>
              <defaultaction>19</defaultaction>
              <subNavs/>
            </nav>
            <nav>
              <name>Tell Your Story</name>
              <urlName>tell</urlName>
              <position>2</position>
              <defaultaction>20</defaultaction>
              <subNavs/>
            </nav>
          </navs>
        </section>
        <section>
          <name>Newsroom</name>
          <urlName>press</urlName>
          <position>6</position>
          <defaultaction>/press/compprofile</defaultaction>
          <navs>
            <nav>
              <name>Press Releases</name>
              <urlName>pr</urlName>
              <position>2</position>
              <defaultaction>21</defaultaction>
              <subNavs/>
            </nav>
            <nav>
              <name>Media Kit</name>
              <urlName>media</urlName>
              <position>3</position>
              <defaultaction>22</defaultaction>
              <subNavs/>
            </nav>
            <nav>
              <name>Company Profile</name>
              <urlName>compprofile</urlName>
              <position>1</position>
              <defaultaction>34</defaultaction>
              <subNavs/>
            </nav>
            <nav>
              <name>Contact Us</name>
              <urlName>contact</urlName>
              <position>4</position>
              <defaultaction>39</defaultaction>
              <subNavs/>
            </nav>
          </navs>
        </section>
      </sections>
    </siteMap>
    i need to subNavs to be available within the tree dropdown...

  • Custom tree node

    Hi
    I need to create a custom tree.
    Is it posible in flex tree, to have a node, that is a panel component, with a few other components, like textinput or buttons?
    Clicking on buttons causes adding or removing new nodes in appropriate place in the tree.
    What in fact I need to create, is advanced filter builder (originaly created in GWT), shown here: http://www.smartclient.com/smartgwt/showcase/#featured_filter_builder_grid
    The structure of that filter looks like 'very' custom tree
    Do you have any idea how to do that, or where can I find any hints or solutions?

    Here is my tree renderer:
    package
         import mx.controls.listClasses.IDropInListItemRenderer;
         import mx.controls.treeClasses.*;
         public class treeRendererFilter extends TreeItemRenderer
              private var customerFilterSet:Boolean = false;
              public function treeRendererFilter()
                   super();
              override public function set data(value:Object):void
                    super.data = value;
                      if (value.@name == "Customer Reporting" && !customerFilterSet)
                           var filter:customerReportingFilter = new customerReportingFilter();
                        addChild(filter);
                        filter.data = value;
                           filter.height = 25;
                           filter.width = 280; 
                           customerFilterSet = true;                                                     
                 override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
                  super.updateDisplayList(unscaledWidth, unscaledHeight);
                   if (data.@name == "Customer Reporting")
                        label.width -= getChildAt(1).width;
                        getChildAt(1).x = label.x + label.width;
                        getChildAt(1).visible = true;
                   else     
                        if (customerFilterSet)
                             getChildAt(1).visible = false;
    <?xml version="1.0" encoding="utf-8"?>
    <mx:FormItem xmlns:mx="http://www.adobe.com/2006/mxml" width="100%" height="100%"
         direction="horizontal" fontSize="10">
         <mx:Script>
              <![CDATA[
              override public function set data(value:Object):void
                   if(value != null)
                        exclude.data = value;
                        comments.data = value;
              override public function get data():Object
                   return data;
         ]]>
         </mx:Script>          
         <mx:HBox width="100%" color="blue">          
              <mx:CheckBox id="exclude" label="Excluding Skus"/>
              <mx:CheckBox id="comments" label="Customer Comments"/>
         </mx:HBox>     
    </mx:FormItem>
    HTH

Maybe you are looking for

  • I updated my iTunes Software and now I cant burn CD's anymore.

    I need help. I updated my iTunes Software and now I get this: "The Registry settings used by the iTunes drivers for importing and burning CDs and DVDs are missing. This can happen as a result of installing other CD burning software. Please reinstall

  • Report on material code, description and all unit of measure conversions

    report on  material code, description and all unit of measure conversions ? any ideas?

  • Nano not recognised by windows or itunes

    i recently got a new nano after my old one stopped working and my computer doesent recognise the new one at all. it is not show in explorer or iTunes it doesn't show any do not disconect signs it does show a recarging icon it is not listed in the dev

  • Compressor in background?

    When I run compressor all windows of both compressor and final cut stay open. This is not really my idea of background batch processing. Is there a way to remove all those useless windows off the screen so that I can continue on my other works?

  • Disabling LDAP sync

    Hi All I tried to disable LDAP sync and here are my issues 1 - I tried to put all the Boolean values in /db/ldapMetadata/EventHandlers.xml to "FALSE" but I ended that the user get "initiated status" although I am using autoapprover workflow. I expect