net.groboclown.gui.pluginapp.v1
Class MainFrame

java.lang.Object
  |
  +--net.groboclown.gui.pluginapp.v1.MainFrame
All Implemented Interfaces:
IElement, Serializable

public class MainFrame
extends Object
implements IElement

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.

See Also:
Serialized Form

Inner Class Summary
private  class MainFrame.ComponentPropertyListener
           
private  class MainFrame.ComponentResizer
           
private  class MainFrame.MyElementRemovedListener
           
private static class MainFrame.WindowCloser
           
 
Field Summary
private  JTabbedPane componentPane
           
private  Map components
           
private  ElementManager elementMgr
           
private static String FRAME_BOUNDS
           
private static String FRAME_NAME
           
private  JMenuBar menuBar
           
private  MainFrame.MyElementRemovedListener merl
           
private static String NAME
           
protected static String PRIMARY_COMPONENTS
           
protected  PropertyManager propertyMgr
           
private  JMenu viewComponentPanesMenu
           
private  JFrame windowFrame
           
 
Constructor Summary
MainFrame()
           
 
Method Summary
 void addComponent(IPrimaryComponent ipc)
           
protected  void addComponentMenu(PrincipalComponentWrapper pcw)
           
protected  void addComponentTab(PrincipalComponentWrapper pcw)
           
 IPrimaryComponent[] getComponents()
           
 String getName()
           
 int getVersion()
           
 void removeComponent(IPrimaryComponent ipc)
           
protected  void removeComponentMenu(PrincipalComponentWrapper pcw)
           
protected  void removeComponentTab(PrincipalComponentWrapper pcw)
           
protected  void saveProperties()
           
 void setup(Core core)
           
 void start()
           
 void teardown()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

NAME

private static final String NAME

FRAME_NAME

private static final String FRAME_NAME

FRAME_BOUNDS

private static final String FRAME_BOUNDS

PRIMARY_COMPONENTS

protected static final String PRIMARY_COMPONENTS

windowFrame

private JFrame windowFrame

menuBar

private JMenuBar menuBar

componentPane

private JTabbedPane componentPane

viewComponentPanesMenu

private JMenu viewComponentPanesMenu

components

private Map components

propertyMgr

protected PropertyManager propertyMgr

elementMgr

private ElementManager elementMgr

merl

private MainFrame.MyElementRemovedListener merl
Constructor Detail

MainFrame

public MainFrame()
Method Detail

getName

public String getName()
Specified by:
getName in interface IElement

getVersion

public int getVersion()
Specified by:
getVersion in interface IElement

setup

public void setup(Core core)
Specified by:
setup in interface IElement

teardown

public void teardown()
Specified by:
teardown in interface IElement

start

public void start()

getComponents

public IPrimaryComponent[] getComponents()

addComponent

public void addComponent(IPrimaryComponent ipc)

removeComponent

public void removeComponent(IPrimaryComponent ipc)

addComponentMenu

protected void addComponentMenu(PrincipalComponentWrapper pcw)

removeComponentMenu

protected void removeComponentMenu(PrincipalComponentWrapper pcw)

addComponentTab

protected void addComponentTab(PrincipalComponentWrapper pcw)

removeComponentTab

protected void removeComponentTab(PrincipalComponentWrapper pcw)

saveProperties

protected void saveProperties()


Written under the LGPL