org.argouml.util
Class ConfigLoader

java.lang.Object
  extended byorg.argouml.util.ConfigLoader

public class ConfigLoader
extends Object

This class loads panel classes according a certain configuration file.


Field Summary
private static Logger LOG
           
private static String tabPath
           
private static org.tigris.swidgets.Orientation tabPropsOrientation
           
 
Constructor Summary
ConfigLoader()
           
 
Method Summary
static org.tigris.swidgets.Orientation getTabPropsOrientation()
           
static void loadTabs(Vector tabs, String panelName, org.tigris.swidgets.Orientation orientation)
          Load the tab panels as defined in the configuration file.
static Class parseConfigLine(String line, String panelName, int lineNum, String configFile)
          Parse a line in the text file containing the configuration of ArgoUML, "/org/argouml/argo.ini".
static String stripBeforeColon(String s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

private static final Logger LOG

tabPath

private static String tabPath

tabPropsOrientation

private static org.tigris.swidgets.Orientation tabPropsOrientation
Constructor Detail

ConfigLoader

public ConfigLoader()
Method Detail

getTabPropsOrientation

public static org.tigris.swidgets.Orientation getTabPropsOrientation()
Returns:
the orientation

loadTabs

public static void loadTabs(Vector tabs,
                            String panelName,
                            org.tigris.swidgets.Orientation orientation)
Load the tab panels as defined in the configuration file.

Parameters:
tabs - the list of tabs in the panel
panelName - the panel name
orientation - the orientation

parseConfigLine

public static Class parseConfigLine(String line,
                                    String panelName,
                                    int lineNum,
                                    String configFile)
Parse a line in the text file containing the configuration of ArgoUML, "/org/argouml/argo.ini".

Parameters:
line - the given line
panelName - the name of the panel
lineNum - the number of the current line
configFile - the configuration file name
Returns:
the resulting class of the tabpanel

stripBeforeColon

public static String stripBeforeColon(String s)
Parameters:
s - input string
Returns:
string with everything before (including) colon stripped


ArgoUML © 1996-2004 (20050222)ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook