Package javax.swing.event

Examples of javax.swing.event.TreeModelListener


        // Install a TreeModelListener that can update the table when
        // tree changes. We use delayedFireTableDataChanged as we can
        // not be guaranteed the tree will have finished processing
        // the event before us.
        treeTableModel.addTreeModelListener(new TreeModelListener() {
            public void treeNodesChanged(TreeModelEvent e) {
                delayedFireTableDataChanged();
            }

            public void treeNodesInserted(TreeModelEvent e) {
View Full Code Here


    {
        TreeModelEvent e = new TreeModelEvent(source, path, childIndices, children);
        Iterator iterator = listeners.iterator();
        while (iterator.hasNext())
        {
            TreeModelListener listener = (TreeModelListener)iterator.next();
            listener.treeNodesChanged(e);
        }
    }
View Full Code Here

    {
        TreeModelEvent e = new TreeModelEvent(source, path, childIndices, children);;
        Iterator iterator = listeners.iterator();
        while (iterator.hasNext())
        {
            TreeModelListener listener = (TreeModelListener)iterator.next();
            listener.treeNodesInserted(e);
        }
    }
View Full Code Here

    {
        TreeModelEvent e = new TreeModelEvent(source, path, childIndices, children);;
        Iterator iterator = listeners.iterator();
        while (iterator.hasNext())
        {
            TreeModelListener listener = (TreeModelListener)iterator.next();
            listener.treeNodesRemoved(e);
        }
    }
View Full Code Here

    {
        TreeModelEvent e = new TreeModelEvent(source, path, childIndices, children);;
        Iterator iterator = listeners.iterator();
        while (iterator.hasNext())
        {
            TreeModelListener listener = (TreeModelListener)iterator.next();
            listener.treeStructureChanged(e);
        }
    }
View Full Code Here

  public void fireTreeNodesChanged( TreeModelEvent e )
  {
    Enumeration listeners = m_listenerList.elements();
    while ( listeners.hasMoreElements() )
    {
      TreeModelListener listener =
      (TreeModelListener) listeners.nextElement();
      listener.treeNodesChanged( e );
    }
  }
View Full Code Here

  public void fireTreeNodesInserted( TreeModelEvent e )
  {
    Enumeration listeners = m_listenerList.elements();
    while ( listeners.hasMoreElements() )
    {
      TreeModelListener listener =
      (TreeModelListener) listeners.nextElement();
      listener.treeNodesInserted( e );
    }
  }  
View Full Code Here

  public void fireTreeNodesRemoved( TreeModelEvent e )
  {
    Enumeration listeners = m_listenerList.elements();
    while ( listeners.hasMoreElements() )
    {
      TreeModelListener listener =
      (TreeModelListener) listeners.nextElement();
      listener.treeNodesRemoved( e );
    }
  }  
View Full Code Here

  public void fireTreeStructureChanged( TreeModelEvent e )
  {
    Enumeration listeners = m_listenerList.elements();
    while ( listeners.hasMoreElements() )
    {
      TreeModelListener listener =
      (TreeModelListener) listeners.nextElement();
      listener.treeStructureChanged( e );
    }
  }
View Full Code Here

    /*
     * Test method for 'javax.swing.tree.DefaultTreeModel.getListeners(EventListener)'
     */
    public void testGetListeners() {
        TreeModelListener listener1 = new ConcreteTreeModelListener();
        TreeModelListener listener2 = new ConcreteTreeModelListener();
        EventListener[] listenersArray = null;
        listenersArray = model.getListeners(TreeModelListener.class);
        assertEquals(0, listenersArray.length);
        model.addTreeModelListener(listener1);
        model.addTreeModelListener(listener2);
View Full Code Here

TOP

Related Classes of javax.swing.event.TreeModelListener

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.