Package javax.swing.event

Examples of javax.swing.event.TreeExpansionListener


    statPanel.add(sepUhrPanel, BorderLayout.LINE_END);

    mainFrame.add(statPanel, BorderLayout.SOUTH);
   
    //Listener
    treeTable.addTreeExpansionListener(new TreeExpansionListener() {

      @Override
      public void treeExpanded(TreeExpansionEvent event) {
        if(event.getPath().getLastPathComponent() != null && event.getPath().getLastPathComponent().getClass().getSimpleName().equals("MainTreeNode")){
          MainTreeNode mainNode = (MainTreeNode) event.getPath().getLastPathComponent();
View Full Code Here


            public void treeStructureChanged(TreeModelEvent e) {
                delayedFireTableDataChanged();
            }
        });
       
  tree.addTreeExpansionListener(new TreeExpansionListener() {
      // Don't use fireTableRowsInserted() here;
      // the selection model would get  updated twice.
      public void treeExpanded(TreeExpansionEvent event) { 
        fireTableDataChanged();
      }
View Full Code Here

      RootType qrmr = new RootType(objects, con.getMappedClassInfos(), persistenCollectionClass);

      DefaultMutableTreeNode rootNode = new DefaultMutableTreeNode(qrmr);
      _tab.treeTypes.setModel(new DefaultTreeModel(rootNode));

      _tab.treeTypes.addTreeExpansionListener(new TreeExpansionListener()
      {
         @Override
         public void treeExpanded(TreeExpansionEvent event)
         {
            onTreeExpanded(event);
View Full Code Here

      _resultTree.setRootVisible(false);

      initRoot((SingleType) rootType1.getResultType(), root);


      _resultTree.addTreeExpansionListener(new TreeExpansionListener()
      {
         @Override
         public void treeExpanded(TreeExpansionEvent event)
         {
            onTreeExpanded(event);
View Full Code Here

      _resultTree.setRootVisible(false);

      initRoot(tupelType, root);


      _resultTree.addTreeExpansionListener(new TreeExpansionListener()
      {
         @Override
         public void treeExpanded(TreeExpansionEvent event)
         {
            onTreeExpanded(event);
View Full Code Here

                }
            }
        }
        );

        _serverProperties.addTreeExpansionListener(new TreeExpansionListener() {

            public void treeCollapsed(TreeExpansionEvent e) {
                // todo Anything.....
            }
View Full Code Here

            public void treeExpanded(TreeExpansionEvent e) {
            }
        }
        ;
        TreeExpansionListener TreeExpansionListener1 = new ConcreteTreeExpansionListener();
        TreeExpansionListener TreeExpansionListener2 = new ConcreteTreeExpansionListener();
        TreeExpansionListener TreeExpansionListener3 = new ConcreteTreeExpansionListener();
        EventListener[] listenersArray = null;
        listenersArray = tree.getTreeExpansionListeners();
        int initialValue = listenersArray.length;
        tree.addTreeExpansionListener(TreeExpansionListener1);
        tree.addTreeExpansionListener(TreeExpansionListener2);
View Full Code Here

    }

    public void testFireTreeExpandedCollapsedWillExpandCollapse() throws Exception {
        final Marker expandMarker = new Marker();
        final Marker collapseMarker = new Marker();
        tree.addTreeExpansionListener(new TreeExpansionListener() {
            public void treeExpanded(final TreeExpansionEvent event) {
                expandMarker.setOccurred();
                expandMarker.setAuxiliary(event);
            }
View Full Code Here

                }
            }
        });
       
        // When a node is collapsed or expanded, ensure the corresponding DisplayNode is kept in Sync
        this.addTreeExpansionListener(new TreeExpansionListener() {
            public void treeExpanded(TreeExpansionEvent event) {
                Object node = event.getPath().getLastPathComponent();
                TreeViewWidget.this.setSelectionPath(event.getPath());
                if (node instanceof DisplayNode) {
                    ((DisplayNode)node).setOpened_PRIVATE(true);
View Full Code Here

                }
            }
        });
       
        // When a node is collapsed or expanded, ensure the corresponding DisplayNode is kept in Sync
        this.addTreeExpansionListener(new TreeExpansionListener() {
            public void treeExpanded(TreeExpansionEvent event) {
                Object node = event.getPath().getLastPathComponent();
                TreeViewWidget.this.setSelectionPath(event.getPath());
                if (node instanceof DisplayNode) {
                    ((DisplayNode)node).setOpened_PRIVATE(true);
View Full Code Here

TOP

Related Classes of javax.swing.event.TreeExpansionListener

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.