All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class xu.xu_Frame

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Window
                           |
                           +----java.awt.Frame
                                   |
                                   +----com.sun.java.swing.JFrame
                                           |
                                           +----xu.xu_Frame

public class xu_Frame
extends JFrame
xu_Frame is a JFrame with support for loading a menu bar and/or a toolbar from an XML configuration file.


Variable Index

 o BasicFrameTitle
 o MainFrame
This class's main frame.
 o MainStatusBar
 o ParentFrame

The frame from which this class has been invoked.

 o TextResourceBundle
 o TheExitAction
 o TheFrameConfigManager
 o TheHelpAction

Constructor Index

 o xu_Frame()
Default constructor.
 o xu_Frame(JFrame)
Default constructor.

Method Index

 o getResourceString(String)
Get the value of the string whose name is InputResourceName.
 o initControlPanel()
Initialise the input/control panel at the top of the main frame.
 o loadConfig(String)
Initialise the frame configuration, including setting up the table of supported actions.
 o registerActions()
Register the actions supported by this frame.

Variables

 o ParentFrame
 public JFrame ParentFrame

The frame from which this class has been invoked. This may be null, in which case it is assumed to be the 'master' frame. Whether this is null or not is used to decide whether to terminate the whole application when we exit from here.

Note that this attribute is public so it can be accessible to inner classes of derived classes.

 o MainFrame
 public JFrame MainFrame
This class's main frame.

 o MainStatusBar
 public xm_StatusBar MainStatusBar
 o TheFrameConfigManager
 protected xu_FrameConfigManager TheFrameConfigManager
 o TextResourceBundle
 protected ResourceBundle TextResourceBundle
 o BasicFrameTitle
 public String BasicFrameTitle
 o TheExitAction
 protected xu_Frame. ExitAction TheExitAction
 o TheHelpAction
 protected oh_HelpAction TheHelpAction

Constructors

 o xu_Frame
 public xu_Frame(JFrame InputParentFrame)
Default constructor. Create a new xu_Frame at a default screen location.

Parameters:
InputParentFrame - The master frame from which this frame is being called
 o xu_Frame
 public xu_Frame()
Default constructor. Create a new xu_Frame at a default screen location.

Methods

 o loadConfig
 protected void loadConfig(String InputConfigFilePathname)
Initialise the frame configuration, including setting up the table of supported actions.

Parameters:
InputConfigFilePathname - The name of the configuration file to load
 o registerActions
 protected void registerActions()
Register the actions supported by this frame.

 o initControlPanel
 protected void initControlPanel()
Initialise the input/control panel at the top of the main frame.

 o getResourceString
 protected String getResourceString(String InputResourceName)
Get the value of the string whose name is InputResourceName.


All Packages  Class Hierarchy  This Package  Previous  Next  Index