Ignore:
Timestamp:
2005-06-03T15:21:06+12:00 (19 years ago)
Author:
mdewsnip
Message:

Moved Utility.getImage into JarTools, as part of tidying up the Utility class.

Location:
trunk/gli/src/org/greenstone/gatherer/cdm
Files:
6 edited

Legend:

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

    r9126 r10011  
    4242import org.greenstone.gatherer.gui.GComboBox;
    4343import org.greenstone.gatherer.gui.GLIButton;
     44import org.greenstone.gatherer.util.JarTools;
    4445import org.greenstone.gatherer.util.StaticStrings;
    4546import org.greenstone.gatherer.util.Utility;
     
    617618        JPanel move_button_pane = new JPanel();
    618619
    619         move_up_button = new JButton("", Utility.getImage("arrow-up.gif"));
     620        move_up_button = new JButton("", JarTools.getImage("arrow-up.gif"));
    620621        move_up_button.setEnabled(false);
    621622        move_up_button.setMnemonic(KeyEvent.VK_U);
    622         //move_up_button.setPreferredSize(Utility.DOUBLE_IMAGE_BUTTON_SIZE);
    623623        Dictionary.registerBoth(move_up_button, "CDM.Move.Move_Up", "CDM.Move.Move_Up_Tooltip");
    624624
    625         move_down_button = new JButton("", Utility.getImage("arrow-down.gif"));
     625        move_down_button = new JButton("", JarTools.getImage("arrow-down.gif"));
    626626        move_down_button.setEnabled(false);
    627627        move_down_button.setMnemonic(KeyEvent.VK_D);
    628         //move_down_button.setPreferredSize(Utility.DOUBLE_IMAGE_BUTTON_SIZE);
    629628        Dictionary.registerBoth(move_down_button, "CDM.Move.Move_Down", "CDM.Move.Move_Down_Tooltip");
    630629
  • trunk/gli/src/org/greenstone/gatherer/cdm/IndexManager.java

    r9997 r10011  
    4141import org.greenstone.gatherer.metadata.MetadataSetManager;
    4242import org.greenstone.gatherer.util.CheckList;
     43import org.greenstone.gatherer.util.JarTools;
    4344import org.greenstone.gatherer.util.StaticStrings;
    44 import org.greenstone.gatherer.util.Utility;
    4545import org.w3c.dom.*;
    4646/** This class is resposible for storing the indexes which have been assigned to this collection and the default index, and providing methods for interacting with both these data pools. It also knows how to turn itself into a String as it would be displayed in the collection configuration file.
     
    563563        JPanel movement_pane = new JPanel();
    564564
    565         move_up_button = new JButton("", Utility.getImage("arrow-up.gif"));
     565        move_up_button = new JButton("", JarTools.getImage("arrow-up.gif"));
    566566        move_up_button.setEnabled(false);
    567567        move_up_button.setMnemonic(KeyEvent.VK_U);
    568568        Dictionary.registerBoth(move_up_button, "CDM.Move.Move_Up", "CDM.Move.Move_Up_Tooltip");
    569569
    570         move_down_button = new JButton("", Utility.getImage("arrow-down.gif"));
     570        move_down_button = new JButton("", JarTools.getImage("arrow-down.gif"));
    571571        move_down_button.setEnabled(false);
    572572        move_down_button.setMnemonic(KeyEvent.VK_D);
     
    10701070        JPanel index_movement_panel = new JPanel();
    10711071
    1072         move_index_up_button = new JButton("", Utility.getImage("arrow-up.gif"));
     1072        move_index_up_button = new JButton("", JarTools.getImage("arrow-up.gif"));
    10731073        move_index_up_button.setEnabled(false);
    10741074        move_index_up_button.setMnemonic(KeyEvent.VK_U);
    10751075        Dictionary.registerBoth(move_index_up_button, "CDM.Move.Move_Up", "CDM.Move.Move_Up_Tooltip");
    10761076
    1077         move_index_down_button = new JButton("", Utility.getImage("arrow-down.gif"));
     1077        move_index_down_button = new JButton("", JarTools.getImage("arrow-down.gif"));
    10781078        move_index_down_button.setEnabled(false);
    10791079        move_index_down_button.setMnemonic(KeyEvent.VK_D);
     
    12021202        JPanel level_movement_panel = new JPanel();
    12031203
    1204         move_level_up_button = new JButton("", Utility.getImage("arrow-up.gif"));
     1204        move_level_up_button = new JButton("", JarTools.getImage("arrow-up.gif"));
    12051205        move_level_up_button.setEnabled(false);
    12061206        move_level_up_button.setMnemonic(KeyEvent.VK_U);
    1207         //move_level_up_button.setPreferredSize(Utility.DOUBLE_IMAGE_BUTTON_SIZE);
    12081207        Dictionary.registerBoth(move_level_up_button, "CDM.Move.Move_Up", "CDM.Move.Move_Up_Tooltip");
    12091208
    1210         move_level_down_button = new JButton("", Utility.getImage("arrow-down.gif"));
     1209        move_level_down_button = new JButton("", JarTools.getImage("arrow-down.gif"));
    12111210        move_level_down_button.setEnabled(false);
    12121211        move_level_down_button.setMnemonic(KeyEvent.VK_D);
    1213         //move_level_down_button.setPreferredSize(Utility.DOUBLE_IMAGE_BUTTON_SIZE);
    12141212        Dictionary.registerBoth(move_level_down_button, "CDM.Move.Move_Down", "CDM.Move.Move_Down_Tooltip");
    12151213
  • trunk/gli/src/org/greenstone/gatherer/cdm/LanguageManager.java

    r10006 r10011  
    2727package org.greenstone.gatherer.cdm;
    2828
    29 /**************************************************************************************
    30  * Written:      08/05/02
    31  * Revised:      17/11/02 - Commented
    32  *               07/07/03 - DOM support
    33  **************************************************************************************/
     29
    3430import java.awt.*;
    3531import java.awt.event.*;
     
    4339import org.greenstone.gatherer.Gatherer;
    4440import org.greenstone.gatherer.gui.GLIButton;
    45 import org.greenstone.gatherer.util.Utility;
     41import org.greenstone.gatherer.util.JarTools;
    4642import org.greenstone.gatherer.util.XMLTools;
    4743import org.w3c.dom.*;
     
    323319
    324320        JPanel movement_pane = new JPanel();
    325         move_up_button = new JButton("", Utility.getImage("arrow-up.gif"));
     321        move_up_button = new JButton("", JarTools.getImage("arrow-up.gif"));
    326322        move_up_button.setEnabled(false);
    327323        move_up_button.setMnemonic(KeyEvent.VK_U);
    328324        Dictionary.registerBoth(move_up_button, "CDM.Move.Move_Up", "CDM.Move.Move_Up_Tooltip");
    329325
    330         move_down_button = new JButton("", Utility.getImage("arrow-down.gif"));
     326        move_down_button = new JButton("", JarTools.getImage("arrow-down.gif"));
    331327        move_down_button.setEnabled(false);
    332328        move_down_button.setMnemonic(KeyEvent.VK_D);
  • trunk/gli/src/org/greenstone/gatherer/cdm/PluginManager.java

    r9991 r10011  
    4646import org.greenstone.gatherer.gui.ModalDialog;
    4747import org.greenstone.gatherer.gui.WarningDialog;
     48import org.greenstone.gatherer.util.JarTools;
    4849import org.greenstone.gatherer.util.StaticStrings;
    4950import org.greenstone.gatherer.util.Utility;
     
    747748        Dictionary.registerText(instructions, "CDM.PlugInManager.Instructions");
    748749
    749         move_up_button = new JButton("", Utility.getImage("arrow-up.gif"));
     750        move_up_button = new JButton("", JarTools.getImage("arrow-up.gif"));
    750751        move_up_button.setEnabled(false);
    751752        move_up_button.setMnemonic(KeyEvent.VK_U);
    752         //move_up_button.setPreferredSize(Utility.DOUBLE_IMAGE_BUTTON_SIZE);
    753753        Dictionary.registerBoth(move_up_button, "CDM.Move.Move_Up", "CDM.Move.Move_Up_Tooltip");
    754754
    755         move_down_button = new JButton("", Utility.getImage("arrow-down.gif"));
     755        move_down_button = new JButton("", JarTools.getImage("arrow-down.gif"));
    756756        move_down_button.setEnabled(false);
    757757        move_down_button.setMnemonic(KeyEvent.VK_D);
    758         //move_down_button.setPreferredSize(Utility.DOUBLE_IMAGE_BUTTON_SIZE);
    759758        Dictionary.registerBoth(move_down_button, "CDM.Move.Move_Down", "CDM.Move.Move_Down_Tooltip");
    760759
  • trunk/gli/src/org/greenstone/gatherer/cdm/SearchTypeManager.java

    r10008 r10011  
    4242import org.greenstone.gatherer.gui.GComboBox;
    4343import org.greenstone.gatherer.gui.GLIButton;
    44 import org.greenstone.gatherer.util.Utility;
     44import org.greenstone.gatherer.util.JarTools;
    4545import org.w3c.dom.*;
    4646
     
    229229        JPanel movement_panel = new JPanel();
    230230
    231         move_up_button = new JButton("", Utility.getImage("arrow-up.gif"));
     231        move_up_button = new JButton("", JarTools.getImage("arrow-up.gif"));
    232232        move_up_button.setEnabled(false);
    233233        move_up_button.setMnemonic(KeyEvent.VK_U);
     
    235235        Dictionary.registerBoth(move_up_button, "CDM.Move.Move_Up", "CDM.Move.Move_Up_Tooltip");
    236236
    237         move_down_button = new JButton("", Utility.getImage("arrow-down.gif"));
     237        move_down_button = new JButton("", JarTools.getImage("arrow-down.gif"));
    238238        move_down_button.setEnabled(false);
    239239        move_down_button.setMnemonic(KeyEvent.VK_D);
  • trunk/gli/src/org/greenstone/gatherer/cdm/SubcollectionIndexManager.java

    r9562 r10011  
    3737import org.greenstone.gatherer.gui.GLIButton;
    3838import org.greenstone.gatherer.util.CheckList;
    39 import org.greenstone.gatherer.util.Utility;
     39import org.greenstone.gatherer.util.JarTools;
    4040import org.w3c.dom.*;
    4141
     
    263263
    264264        JPanel movement_pane = new JPanel();
    265         move_up_button = new JButton("", Utility.getImage("arrow-up.gif"));
     265        move_up_button = new JButton("", JarTools.getImage("arrow-up.gif"));
    266266        move_up_button.setEnabled(false);
    267267        move_up_button.setMnemonic(KeyEvent.VK_U);
    268268        Dictionary.registerBoth(move_up_button, "CDM.Move.Move_Up", "CDM.Move.Move_Up_Tooltip");
    269269
    270         move_down_button = new JButton("", Utility.getImage("arrow-down.gif"));
     270        move_down_button = new JButton("", JarTools.getImage("arrow-down.gif"));
    271271        move_down_button.setEnabled(false);
    272272        move_down_button.setMnemonic(KeyEvent.VK_D);
Note: See TracChangeset for help on using the changeset viewer.