Examples of ExpandAllCommandEvent


Examples of org.richfaces.component.state.events.ExpandAllCommandEvent

   * Queues all node expansion command
   *
   * @throws IOException
   */
  public void queueExpandAll() throws IOException {
    new ExpandAllCommandEvent(this).queue();
  }
View Full Code Here

Examples of org.richfaces.component.state.events.ExpandAllCommandEvent

   * Queues all node expansion command
   *
   * @throws IOException
   */
  public void queueExpandAll() throws IOException {
    new ExpandAllCommandEvent(this).queue();
  }
View Full Code Here

Examples of org.richfaces.component.state.events.ExpandAllCommandEvent

   * Queues all node expansion command
   *
   * @throws IOException
   */
  public void queueExpandAll() throws IOException {
    new ExpandAllCommandEvent(this).queue();
  }
View Full Code Here

Examples of org.richfaces.component.state.events.ExpandAllCommandEvent

   * Test method for {@link org.richfaces.component.UITree#queueEvent(javax.faces.event.FacesEvent)}.
   */
  public final void testQueueEventFacesEvent() {
    NodeExpandedEvent nodeExpandedEvent = new NodeExpandedEvent(tree);
    NodeSelectedEvent nodeSelectedEvent = new NodeSelectedEvent(tree, null);
    ExpandAllCommandEvent expandAllCommandEvent = new ExpandAllCommandEvent(tree);
    DragEvent dragEvent = new DragEvent(treeNode);
    DropEvent dropEvent = new DropEvent(treeNode);

    tree.queueEvent(nodeExpandedEvent);
    tree.queueEvent(nodeSelectedEvent);
    tree.queueEvent(expandAllCommandEvent);
    treeNode.queueEvent(dragEvent);
    treeNode.queueEvent(dropEvent);

    assertEquals(PhaseId.INVOKE_APPLICATION, nodeExpandedEvent.getPhaseId());
    assertEquals(PhaseId.UPDATE_MODEL_VALUES, nodeSelectedEvent.getPhaseId());
    assertEquals(PhaseId.INVOKE_APPLICATION, expandAllCommandEvent.getPhaseId());
    assertEquals(PhaseId.INVOKE_APPLICATION, dragEvent.getPhaseId());
    assertEquals(PhaseId.INVOKE_APPLICATION, dropEvent.getPhaseId());
  }
View Full Code Here

Examples of org.richfaces.component.state.events.ExpandAllCommandEvent

  public final void testQueueEventFacesEventImmediate() {
    tree.setImmediate(true);

    NodeExpandedEvent nodeExpandedEvent = new NodeExpandedEvent(tree);
    NodeSelectedEvent nodeSelectedEvent = new NodeSelectedEvent(tree, null);
    ExpandAllCommandEvent expandAllCommandEvent = new ExpandAllCommandEvent(tree);
    DragEvent dragEvent = new DragEvent(treeNode);
    DropEvent dropEvent = new DropEvent(treeNode);

    tree.queueEvent(nodeExpandedEvent);
    tree.queueEvent(nodeSelectedEvent);
    tree.queueEvent(expandAllCommandEvent);
    treeNode.queueEvent(dragEvent);
    treeNode.queueEvent(dropEvent);

    assertEquals(PhaseId.APPLY_REQUEST_VALUES, nodeExpandedEvent.getPhaseId());
    assertEquals(PhaseId.APPLY_REQUEST_VALUES, nodeSelectedEvent.getPhaseId());
    assertEquals(PhaseId.APPLY_REQUEST_VALUES, expandAllCommandEvent.getPhaseId());
    assertEquals(PhaseId.APPLY_REQUEST_VALUES, dragEvent.getPhaseId());
    assertEquals(PhaseId.APPLY_REQUEST_VALUES, dropEvent.getPhaseId());
  }
View Full Code Here

Examples of org.richfaces.component.state.events.ExpandAllCommandEvent

    assertTrue(treeNode.getDropListeners().length == 1);

    // ------------ Invoke listeners --------------------
    NodeExpandedEvent nodeExpandedEvent = new NodeExpandedEvent(tree);
    NodeSelectedEvent nodeSelectedEvent = new NodeSelectedEvent(tree, null);
    ExpandAllCommandEvent expandAllCommandEvent = new ExpandAllCommandEvent(tree);
    DragEvent dragEvent = new DragEvent(tree);
    DropEvent dropEvent = new DropEvent(tree);

    tree.queueEvent(nodeExpandedEvent);
    tree.queueEvent(dropEvent);
View Full Code Here

Examples of org.richfaces.component.state.events.ExpandAllCommandEvent

   * Queues all node expansion command
   *
   * @throws IOException
   */
  public void queueExpandAll() throws IOException {
    new ExpandAllCommandEvent(this).queue();
  }
View Full Code Here

Examples of org.richfaces.component.state.events.ExpandAllCommandEvent

  /**
   * Queues all node expansion command
   */
  public void queueExpandAll() {
    new ExpandAllCommandEvent(this).queue();
  }
View Full Code Here

Examples of org.richfaces.component.state.events.ExpandAllCommandEvent

   * Queues all node expansion command
   *
   * @throws IOException
   */
  public void queueExpandAll() throws IOException {
    new ExpandAllCommandEvent(this).queue();
  }
View Full Code Here

Examples of org.richfaces.component.state.events.ExpandAllCommandEvent

   * Queues all node expansion command
   *
   * @throws IOException
   */
  public void queueExpandAll() throws IOException {
    new ExpandAllCommandEvent(this).queue();
  }
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.