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

NavigatorHandler (Navigator API) - NetBeans API Javadoc (Current Development Version)

org.netbeans.spi.navigator/1 1.5

org.netbeans.spi.navigator
Class NavigatorHandler

java.lang.Object
  extended by org.netbeans.spi.navigator.NavigatorHandler

public final class NavigatorHandler
extends Object

Set of methods for driving navigator behaviour.


Method Summary
static void activatePanel(NavigatorPanel panel)
          Activates and shows given panel in navigator view.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

activatePanel

public static void activatePanel(NavigatorPanel panel)
Activates and shows given panel in navigator view. Panel must be one of available panels at the time this method is called, which means that panel must be registered (either through mime type in xml layer or NavigatorLookupHint) for currently activated node in the system. Previously activated panel is deactivated and hidden.

Typical use case is to set preferred navigator panel in a situation when multiple panels are registered for multiple data types.

This method must be called from EventQueue thread.

Parameters:
panel - Navigator panel to be activated
Throws:
IllegalArgumentException - if given panel is not available

org.netbeans.spi.navigator/1 1.5

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