Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| org.netbeans.spi.viewmodel/2 1.9.22
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.netbeans.spi.viewmodel
Interface NodeActionsProvider

All Superinterfaces:
  Model

All Known Implementing Classes:
  Models.CompoundModel

    public interface NodeActionsProvider

extends Model

Provides actions and default action for some type of objects. Designed to be used with `TreeModel`.

Method Summary
`Action[]` | `getActions(Object node)` Returns set of actions for given node.
`void` | `performDefaultAction(Object node)` Performs default action for given node.

Method Detail

### performDefaultAction

    void performDefaultAction(Object node)
                              throws UnknownTypeException

  Performs default action for given node.

  Throws:
    `UnknownTypeException` - if this NodeActionsProvider implementation is not able to resolve actions for given node type

### getActions

    Action[] getActions(Object node)
                        throws UnknownTypeException

  Returns set of actions for given node.

  Returns:
    display name for given node
  Throws:
    `UnknownTypeException` - if this NodeActionsProvider implementation is not able to resolve actions for given node type

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| org.netbeans.spi.viewmodel/2 1.9.22
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Built on December 7 2006. | Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.