~sword-devel/jsword/trunk

« back to all changes in this revision

Viewing changes to jsword/java/historic/org/crosswire/config/swing/config/ConfigClassChoices.java

  • Committer: joe
  • Date: 2002-10-08 21:36:18 UTC
  • Revision ID: svn-v4:a88caf3b-7e0a-0410-8d0d-cecb45342206:trunk:80
big config and comment update

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
 
2
 
package org.crosswire.config.swing.config;
3
 
 
4
 
import java.util.*;
5
 
 
6
 
import org.crosswire.config.*;
7
 
import org.crosswire.config.choices.*;
8
 
import org.crosswire.config.swing.*;
9
 
 
10
 
/**
11
 
* The ConfigChoices class creates some Choices that
12
 
* control the display on the JConfigure class itself.
13
 
*
14
 
* <table border='1' cellPadding='3' cellSpacing='0' width="100%">
15
 
* <tr><td bgColor='white'class='TableRowColor'><font size='-7'>
16
 
* Distribution Licence:<br />
17
 
* Project B is free software; you can redistribute it
18
 
* and/or modify it under the terms of the GNU General Public License,
19
 
* version 2 as published by the Free Software Foundation.<br />
20
 
* This program is distributed in the hope that it will be useful,
21
 
* but WITHOUT ANY WARRANTY; without even the implied warranty of
22
 
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
23
 
* General Public License for more details.<br />
24
 
* The License is available on the internet
25
 
* <a href='http://www.gnu.org/copyleft/gpl.html'>here</a>, by writing to
26
 
* <i>Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
27
 
* MA 02111-1307, USA</i>, Or locally at the Licence link below.<br />
28
 
* The copyright to this program is held by it's authors.
29
 
* </font></td></tr></table>
30
 
* @see <a href='http://www.eireneh.com/servlets/Web'>Project B Home</a>
31
 
* @see <{docs.Licence}>
32
 
* @author Joe Walker
33
 
*/
34
 
public class ConfigClassChoices extends ClassChoices
35
 
{
36
 
    /** Changing the look of the config dialog */
37
 
    public ConfigClassChoices() throws ClassNotFoundException
38
 
    {
39
 
        super(BaseConfig.class, defaults);
40
 
    }
41
 
 
42
 
    /** The Options customization */
43
 
    protected Class getCurrentClass()
44
 
    {
45
 
        return SwingConfig.getDisplayClass();
46
 
    }
47
 
 
48
 
    /** The Options customization */
49
 
    protected void setCurrentClass(Class new_class)
50
 
    {
51
 
        SwingConfig.setDisplayClass(new_class);
52
 
    }
53
 
 
54
 
    /** The default Configs */
55
 
    private static Hashtable defaults = new Hashtable();
56
 
 
57
 
    /**
58
 
    * Setup the defaults Hashtable
59
 
    */
60
 
    static
61
 
    {
62
 
        defaults.put("Tree", "com.eireneh.config.swing.TreeConfig");
63
 
        defaults.put("Tabbed", "com.eireneh.config.swing.TabbedConfig");
64
 
        defaults.put("Wizard", "com.eireneh.config.swing.WizardConfig");
65
 
        defaults.put("Advanced", "com.eireneh.config.swing.AdvancedConfig");
66
 
    }
67
 
}
68