dsto.dfc.swing.panels
Class PanelManagerFinder

java.lang.Object
  extended by dsto.dfc.swing.panels.PanelManagerFinder

public class PanelManagerFinder
extends Object

Locates the Panel Manager for a given component, if any.

Version:
$Revision$
Author:
Peter J Smet

Constructor Summary
PanelManagerFinder()
           
 
Method Summary
static ToolView addToolView(Component tool, Component toolViewOwner)
          Utility method to create a tool view on a client component, managed by the PanelManager managing the client, or standalone if the client is not in a PanelManager.
static PanelManager.Panel findPanelForComponent(Component component)
           
static PanelManager findPanelManagerForComponent(Component component)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PanelManagerFinder

public PanelManagerFinder()
Method Detail

findPanelManagerForComponent

public static PanelManager findPanelManagerForComponent(Component component)

findPanelForComponent

public static PanelManager.Panel findPanelForComponent(Component component)

addToolView

public static ToolView addToolView(Component tool,
                                   Component toolViewOwner)
Utility method to create a tool view on a client component, managed by the PanelManager managing the client, or standalone if the client is not in a PanelManager.

Parameters:
tool - The tool component to be placed in the tool view frame.
toolViewOwner - The owner of the tool view.
Returns:
A new ToolView, either managed by the same PanelManager as client, or standalone if client is not being managed.
See Also:
PanelManager.Panel.addToolView(Component)


Copyright © 2008 Commonwealth of Australia