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

NodeActionsProvider (NetBeans View Model) - NetBeans API Javadoc 5.5.1

org.netbeans.spi.viewmodel/2 1.9.31

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.31

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