org.richfaces.component.state

## Interface TreeStateAdvisor

-     public interface TreeStateAdvisor

  Author:
    Nick Belaevski - mailto:nbelaevski@exadel.com created 19.06.2007 This interface is intended to "advising" changes to tree state. Tree component should queue user-provided instance of the interface for changes during RENDER_RESPONSE phase. Changes advised by user should be immediately applied. Advisor methods are provided with `UITree` component instance to queue current tree state.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.lang.Boolean` | `adviseNodeOpened(UITree tree)` Advises new node opened/closed state
    `java.lang.Boolean` | `adviseNodeSelected(UITree tree)` Advises new node selection

- - ### Method Detail

    - #### adviseNodeOpened

          java.lang.Boolean adviseNodeOpened(UITree tree)

      Advises new node opened/closed state
      Parameters:
        `tree` - `UITree` component state to queue state
      Returns:
        - `null` if changes are not needed
        - `Boolean.TRUE` to advise node to be opened
        - `Boolean.FALSE` to advise node to be closed

    - #### adviseNodeSelected

          java.lang.Boolean adviseNodeSelected(UITree tree)

      Advises new node selection
      Parameters:
        `tree` - `UITree` component state to queue state
      Returns:
        - `null` if changes are not needed
        - `Boolean.TRUE` to advise current node to be selected
        - `Boolean.FALSE` to advise current node to be unselected

Copyright © 2014. All Rights Reserved.