All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----com.sun.java.swing.tree.DefaultMutableTreeNode | +----xg.xg_Node | +----xg.xg_Document | +----xu.xu_FrameConfigManager
xu_FrameConfigManager is a repository for configuration details of any kind (ie. it has no knowledge of what they mean). It also has specific processing for certain types of configuration: for externally-defined menus and toolbars (hence the 'Frame' in the class name).
xu_FrameConfigManager can be used for the following purposes:
There are limits to what generic processing can do (though it could be expanded to handle more), so it is recognised that it may be necessary to set up certain menus and menu items is a bespoke fashion. For this reason, xu_FrameConfigManager allows considerable flexibility in how it is used.
At present, all configuration is read from standard Java resource files (for the user's default locale) but it is intended to replace these with XML configuration files.
Register special types of element classes used to represent particular parts of the configuration.
The present approach isn't ideal: it's static, so affects all XML parsing, and it doesn't permit the unregistering of all the special registrations.
public xu_FrameConfigManager()
public boolean load(String InputConfigFileName)
public boolean loadConfigFile(String InputConfigFileName)
public void registerElementClasses()
Register special types of element classes used to represent particular parts of the configuration.
The present approach isn't ideal: it's static, so affects all XML parsing, and it doesn't permit the unregistering of all the special registrations.
public void registerActions(Action InputActionArray[])
public void registerAction(Action InputAction)
public URL getResourceURL(String InputResourceName)
public URL convertToURL(String InputValue)
public String getResourceString(String InputResourceName)
public Action getAction(String InputActionName)
public JToolBar getToolBar()
public JMenuBar getMenuBar()
public Rectangle getFrameRectangle()
public Image getFrameIconImage()
public String getFrameTitle()
public ResourceBundle getResourceBundle()
All Packages Class Hierarchy This Package Previous Next Index