站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc 4.1.0

NodeActionsProvider (NetBeans View Model) - NetBeans API Javadoc 4.1.0

 

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

public void performDefaultAction(Object node)
                          throws UnknownTypeException
Performs default action 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

getActions

public 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

 

Built on May 4 2005.  |  Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.