org.netbeans.spi.viewmodel/2 1.9.22

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

org.netbeans.spi.viewmodel/2 1.9.22

Built on July 11 2007.  |  Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.