Examples of treeStructureChanged()


Examples of javax.swing.event.TreeModelListener.treeStructureChanged()

  private void fireTreeModelChanged()
  {
    for (int i = 0; i < listeners.size(); i++)
    {
      final TreeModelListener l = (TreeModelListener) listeners.get(i);
      l.treeStructureChanged(new TreeModelEvent(this, new TreePath(root)));
    }
  }

  /**
   * Returns the root of the tree.  Returns <code>null</code> only if the tree has no nodes.
View Full Code Here

Examples of javax.swing.event.TreeModelListener.treeStructureChanged()

    rejectedPaths.clear();
    acceptedPaths.clear();
    final Iterator it = this.listener.iterator();
    while (it.hasNext()) {
      TreeModelListener current = (TreeModelListener) it.next();
      current.treeStructureChanged(new TreeModelEvent(this, new TreePath(
          getRoot())));
    }
  }

  /**
 
View Full Code Here

Examples of javax.swing.event.TreeModelListener.treeStructureChanged()

    /** {@inheritDoc} */
    public void listChanged(ListEvent<E> listChanges) {
        // todo: fire a more general event
        for(Iterator<TreeModelListener> i = listenerList.iterator(); i.hasNext(); ) {
            TreeModelListener listener = i.next();
            listener.treeStructureChanged(new TreeModelEvent(this, new Object[] { treeRoot }));
        }
    }

    /**
     * Releases the resources consumed by this {@link EventTreeModel} so that it
View Full Code Here

Examples of javax.swing.event.TreeModelListener.treeStructureChanged()

    TreeModelEvent e = new TreeModelEvent(this,path);
    Iterator it = listeners.iterator();
    while(it.hasNext())
    {
      l = (TreeModelListener)it.next();
      l.treeStructureChanged(e);
    }
  }

  private void notifyUpdate(SortedTreeNode node)
  {
View Full Code Here

Examples of javax.swing.event.TreeModelListener.treeStructureChanged()

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

Examples of javax.swing.event.TreeModelListener.treeStructureChanged()

    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);
    }
  }

  public void addTreeModelListener(final TreeModelListener l)
  {
View Full Code Here

Examples of javax.swing.event.TreeModelListener.treeStructureChanged()

    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

Examples of javax.swing.event.TreeModelListener.treeStructureChanged()

    final TreeModelEvent treeEvent = new TreeModelEvent(this, new TreePath(getRoot()));
//    for (int i = treeModelListeners.length - 1; i >= 0; i -= 1)
    for (int i = 0; i < treeModelListeners.length; i++)
    {
      final TreeModelListener listener = treeModelListeners[i];
      listener.treeStructureChanged(treeEvent);
    }

    refreshExpressionsCache();
  }
View Full Code Here

Examples of javax.swing.event.TreeModelListener.treeStructureChanged()

    final TreeModelListener[] treeModelListeners = getListeners();
    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);
    }

    refreshExpressionsCache();
  }
View Full Code Here

Examples of javax.swing.event.TreeModelListener.treeStructureChanged()

      final TreeModelEvent treeEvent = new TreeModelEvent(this, queryPath);
      for (int i = treeModelListeners.length - 1; i >= 0; i -= 1)
      {
        final TreeModelListener listener = treeModelListeners[i];
        listener.treeStructureChanged(treeEvent);
      }
    }
  }

  protected void findAllQueryNodes(final Object query, final ArrayList<ReportQueryNode> nodes,
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.