Package org.zkoss.zul.event

Examples of org.zkoss.zul.event.TreeDataEvent


  /** Fires a {@link TreeDataEvent} for all registered listener
   *
   * <p>Note: you can invoke this method only in an event listener.
   */
  protected void fireEvent(Object node, int indexFrom, int indexTo, int evtType){
    final TreeDataEvent evt = new TreeDataEvent(this,evtType, node, indexFrom,indexTo);
    for (Iterator it = _listeners.iterator(); it.hasNext();)
      ((TreeDataListener)it.next()).onChange(evt);
  }
View Full Code Here


        Prueba child1 = new Prueba();
        Prueba child2 = new Prueba();
        model.add(model.getRoot(), Arrays.asList(child1, child2));
        assertThat(eventsFired.size(), equalTo(1));
        TreeDataEvent event = getLast(eventsFired);
        checkIsValid(event, TreeDataEvent.INTERVAL_ADDED, model.getRoot(), 0, 1);
    }
View Full Code Here

            }
        });
        model
                .add(model.getRoot(), 0, Arrays.asList(new Prueba(),
                        new Prueba()));
        TreeDataEvent event = getLast(eventsFired);
        checkIsValid(event, TreeDataEvent.INTERVAL_ADDED, model.getRoot(), 0, 1);
    }
View Full Code Here

TOP

Related Classes of org.zkoss.zul.event.TreeDataEvent

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.