TreeStateAdvisor (RichFaces JSF components library 3.2.1.GA API)
Keywords: org.richfaces.component.state.TreeStateAdvisor interface

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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
`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

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2008. All Rights Reserved.