Changeset 4928


Ignore:
Timestamp:
2003-07-15T13:37:35+12:00 (21 years ago)
Author:
jmt12
Message:

Major CDM rewrite so it uses DOM.

Location:
trunk/gli/src/org/greenstone/gatherer
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/Configuration.java

    r4803 r4928  
    6868    public String proxy_user = null;
    6969    /** The language selected for the interface. Currently hard-wired. */
    70     public Language interface_language = new Language("en", "ENGLISH", true);
     70    public String interface_language = "en";
    7171    /** The screen size of the desktop the Gatherer will be displayed on. */
    7272    public Dimension screen_size = Toolkit.getDefaultToolkit().getScreenSize();
     
    608608    UIManager.put("ProgressBar.background", new ColorUIResource(getColor("coloring.collection_tree_background", false)));
    609609    UIManager.put("TextArea.background", new ColorUIResource(getColor("coloring.collection_tree_background", false)));
    610     UIManager.put("TextField.background", new ColorUIResource(getColor("coloring.editable_background", false)));
     610    UIManager.put("TextField.background", new ColorUIResource(getColor("coloring.editable", false)));
    611611    UIManager.put("Table.background", new ColorUIResource(getColor("coloring.collection_tree_background", false)));
    612612    UIManager.put("List.background", new ColorUIResource(getColor("coloring.collection_tree_background", false)));
  • trunk/gli/src/org/greenstone/gatherer/Dictionary.java

    r4675 r4928  
    216216    public void register(AbstractButton component, String[] args, boolean already_registered) {
    217217    if(component != null) {
    218                 // Determine the key
     218        // Determine the key
    219219        String key = "";
    220220        if(!already_registered) {
     
    224224        key = args[args.length - 1];
    225225        }
    226                 // Update the component using the AWTEvent queue
     226        // Update the component using the AWTEvent queue
    227227        String value = get(key, args);
    228228        String tooltip = get(key + "_Tooltip", (String[])null);
    229229        ChangeTask task = new AbstractButtonChangeTask(component, key, value, tooltip);
    230230        SwingUtilities.invokeLater(task);
    231                 // Register as necessary
     231        // Register as necessary
    232232        if(!already_registered) {
    233233        args = ArrayTools.add(args, key);
     
    239239    public void register(JComboBox component, String[] args, boolean already_registered) {
    240240    if(component != null) {
    241                 // If not already registered then args will be null.
     241        // If not already registered then args will be null.
    242242        if(!already_registered) {
    243243        args = new String[component.getItemCount()];
    244244        }
    245                 // Retrieve the tooltip. The key is mostly derived from the comboboxes name.
     245        // Retrieve the tooltip. The key is mostly derived from the comboboxes name.
    246246        String key = component.getName();
    247247        String tooltip = get(key + "_Tooltip", (String[])null);
    248248        ChangeTask task = new JComboBoxChangeTask(component, key, -1, tooltip);
    249249        SwingUtilities.invokeLater(task);
    250                 // Iterate through the combobox, updating values and recording the original key of each item in args.
     250        // Iterate through the combobox, updating values and recording the original key of each item in args.
    251251        for(int i = 0; i < args.length; i++) {
    252252        if(args[i] == null) {
Note: See TracChangeset for help on using the changeset viewer.