Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

javax.ide.view
Class GUIPanel  view GUIPanel download GUIPanel.java

java.lang.Object
  extended byjavax.ide.view.GUIPanel

public final class GUIPanel
extends java.lang.Object

A GUIPanel opaquely encapsulates the gui panel that is to be hosted by an IDE's service such as: the IDE preferences panel, the editor's panel, etc.. There are two components in a GUI component hierarchy that need to be identified: the root component, and the focusable component. The root component will be added to the children list of the IDE host, and the focusable component will be given the focus when the IDE host becomes active. For Swing based IDE's the type of the root and focusable components should be: javax.swing.JComponent.


Field Summary
private  java.lang.Object _focusableComponent
           
private  java.lang.Object _rootComponent
           
 
Constructor Summary
GUIPanel(java.lang.Object root, java.lang.Object focusable)
          Constructor.
 
Method Summary
 java.lang.Object getFocusableComponent()
          Get the component that can take input focus in the component hierarchy of the encapsulated panel.
 java.lang.Object getRootComponent()
          Get the root component in the component hierarchy of the panel encapsulated by this class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_rootComponent

private java.lang.Object _rootComponent

_focusableComponent

private java.lang.Object _focusableComponent
Constructor Detail

GUIPanel

public GUIPanel(java.lang.Object root,
                java.lang.Object focusable)
Constructor.

Method Detail

getRootComponent

public java.lang.Object getRootComponent()
Get the root component in the component hierarchy of the panel encapsulated by this class.


getFocusableComponent

public java.lang.Object getFocusableComponent()
Get the component that can take input focus in the component hierarchy of the encapsulated panel.