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

MultiViewElementCallback (MultiView Windows) - NetBeans API Javadoc (Current Development Version)

org.netbeans.core.multiview/1 1.9

org.netbeans.core.spi.multiview
Class MultiViewElementCallback

java.lang.Object
  extended by org.netbeans.core.spi.multiview.MultiViewElementCallback

public final class MultiViewElementCallback
extends Object

Requester type of class, allowing implementors of MultiViewElement to send requests back to enclosing component and window system. Enclosing component or other part of window system will set the instance of this class to elements upon instantiation or deserialization of the element to receive requests properly. Implementors of MultiViewElement shall not attempt to serialize the passed callback instance.


Method Summary
 Action[] createDefaultActions()
          Creates the default TopComponent actions as defined by the Window System.
 TopComponent getTopComponent()
          Returns the enclosing Multiview's topcomponent.
 boolean isSelectedElement()
          Element can check if it's currently the selected element.
 void requestActive()
          Activates this multi view element in enclosing multi view component context, if enclosing multi view top component is opened.
 void requestVisible()
          Selects this multi view element in enclosing component context, if component is opened, but does not activate it unless enclosing component is in active mode already.
 void updateTitle(String title)
          Update the multiview's topcomponent title.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

requestActive

public void requestActive()
Activates this multi view element in enclosing multi view component context, if enclosing multi view top component is opened.


requestVisible

public void requestVisible()
Selects this multi view element in enclosing component context, if component is opened, but does not activate it unless enclosing component is in active mode already.


createDefaultActions

public Action[] createDefaultActions()
Creates the default TopComponent actions as defined by the Window System. Should be used by the element when constructing it's own getActions() return value.


updateTitle

public void updateTitle(String title)
Update the multiview's topcomponent title.


isSelectedElement

public boolean isSelectedElement()
Element can check if it's currently the selected element.


getTopComponent

public TopComponent getTopComponent()
Returns the enclosing Multiview's topcomponent.


org.netbeans.core.multiview/1 1.9

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