How remove childrens in SimpleTreeData?

subj

Hello Gorbunov,
I assume you've looked at the docs; SimpleTreeData is just that. A DataObject-subclass with a simple implementation for building tree structures. However, managing those tree structures is a separate issue. The various proxies provide means for displaying parts of the tree, if that would suffice for you.
I build a tree for use in an hGrid which contains approximately 150,000 elements. I find that the necessity of building a SimpleTreeData to be time-consuming and heavy on memory usage. Granted, once in memory, the hGrid functions fabulously.
Sorry I can't help, but I, too, am interested in the further developments of SimpleTreeData and/or related tree DataObjects. Are these DataObjects going to be updated to reflect the new Network Data Model components in Oracle 10g? Binding the data to a SQL "start with ... connect by" query would be great.
On the proxy side, the ability to display multiple paths through the tree would also be wonderful benefit.
Thanks for any input, UIX team.
joe

Similar Messages

  • Adding and removing children with buttons

    So I've been following this tutorial (http://www.danfergusdesign.com/classfiles/oldClasses/VCB331-richMedia1/exercises/addingChi ldren.php) on how to add and remove children with buttons in order to create a popup box on the stage.
    The part I'm having trouble with is how I add the close button to the stage on top of the popup box.
    This is basically what I'm trying to do:
    Here's my code right now:
    var OrderPrepOnlineMenuInstance:OrderPrepOnlineMenu = new OrderPrepOnlineMenu();
    var mcOnStage:Boolean=false;
    loadOrderPrepOnlineBtn.addEventListener(MouseEvent.CLICK, loadMC);
    OrderPrepOnlineClose.addEventListener(MouseEvent.CLICK, removeMC);
    function loadMC(MouseEvent):void {
    addChild(OrderPrepOnlineMenuInstance);
    OrderPrepOnlineMenuInstance.x = 465;
    OrderPrepOnlineMenuInstance.y =230;
    mcOnStage=true;
    function removeMC(MouseEvent):void {
    if (mcOnStage ) {
    removeChild(OrderPrepOnlineMenuInstance);
    mcOnStage=false;

    Why not just make the close button part of the object you are adding.  You can assign it an event listener thru that object after it is created.

  • Remove children of a branchGroup

    Hi,
    I have created a 3D scenary with Java3D. My problem is:
    For example, I create a 3D scenary which has 4 cube and I want two cubes dessapear if I click a button.
    To obtain it I have thought that when I click the button, execute removeAllChilldren function to remove the branchGroup with the 4 cubes. After add a new BranchGroup with only 2 cubes.
    But I have had capabilities problems (no capability to remove children) when I use removeAllChilldren function, maybe because if a BranchGroup has been compiled, it isn't posible to use that function.
    Anybody knows how I can obtain it? An easier way?
    Thanks in advance.

    You have to set the capability bits before the branchgroup is compiled (usually during instanciation?), then you should be able to remove and add elements to your heart's content.

  • How remove Special stock indicator for dialog in PO componet overview

    Hi
    I am creating production order with reference to the sales order (MTO) after creating the production order in component overview special stock indicator is default value is u20181u2019, plz any one suggest How remove Special stock indicator for dialog display in production order component over view, I have already maintained in MRP 4 Dependent requirements ind. for individual and coll. Reqmts as u20182u2019
    Thanks
    Mohan M

    Did you maintain the indiv/ coll indicator as 2 after the creation of planned order / production order? If yes, then re-create the order & then check.
    If not, then check in BOM Item details if you have maintained them to be as individual.
    Check & revert.

  • Any idea why in Numbers my COUNTIFS formula keeps breaking? For daycare purpose, I use a spreadsheet that helps me to count how many children I have at 3:15, 4:15 and 5:00. COUNTIFS works well when I create it but breaks after a while. Also I am using a p

    Any idea why in Numbers my COUNTIFS formula keeps breaking? For daycare purpose, I use a spreadsheet that helps me to count how many children I have at 3:15, 4:15 and 5:00. COUNTIFS works well when I create it but breaks after a while. Also I am using a pop-up menu in the cells in time format, does it have any consequence on the formula?

    Any idea why in Numbers my COUNTIFS formula keeps breaking? For daycare purpose, I use a spreadsheet that helps me to count how many children I have at 3:15, 4:15 and 5:00. COUNTIFS works well when I create it but breaks after a while. Also I am using a pop-up menu in the cells in time format, does it have any consequence on the formula?

  • How remove embedded font from PDF

    When I print to PDF on Mac OS 10.6.8 by default embed fonts to PDF-file. It add unnecessary bites to PDF-file (the file is huge size).
    How to remove this option of fonts embedding? Or how remove embedded font from PDF file?

    After opening dozens and dozens of linked files,I finally found the offending "empty line of text" in one of the AI files I placed in the INDD file. Open > Select All.... then check the font panel. With mixed fonts, it was empty, but if everything was the correct font, it was filled in. It was just one AI file.
    I want to thank you all for your great ideas and for sharing your experience. Onward, now.

  • How remove data from OS X10.8.3 and Safari 6.0.4 beyond Delete or Ctrl Del?

    How remove data from OS X10.8.3 and Safari 6.0.4 beyond Delete or Ctrl Del?
    When I had a Windows OS based machine I had to dig deep into the Directory to find everything I wanted to remove as the delete function did not do so.  I don't know if this "digging deeper" action is even necessary in Mac and if it is where I would go in Mac to do so.  Is it?  If so, how?

    I appreciate your clarification inquiry request.  My goal was as initially stated, to "find everything I wanted to remove as the delete function did not do so.......if.....digging deeper.....is.....necessary.....and if it is where....go in Mac to do so....(and)...how?"
    I have now resolved my data removal inquiry, accomplishing it through use of William Lloyd's post of instructions.
    Thank you.

  • How remove associated android phone from adobe id digital ?

    How remove association to android id digital from android phone? I change many android phone and now I can' t use  e-book reeader on my new android phone because I have reached the max number of device  associated with Adobe Id.
    Can you help me?
    Thank you

    If you contact Adobe they will remove authorizations from all your devices and you can then reauthorize the ones you still want to use.
    Live Chat is easiest http://www.adobe.com/support/chat/ivrchat.html
    Of course it would be easier still if Adobe supported their DRM infrastructure properly and provided a web page to view and manage authorizations.

  • HT201441 i find a iPad mini i dot-no who.s owner but this iPad mini is lock how remove lock

    i find a iPad mini i dot-no who.s owner but this iPad mini is lock how remove lock   

    You can't, and Apple won't unlock that device for you; the activation lock is an anti-theft measure. Take it to the police, or if you found it in a facility, the people running the facility.
    (126850)

  • How remove lock

    how remove lock

    If you can actually get into the iPhone you can remove the lock under Settings>Lock Screen ...I think you will need to know the Code to Remove the Lock.

  • I have some virus in my iphone please any body help mi how remove this

    I have some virus in my iphone4s.any body help mi  how remove this. Thx

    Reset and restore, will fix it.
    No it won't as there are no known viruses for non-jailbroken iPhones.  Plus, you don't even know what problem the OP is having so how can your advice "fix it"?
    We're glad you want to help but you realy need to learn more about the iPhone before you post anymore answers.  You're consistently giving people bad advice.

  • How remove (or change) children inside a JTree

    hi,
    I did a program where there are informations with a structure of dependence that should be showed inside JTree components.
    I realized this purpose in my program .
    But I am findind very difficult (after having put the information inside the JTre in the start) to show them again inside the JTrees when they are changed.
    I don't know how to remove or change the informations after they are put on the children of the JTree using the methods that I found in the documentation to reach this purpose...
    I need some help ...
    To explain well my problem, and facilitate the helpers, I post some code that show my problem..
    The program show a GUI with some JTrees.
    The informations are contained in two strings, and in the GUI are also two buttons that can load the informations inside the JTree when they are clicked.
    Thank you in advance
    regards
    tonyMrsangelo
    public class JTree_TryToUseIt_ChangingNodes extends javax.swing.JFrame {
        private PanelFulViewConteiner jPanelFulViewConteiner;
        Dimension dimPrefArcPanels = new Dimension(910, 150);
        Dimension dimMinArcPanels = new Dimension(700, 100);
        Dimension dimPrefSemiArcPanels = new Dimension(850, 140);
        Dimension dimMinSemiArcPanels = new Dimension(550, 90);
        Dimension dimPrefBodyXpicPanels = new Dimension(900, 150);
        Dimension dimMinBodyXpicPanels = new Dimension(700, 150);
        Dimension treePrefDim = new Dimension(90, 110); //
        Dimension treeMinDim = new Dimension(60, 110);
        PanelToShowTrees panel_trees;
        public JTree_TryToUseIt_ChangingNodes() {
            getContentPane().setLayout(new GridBagLayout());
            GridBagConstraints gBC = new GridBagConstraints();
            jPanelFulViewConteiner = new PanelFulViewConteiner();
            gBC.gridx = 0;
            gBC.gridy = 0;
            gBC.gridwidth = 10;
            add(jPanelFulViewConteiner, new GridBagConstraints());
            gBC.gridx = 0;
            gBC.gridy = 1;
            gBC.gridwidth = 10;
            pack();
            panel_trees = this.jPanelFulViewConteiner.jPanelFulContainerTop.panelToShowTrees;
            setDefaultCloseOperation(EXIT_ON_CLOSE);
            setLocation(50, 50);
            setVisible(true);
        private void fillTrees(String[] strings) {
            collapseTrees();
            removeNodes();
            for (int index = 0; index < strings.length; index++) {
                DefaultMutableTreeNode dmt = new DefaultMutableTreeNode(strings[index]);
                String knotStr = strings[index].substring(0, 1);
                int knot = -1;
                try {
                    knot = Integer.parseInt(knotStr);
                } catch (NumberFormatException e) {
                panel_trees.root_Node[knot].add(dmt);
                panel_trees.validate();
                panel_trees.repaint();
            collapseTrees();
        void collapseTrees() {
            for (int i = 0; i < 8; i++) {
                panel_trees.jTree.collapseRow(0);
    panel_trees.jTree[i].expandRow(0);
    panel_trees.validate();
    panel_trees.repaint();
    void removeNodes() {
    for (int i = 0; i < 8; i++) {
    panel_trees.jTree[i].removeAll();
    panel_trees.validate();
    panel_trees.repaint();
    public static void main(String args[]) {
    JTree_TryToUseIt_ChangingNodes xx = new JTree_TryToUseIt_ChangingNodes();
    class PanelFulViewConteiner extends JPanel {
    PanelFulContainerTop jPanelFulContainerTop;
    PanelFulContainerBottom jPanelFulContainerBottom;
    public PanelFulViewConteiner() {
    GridBagLayout gbl = new GridBagLayout();
    this.setLayout(gbl);
    GridBagConstraints gBC = new GridBagConstraints();
    jPanelFulContainerTop = new PanelFulContainerTop();
    gBC.gridx = 0;
    gBC.gridy = 0;
    add(jPanelFulContainerTop, gBC);
    jPanelFulContainerBottom = new PanelFulContainerBottom();
    gBC.gridx = 0;
    gBC.gridy = 2;
    add(jPanelFulContainerBottom, gBC);
    class PanelFulContainerTop extends JPanel {
    PanelToShowTrees panelToShowTrees;
    public PanelFulContainerTop() { // costruttore
    this.setMinimumSize(dimMinArcPanels);
    this.setPreferredSize(dimPrefArcPanels);
    setLayout(new FlowLayout());
    panelToShowTrees = new PanelToShowTrees();
    add(panelToShowTrees);
    }// costruttore
    class PanelFulContainerBottom extends JPanel {
    JButton but1 = new JButton("load string1");
    JButton but2 = new JButton("load string2");
    String[] str1 = {"0-AAA", "0-BBBBBB", "2-CCCCC", "2-DDDDDD", "2-EEEEEEE", "5-FFFFFF", "5-GGGGGG", "5-HHHHHH", "7-IIIIII", "7-KKKKKKK", "7-LLLLLL", "7-MMMMMM"};
    String[] str2 = {"0-aaaaa", "0-bbbbb", "0-cccc", "2-ddddd", "2-eeee", "3-ffffff", "3-gggggg", "3-hhhhh", "4-iiiiii", "4-kkkkk", "7-lllllll", "7-mmmmm", "7-nnnnn"};
    public PanelFulContainerBottom() {// costruttore
    this.setMinimumSize(dimMinArcPanels);
    this.setPreferredSize(dimPrefArcPanels);
    add(but1);
    but1.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent e) {
    fillTrees(str1);
    add(but2);
    but2.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent e) {
    fillTrees(str2);
    class PanelToShowTrees extends JPanel {
    JScrollPane jScrollPane[];
    JTree jTree[];
    DefaultMutableTreeNode[] root_Node;
    public PanelToShowTrees() {
    this.setMinimumSize(dimMinSemiArcPanels);
    this.setPreferredSize(dimPrefSemiArcPanels);
    setLayout(new FlowLayout());
    jScrollPane = new JScrollPane[8];
    jTree = new JTree[8];
    root_Node = new DefaultMutableTreeNode[8];
    for (int i = 0; i < 8; i++) {
    root_Node[i] = new DefaultMutableTreeNode(" " + (8 - i));
    jTree[i] = new JTree(root_Node[i]);
    jScrollPane[i] = new JScrollPane();
    jScrollPane[i].setViewportView(jTree[i]);
    add(jScrollPane[i]);
    jScrollPane[i].setPreferredSize(treePrefDim);
    jScrollPane[i].setMinimumSize(treeMinDim);
    jTree[i].addTreeSelectionListener(new TreeSelectionListener() {
    public void valueChanged(TreeSelectionEvent e) {
    showContentOfTheTree(e);
    private void showContentOfTheTree(TreeSelectionEvent e) {
    String stringaGotFromEvent = e.getPath().toString();
    JOptionPane.showMessageDialog(rootPane, "found =---> " + stringaGotFromEvent);

    hi Andre,
    thank you for answering me.
    I have not much practice with JTrees so I find some difficulty to use it...
    After I got your advice, I made changed a little the design of my program..
    This it is a program for management of a dentist office, and I would show in 8 JTrees (every jTree root represents the teeth in a dental arch) the treatments that each tooth got.
    How I said, the 8 JTree roots are representing the teeth, and in this architecture the problem is:
    - to add a node to a tree root to indicate a treatment for that tooth;
    - to delete all the children from a jTree root before beginning to add new child, before writing again treatments, when the informations are changed.
    Following your help, I made this two functions to reach this purpose:
    private void assingTreatmentToTooth(int toothNmbr, String strTreatment) {
            DefaultMutableTreeNode newChild = new DefaultMutableTreeNode(strTreatment); // new treatment to add
            DefaultTreeModel model = (DefaultTreeModel) panel_trees.jTreeXdentalRoots[toothNmbr].getModel(); // get model for the root Tree
            DefaultMutableTreeNode parentNode = (DefaultMutableTreeNode) model.getRoot();
            model.insertNodeInto(newChild, parentNode, 0); // always assign 0 as first node
        } // assingTreatmentToTooth()
    private void removeTreatmentFromAtooth(int toothNmbr, int childNmbr) {
            DefaultTreeModel model = (DefaultTreeModel) panel_trees.jTreeXdentalRoots[toothNmbr].getModel();  // get model for the root Tree
            DefaultMutableTreeNode child = (DefaultMutableTreeNode) model.getChild(model, childNmbr);
            model.removeNodeFromParent(child);
        } // removeTreatmentToTooth()when the second function is executed, I get this error:
    Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException: javax.swing.tree.DefaultTreeModel cannot be cast to javax.swing.tree.TreeNode
    at the line : DefaultMutableTreeNode child = (DefaultMutableTreeNode) model.getChild(model, childNmbr);
    DefaultMutableTreeNode child = (DefaultMutableTreeNode) model.getChild(model, childNmbr);
    could you tell me what is wrong ?
    regards
    TonyMrsangelo

  • Removing children

    i have a movie clip container that i am dynamically adding
    buttons to. i need to know how to remove all of the children from
    my container movie clip. i need to remove all of them before i
    re-populate the container with the new buttons.
    i need a line of code that will remove all the children from
    a specific movie clip. (ps- the amount of children varies)
    any help would be greatly appreciated.

    Just pass the MovieClip reference to the function. i.e.
    killChildren(holder);
    The function needs to be somewhere in scope. But you don't
    need to use a
    function -- you can simply use this if it suits you:
    while(holder.numChildren > 0){holder.removeChildAt(0);}

  • CS3/4, JS Amateur question: how remove all empty text frames?

    I'm an amateur, and thought it would be a straightforward matter to write a script that simply deletes all empty text frames in all of a document's stories. Here's my second attempt:
    var myDocument = app.activeDocument;
    var myStories = myDocument.stories;
    for (i = 0; i < myStories.length; i++){
      var myStory = myStories[i];
      var myTextFrames = myStory.textContainers;
        for (j = myTextFrames.length - 1; j >=0; j--) {
        if (myTextFrames[j].contents == "") myTextFrames[j].remove();
    The trouble is, sometimes it works as intended, but sometimes, with multiple stories, it needs to be run more than once. Can anyone explain why that is?
    Thanks -- Jeremy

    [Jongware] wrote:
    (Bit of a Johnny-come-lately, but anyway )
    AHA! -- This is a great help. It was driving me up the wall, and I don't know why it didn't work for me last night. Maybe it's because I was counting through stories in the wrong direction. Anyhow, I see how it works now, and I'm very grateful for the help.
    By the way Harbs, I used all three of your suggestions because I had spent far too much time tapping away at that nut with my little toy hammer. I vented my frustration by using all three of your sledgehammers. In particular, I made sure it left a single empty text frame where it was, as such a frame might be used as a graphic. (Although in the past, I've found an empty story can be a sneaky place for a rogue font to hide. The insertion point just in front of the "end of story" character can have a paragraph style applied, with its associated font, but "Find" won't find any characters with that paragraph style or font applied!)
    Thanks to all again -- Jeremy

  • How remove box showing up around sound object

    hi all - can anyone please tell me how to remove the white box that "houses" my sound object:
    http://www.gratefulcreative.com/portfolio.html
    Thanks one million!
    ken d
    creative director
    grateful creative
    www.gratefulcreative.com

    Hi Larry,
    I didn't think that was a default setting for a spreadsheet built within a table, but apparently it is.
    I'm guessing your experience is similar to mine when I first tried out Numbers after years with Excel. I just didn't get it. It was only after I realized the advantages of working with discrete tables (as opposed to Excel's one big sheet) that things got easier, much easier.
    it looks like with so many people complaining they're starting to add features back in. 
    None of us are privy to what is going on within Apple, of course, but just a general knowledge of the complexities of software engineering and the typical lead times suggests that the major features added back in had to have been planned quite some time ago. It seems more are likely in the works.
    Unfortunately, if you have to work with folks who use Office (on Windows) it's still not a great option.
    This depends on what your work involves. I've had few problems in a Window-centric office. In general, if you have to do a lot of printing of precisely formatted documents, Numbers 3 in its current form is not a great choice.
    But if you're interested in collaborating, the iCloud sharing has gotten pretty decent (in some ways better than the MS offering). Anyone on any OS with a modern browser can take advantage of that.
    And if you want to do data entry in the field on a popular mobile device and have it sync automatically back to a computer, Numbers currently has a big leg up on the competition.
    SG

Maybe you are looking for

  • REP-0503: You did not specify a name of the report

    would you tell me where I could find the detail help for report error message. thks!

  • Workflow Translation getting OVERWRITTEN when transported

    Hello gurus, Here is what I am struggling with...hope someone has a solution to this. We do workflow development in system DEV1 (template environment - only EN and DE languages are installed here), Transport it to  system DEV2 (local environment) and

  • Need help getting 'move tool' to work in CS5

    I cannot move an item just pasted into an image and on its own layer, by using the move tool. The move tool has become a hand and moves everything including the unselected layer below as well as the item on the layer above that I wanted to move indep

  • Security violation from using underscores template

    When using the template-function of the well-known underscore.js library I get an error: Adobe AIR runtime security violation for JavaScript code in the application security sandbox (Function constructor). In the browser this works fine. I don't see

  • CalDav colors setting problems

    The only reasonable way to distinguish calendars amongst users in iCal is color coding with a different color for each user. Trying to coordinate colors for each individual calendar across a large number of users is ridiculous. I really needs to figu