org.crosswire.common.config.swing
Class ConfigEditorFactory

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

public final class ConfigEditorFactory
extends Object

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

Author:
Joe Walker [joe at eireneh dot com]
See Also:
for license details.
The copyright to this program is held by it's authors.

Nested Class Summary
(package private) static class ConfigEditorFactory.URIActionListener
          A quick class to save a config to a uri
 
Constructor Summary
private ConfigEditorFactory()
          Prevent instantiation
 
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, URI uri)
          Create a dialog to house a TreeConfig component using the default set of Fields, with the default accept action of config.localToApplication and config,localToPermanent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigEditorFactory

private ConfigEditorFactory()
Prevent instantiation

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,
                              URI uri)
Create a dialog to house a TreeConfig component using the default set of Fields, with the default accept action of config.localToApplication and config,localToPermanent

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-2011