Package javax.swing.event

Examples of javax.swing.event.TreeModelListener


    }
  }

  private void notifyRemove(Object[] path, int[] indices, Object[] children)
  {
    TreeModelListener l;
    TreeModelEvent e = new TreeModelEvent(this,path,indices,children);
    Iterator it = listeners.iterator();
    while(it.hasNext())
    {
      l = (TreeModelListener)it.next();
      l.treeNodesRemoved(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

    final TreeModelEvent treeEvent = new TreeModelEvent(this, pathForNode,
        new int[]{index}, new Object[]{parameter});
    for (int i = treeModelListeners.length - 1; i >= 0; i -= 1)
    {
      final TreeModelListener listener = treeModelListeners[i];
      listener.treeNodesInserted(treeEvent);
    }
    refreshParameterCache();
  }
View Full Code Here

    final TreeModelEvent treeEvent = new TreeModelEvent(this, pathForNode,
        new int[]{index}, new Object[]{parameter});
    for (int i = treeModelListeners.length - 1; i >= 0; i -= 1)
    {
      final TreeModelListener listener = treeModelListeners[i];
      listener.treeNodesRemoved(treeEvent);
    }

    refreshParameterCache();
  }
View Full Code Here

  {
    final TreeModelListener[] treeModelListeners = eventListenerList.getListeners(TreeModelListener.class);
    final TreeModelEvent treeEvent = new TreeModelEvent(this, TreeSelectionHelper.getPathForNode(this, source));
    for (int i = treeModelListeners.length - 1; i >= 0; i -= 1)
    {
      final TreeModelListener listener = treeModelListeners[i];
      listener.treeStructureChanged(treeEvent);
    }
  }
View Full Code Here

    final TreePath path = TreeSelectionHelper.getPathForNode(this, element);
    final TreeModelListener[] treeModelListeners = eventListenerList.getListeners(TreeModelListener.class);
    final TreeModelEvent treeEvent = new TreeModelEvent(this, path);
    for (int i = treeModelListeners.length - 1; i >= 0; i -= 1)
    {
      final TreeModelListener listener = treeModelListeners[i];
      listener.treeNodesChanged(treeEvent);
    }
  }
View Full Code Here

    final TreeModelListener[] treeModelListeners = eventListenerList.getListeners(TreeModelListener.class);
    final TreeModelEvent treeEvent = new TreeModelEvent(this, path);
    for (int i = treeModelListeners.length - 1; i >= 0; i -= 1)
    {
      final TreeModelListener listener = treeModelListeners[i];
      listener.treeStructureChanged(treeEvent);
    }
  }
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.