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

TreeExpansionModel (NetBeans View Model) - NetBeans API Javadoc 4.1.0

 

org.netbeans.spi.viewmodel
Interface TreeExpansionModel

All Superinterfaces:
Model
All Known Implementing Classes:
Models.CompoundModel

public interface TreeExpansionModel
extends Model

This model controlls expansion, collapsion of nodes in tree view, and defindes default expand state for all node in it.


Method Summary
 boolean isExpanded(Object node)
          Defines default state (collapsed, expanded) of given node.
 void nodeCollapsed(Object node)
          Called when given node is collapsed.
 void nodeExpanded(Object node)
          Called when given node is expanded.
 

Method Detail

isExpanded

public boolean isExpanded(Object node)
                   throws UnknownTypeException
Defines default state (collapsed, expanded) of given node.

Parameters:
node - a node
Returns:
default state (collapsed, expanded) of given node
Throws:
UnknownTypeException

nodeExpanded

public void nodeExpanded(Object node)
Called when given node is expanded.

Parameters:
node - a expanded node

nodeCollapsed

public void nodeCollapsed(Object node)
Called when given node is collapsed.

Parameters:
node - a collapsed node

 

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