org.crosswire.common.config.swing
Class ConfigEditorFactory

java.lang.Object
  extended by org.crosswire.common.config.swing.ConfigEditorFactory

public class ConfigEditorFactory
extends Object

Allow a swing program to display a Dialog box displaying a set of config options.

Distribution Licence:
JSword is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2 as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
The License is available on the internet here, or by writing to: Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
The copyright to this program is held by it's authors.

Version:
$Id: ConfigEditorFactory.java,v 1.5 2005/02/17 03:40:14 dmsmith Exp $
Author:
Joe Walker [joe at eireneh dot com]
See Also:
Licence

Nested Class Summary
(package private) static class ConfigEditorFactory.URLActionListener
          A quick class to save a config to a url
 
Constructor Summary
private ConfigEditorFactory()
          Prevent Instansiation
 
Method Summary
static void showDialog(Config config, Component parent, ActionListener al)
          Create a dialog to house a TreeConfig component using the default set of Fields
static void showDialog(Config config, Component parent, URL url)
          Create a dialog to house a TreeConfig component using the default set of Fields, with the default accept action of config.localToAppliation and config,localToPermanentURL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigEditorFactory

private ConfigEditorFactory()
Prevent Instansiation

Method Detail

showDialog

public static void showDialog(Config config,
                              Component parent,
                              ActionListener al)
Create a dialog to house a TreeConfig component using the default set of Fields

Parameters:
config - The set of Choices to display
parent - A component to use to find a frame to use as a dialog parent
al - The action when the user clicks on ok or apply

showDialog

public static void showDialog(Config config,
                              Component parent,
                              URL url)
Create a dialog to house a TreeConfig component using the default set of Fields, with the default accept action of config.localToAppliation and config,localToPermanentURL

Parameters:
config - The set of Choices to display
parent - A component to use to find a frame to use as a dialog parent

Copyright ? 2003-2004