allensoft.javacvs.client.ui.swing
Class CVSGUIBuilder

java.lang.Object
  |
  +--allensoft.javacvs.client.ui.swing.CVSGUIBuilder

public class CVSGUIBuilder
extends java.lang.Object

Builds GUI components from XML files. It will first look for a file in the user.home/.javacvs/name.xml and if this fails it will try a file javacvs.home/lib/name.xml. If that fails too it will create the menus from a default string that is provided.


Constructor Summary
CVSGUIBuilder()
           
 
Method Summary
static TearableMenu buildMenu(java.lang.String sName, java.lang.String sDefault, ActionPool actionPool)
           
static javax.swing.JMenuBar buildMenuBar(java.lang.String sName, java.lang.String sDefault, ActionPool actionPool)
           
static EnhancedToolBar buildToolBar(java.lang.String sName, java.lang.String sDefault, ActionPool actionPool)
           
static java.io.File getConfigurationFile(java.lang.String sName)
           
static org.w3c.dom.Document getDocument(java.lang.String sName, java.lang.String sDefault)
          Gets the XML document for the supplied name.
static void writeConfigurationFile(java.awt.Component component, java.lang.String sName, org.w3c.dom.Node document)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CVSGUIBuilder

public CVSGUIBuilder()
Method Detail

buildToolBar

public static EnhancedToolBar buildToolBar(java.lang.String sName,
                                           java.lang.String sDefault,
                                           ActionPool actionPool)

buildMenuBar

public static javax.swing.JMenuBar buildMenuBar(java.lang.String sName,
                                                java.lang.String sDefault,
                                                ActionPool actionPool)

buildMenu

public static TearableMenu buildMenu(java.lang.String sName,
                                     java.lang.String sDefault,
                                     ActionPool actionPool)

getConfigurationFile

public static java.io.File getConfigurationFile(java.lang.String sName)

getDocument

public static org.w3c.dom.Document getDocument(java.lang.String sName,
                                               java.lang.String sDefault)
Gets the XML document for the supplied name.

writeConfigurationFile

public static void writeConfigurationFile(java.awt.Component component,
                                          java.lang.String sName,
                                          org.w3c.dom.Node document)