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

## com.gwtext.client.widgets.tree.event
Interface DefaultSelectionModelListener

All Known Implementing Classes:
  DefaultSelectionModelListenerAdapter

    public interface DefaultSelectionModelListener

Listener for DefaultSelectionModel.

See Also:
  `DefaultSelectionModel`

Method Summary
`boolean` | `doBeforeSelect(DefaultSelectionModel sm, TreeNode newNode, TreeNode oldNode)` Fires before the selected node changes, return false to cancel the change.
`void` | `onSelectionChange(DefaultSelectionModel sm, TreeNode node)` Fires when the selected node changes.

Method Detail

### doBeforeSelect

    boolean doBeforeSelect(DefaultSelectionModel sm,
                           TreeNode newNode,
                           TreeNode oldNode)

  Fires before the selected node changes, return false to cancel the change.

  Parameters:
    `sm` - selection model
    `newNode` - the new selection
    `oldNode` - the old selection
  Returns:
    false to cancel change

### onSelectionChange

    void onSelectionChange(DefaultSelectionModel sm,
                           TreeNode node)

  Fires when the selected node changes. Note TreeNode passed is null when clearSelection is called, or when a node is unselected.

  Parameters:
    `sm` - selection model
    `node` - new selection

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