net.mlw.fball.gui
Class AppContext
java.lang.Object
|
+--net.mlw.fball.gui.AppContext
- public final class AppContext
- extends java.lang.Object
- Version:
- $Revision: 1.5 $ $Date: 2004/03/19 21:44:31 $
- Author:
- Matthew L. Wilson
Method Summary |
static void |
close()
public static void setLookAndFeel(String laf)
{
try
{
UIManager.setLookAndFeel(laf);
SwingUtilities.updateComponentTreeUI(root);
root.repaint();
if (root instanceof JFrame)
{
((JFrame) root).pack();
}
}
catch (Exception e)
{
}
} |
static java.lang.Object |
getBean(java.lang.String name)
|
static net.mlw.fball.event.EventListenerGroup |
getEventListenerGroup()
|
static java.lang.String |
getMessage(java.lang.String code)
|
static java.lang.String |
getMessage(java.lang.String code,
java.lang.Object[] args)
|
static net.mlw.fball.loader.LoaderGroup |
getRootLoader()
Gets the container for all the loaders. |
static boolean |
init(java.lang.String[] configLocations)
Inits the Application Context. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AppContext
public AppContext()
init
public static boolean init(java.lang.String[] configLocations)
throws java.io.IOException
- Inits the Application Context.
todo: protect this so it can be called only once!
- Parameters:
configLocations
-
- Throws:
java.io.IOException
getBean
public static java.lang.Object getBean(java.lang.String name)
getRootLoader
public static net.mlw.fball.loader.LoaderGroup getRootLoader()
- Gets the container for all the loaders.
- Returns:
getMessage
public static java.lang.String getMessage(java.lang.String code)
getMessage
public static java.lang.String getMessage(java.lang.String code,
java.lang.Object[] args)
close
public static void close()
- public static void setLookAndFeel(String laf)
{
try
{
UIManager.setLookAndFeel(laf);
SwingUtilities.updateComponentTreeUI(root);
root.repaint();
if (root instanceof JFrame)
{
((JFrame) root).pack();
}
}
catch (Exception e)
{
}
}
getEventListenerGroup
public static net.mlw.fball.event.EventListenerGroup getEventListenerGroup()
- Returns:
- Returns the eventListenerGroup.
Copyright © 2003-2004 mlavilson. All Rights Reserved.