Package com.projity.grouping.core.event

Examples of com.projity.grouping.core.event.HierarchyEvent


      return hierarchyListenerList.getListeners(listenerType);
    }
   
   protected void fireStructureChanged(Object source) {
    Object[] listeners = hierarchyListenerList.getListenerList();
    HierarchyEvent e = null;
//    for (int i = listeners.length - 2; i >= 0; i -= 2) {
    for (int i = 0; i < listeners.length; i += 2) {
      if (listeners[i] == HierarchyListener.class) {
        if (e == null) {
          e = new HierarchyEvent(source,
              HierarchyEvent.STRUCTURE_CHANGED, null);
        }
        ((HierarchyListener) listeners[i + 1]).structureChanged(e);
   
      }
View Full Code Here


      }
    }
  }
  protected void fireNodesChanged(Object source, Object[] nodes,Object[] oldNodes,Object flag) {
    Object[] listeners = hierarchyListenerList.getListenerList();
    HierarchyEvent e = null;
    for (int i = 0; i < listeners.length; i += 2) {
      if (listeners[i] == HierarchyListener.class) {
        if (e == null) {
          e = new HierarchyEvent(source,
              HierarchyEvent.NODES_CHANGED, nodes,oldNodes,flag);
        }
        ((HierarchyListener) listeners[i + 1]).nodesChanged(e);
   
      }
View Full Code Here

      }
    }
  }
  protected void fireNodesInserted(Object source, Object[] nodes,Object[] oldNodes,Object flag) {
    Object[] listeners = hierarchyListenerList.getListenerList();
    HierarchyEvent e = null;
    for (int i = 0; i < listeners.length; i += 2) {
      if (listeners[i] == HierarchyListener.class) {
        if (e == null) {
          e = new HierarchyEvent(source,
              HierarchyEvent.NODES_INSERTED, nodes,oldNodes,flag);
        }
        ((HierarchyListener) listeners[i + 1]).nodesInserted(e);
   
      }
View Full Code Here

      }
    }
  }
  protected void fireNodesRemoved(Object source, Object[] nodes,Object[] oldNodes,Object flag) {
    Object[] listeners = hierarchyListenerList.getListenerList();
    HierarchyEvent e = null;
    for (int i = 0; i < listeners.length; i += 2) {
      if (listeners[i] == HierarchyListener.class) {
        if (e == null) {
          e = new HierarchyEvent(source,
              HierarchyEvent.NODES_REMOVED, nodes,oldNodes,flag);
        }
        ((HierarchyListener) listeners[i + 1]).nodesRemoved(e);
   
      }
View Full Code Here

TOP

Related Classes of com.projity.grouping.core.event.HierarchyEvent

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.