org.openide.windows
Interface WindowManager.Component

All Superinterfaces:
Serializable
Enclosing class:
WindowManager

protected static interface WindowManager.Component
extends Serializable

A manager that handles operations on top components. It is always attached to a TopComponent.


Field Summary
static long serialVersionUID
          deprecated
 
Method Summary
 void close(Workspace workspace)
          Close the component on given workspace.
 Node[] getActivatedNodes()
          Get the set of activated nodes.
 Image getIcon()
           
 void nameChanged()
          Called when the name of the top component changes.
 void open()
          Open the component on current workspace
 void open(Workspace workspace)
          Open the component on given workspace in the right mode.
 void requestFocus()
          Called when the component requests focus.
 void requestVisible()
          Set this component visible but not selected or focused if possible.
 void setActivatedNodes(Node[] nodes)
          Set the set of activated nodes for this component.
 void setIcon(Image icon)
          Set the icon of the top component.
 Set whereOpened()
           
 

Field Detail

serialVersionUID

public static final long serialVersionUID
deprecated
Method Detail

open

public void open()
Open the component on current workspace

open

public void open(Workspace workspace)
Open the component on given workspace in the right mode.

close

public void close(Workspace workspace)
Close the component on given workspace.

requestFocus

public void requestFocus()
Called when the component requests focus. Moves it to be visible.

requestVisible

public void requestVisible()
Set this component visible but not selected or focused if possible. If focus is in other container (multitab) or other pane (split) in the same container it makes this component only visible eg. it selects tab with this component. If focus is in the same container (multitab) or in the same pane (split) it has the same effect as requestFocus().

getActivatedNodes

public Node[] getActivatedNodes()
Get the set of activated nodes.
Returns:
currently activated nodes for this component

setActivatedNodes

public void setActivatedNodes(Node[] nodes)
Set the set of activated nodes for this component.
Parameters:
nodes - new set of activated nodes

nameChanged

public void nameChanged()
Called when the name of the top component changes.

setIcon

public void setIcon(Image icon)
Set the icon of the top component.
Parameters:
icon - the new icon

getIcon

public Image getIcon()
Returns:
the icon of the top component

whereOpened

public Set whereOpened()
Returns:
the set of workspaces where managed component is open


Built on December 12 2001.  |  Portions Copyright 1997-2001 Sun Microsystems, Inc. All rights reserved.