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

NodeActionsProvider (NetBeans View Model) - NetBeans API Javadoc 5.5.0

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 May 28 2007.  |  Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.