com.valhalla.jbother
Class JBotherLoader

java.lang.Object
  extended by com.valhalla.jbother.JBotherLoader

public class JBotherLoader
extends java.lang.Object

Sets default Settings (if this is the first run of JBother), loads command line arguments and settings from the settings file, sets the L&F.

Version:
1.0
Author:
Adam Olsen (arolsen@gmail.com)

Constructor Summary
JBotherLoader()
           
 
Method Summary
protected  void afterSplash()
          Gets called after the splash screen is done showing
static void checkGPG()
          Checks if GPG is enabled.
protected  void doLaunch()
           
protected  boolean done()
           
static java.util.Properties getDiscoveryCache()
          Gets the discoveryCache attribute of the JBotherLoader class
static javax.swing.JFrame getParentFrame()
          Gets the parentFrame attribute of the JBotherLoader class
static boolean isGPGEnabled()
          Gets the gPGEnabled attribute of the JBotherLoader class
 void launch()
          launches the profile defined as default
static void loadLAF()
          Description of the Method
static void loadLAF(java.lang.String laf)
          Loads the Look And Feel requested in the settings
static void loadPlugins()
          Finds the available plugins and uses the PluginLoader to load them Once a plugin is loaded, it's init() method is called so it can execute initial code and register for various events in JBother
static void loadSettings()
          Loads some JBother settings
static void setGPGEnabled(boolean enabled)
           
static void setupFont(java.awt.Font font)
          Sets the font for the entire application
 void startJBother(java.lang.String[] args)
          This is the main class, it basically just provides a loading point for the login screen - and also allows arguments to be passed from the command line.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JBotherLoader

public JBotherLoader()
Method Detail

startJBother

public void startJBother(java.lang.String[] args)
This is the main class, it basically just provides a loading point for the login screen - and also allows arguments to be passed from the command line.

Parameters:
args - arguments passed via the command line
See Also:
Arguments

doLaunch

protected void doLaunch()

done

protected boolean done()

checkGPG

public static void checkGPG()
Checks if GPG is enabled.


getDiscoveryCache

public static java.util.Properties getDiscoveryCache()
Gets the discoveryCache attribute of the JBotherLoader class

Returns:
The discoveryCache value

getParentFrame

public static javax.swing.JFrame getParentFrame()
Gets the parentFrame attribute of the JBotherLoader class

Returns:
The parentFrame value

afterSplash

protected void afterSplash()
Gets called after the splash screen is done showing


loadSettings

public static void loadSettings()
Loads some JBother settings


loadLAF

public static void loadLAF()
Description of the Method


loadLAF

public static void loadLAF(java.lang.String laf)
Loads the Look And Feel requested in the settings

Parameters:
laf - Description of the Parameter

loadPlugins

public static void loadPlugins()
Finds the available plugins and uses the PluginLoader to load them Once a plugin is loaded, it's init() method is called so it can execute initial code and register for various events in JBother


setupFont

public static void setupFont(java.awt.Font font)
Sets the font for the entire application

Parameters:
font - the font to use

launch

public void launch()
launches the profile defined as default


isGPGEnabled

public static boolean isGPGEnabled()
Gets the gPGEnabled attribute of the JBotherLoader class

Returns:
The gPGEnabled value

setGPGEnabled

public static void setGPGEnabled(boolean enabled)