net.groboclown.gui.pluginapp.v1
Class PrincipalComponentWrapper

java.lang.Object
  |
  +--net.groboclown.gui.pluginapp.v1.PrincipalComponentWrapper

public class PrincipalComponentWrapper
extends Object

The main GUI frame controller. It has the Frame, the MenuBar, and the Tabbed Pane where everyone plays. For each primary component, there is a JMenu and JComponent.


Field Summary
private  MainFrame frame
           
private  ButtonGroup group
           
private  JRadioButtonMenuItem hideItem
           
private  boolean inSetVisibility
           
private  IPrimaryComponent ipc
           
private  boolean isAdded
           
private  JMenu menu
           
private  Component pane
           
private  JRadioButtonMenuItem showItem
           
private  JMenu tabMenu
           
 
Constructor Summary
PrincipalComponentWrapper(IPrimaryComponent ipcc, MainFrame fr)
           
 
Method Summary
 JMenu getMenu()
           
 Component getPane()
           
 IPrimaryComponent getPrimaryComponent()
           
 JMenu getTabMenu()
           
 void hide()
           
protected  void setAdded(boolean yes)
           
protected  void setupState()
           
 void show()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

frame

private MainFrame frame

group

private ButtonGroup group

ipc

private IPrimaryComponent ipc

menu

private JMenu menu

pane

private Component pane

tabMenu

private JMenu tabMenu

hideItem

private JRadioButtonMenuItem hideItem

showItem

private JRadioButtonMenuItem showItem

inSetVisibility

private boolean inSetVisibility

isAdded

private boolean isAdded
Constructor Detail

PrincipalComponentWrapper

public PrincipalComponentWrapper(IPrimaryComponent ipcc,
                                 MainFrame fr)
Method Detail

getPrimaryComponent

public IPrimaryComponent getPrimaryComponent()

getMenu

public JMenu getMenu()

getPane

public Component getPane()

getTabMenu

public JMenu getTabMenu()

hide

public void hide()

show

public void show()

setAdded

protected void setAdded(boolean yes)

setupState

protected void setupState()


Written under the LGPL