Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.eireneh.config.swing
Class SwingConfig  view SwingConfig download SwingConfig.java

java.lang.Object
  extended bycom.eireneh.config.swing.SwingConfig

public class SwingConfig
extends java.lang.Object

Allow a swing program to display a Dialog box displaying a set of config options.
Distribution Licence:
Project B 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, by writing to Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA, Or locally at the Licence link below.
The copyright to this program is held by it's authors.


Nested Class Summary
(package private) static class SwingConfig.URLActionListener
          A quick class to save a config to a url
 
Field Summary
private static java.lang.Class display_class
          Which display style to we use
static int DISPLAY_TAB
          The old tabbed display style
static int DISPLAY_TREE
          The new tree display style
static int DISPLAY_WIZARD
          The old tabbed display style
 
Constructor Summary
SwingConfig()
           
 
Method Summary
static java.lang.Class getDisplayClass()
          Which display style to we use
static void setDisplayClass(java.lang.Class display_class)
          Which display style to we use
static void showDialog(com.eireneh.config.Config config, java.awt.Component parent, java.awt.event.ActionListener al)
          Create a dialog to house a TreeConfig component using the default set of Fields
static void showDialog(com.eireneh.config.Config config, java.awt.Component parent, java.lang.String host, int port)
          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
static void showDialog(com.eireneh.config.Config config, java.awt.Component parent, java.net.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
 

Field Detail

DISPLAY_TREE

public static final int DISPLAY_TREE
The new tree display style

See Also:
Constant Field Values

DISPLAY_TAB

public static final int DISPLAY_TAB
The old tabbed display style

See Also:
Constant Field Values

DISPLAY_WIZARD

public static final int DISPLAY_WIZARD
The old tabbed display style

See Also:
Constant Field Values

display_class

private static java.lang.Class display_class
Which display style to we use

Constructor Detail

SwingConfig

public SwingConfig()
Method Detail

showDialog

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


showDialog

public static void showDialog(com.eireneh.config.Config config,
                              java.awt.Component parent,
                              java.net.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


showDialog

public static void showDialog(com.eireneh.config.Config config,
                              java.awt.Component parent,
                              java.lang.String host,
                              int port)
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


getDisplayClass

public static java.lang.Class getDisplayClass()
Which display style to we use


setDisplayClass

public static void setDisplayClass(java.lang.Class display_class)
                            throws java.lang.ClassCastException
Which display style to we use