Ignore:
Timestamp:
2006-07-10T14:57:04+12:00 (18 years ago)
Author:
kjdon
Message:

Changed text handling to use Dictionary.get rather than Dictionary.setText or Dictionary.registerBoth etc. also removed mnemonics cos they suck for other languages

File:
1 edited

Legend:

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

    r10726 r12119  
    9292    public DeleteCollectionPrompt() {
    9393    super(Gatherer.g_man);
    94     close_button = new GLIButton();
    95     close_button.setMnemonic(KeyEvent.VK_C);
    96     Dictionary.setBoth(close_button, "General.Close", "General.Close_Tooltip");
    97     confirmation = new JCheckBox();
    98     Dictionary.setText(confirmation, "DeleteCollectionPrompt.Confirm_Delete");
    99     details = new JTextArea();
     94    close_button = new GLIButton(Dictionary.get("General.Close"), Dictionary.get("General.Close_Tooltip"));
     95   
     96    confirmation = new JCheckBox(Dictionary.get("DeleteCollectionPrompt.Confirm_Delete"));
     97    details = new JTextArea(Dictionary.get("DeleteCollectionPrompt.No_Collection"));
    10098    details.setEditable(false);
    101     Dictionary.setText(details, "DeleteCollectionPrompt.No_Collection");
    102     details_label = new JLabel();
    103     Dictionary.setText(details_label, "DeleteCollectionPrompt.Collection_Details");
     99    details_label = new JLabel(Dictionary.get("DeleteCollectionPrompt.Collection_Details"));
     100
    104101    list = new JList();
    105     list_label = new JLabel();
    106     Dictionary.setText(list_label, "DeleteCollectionPrompt.Collection_List");
     102    list_label = new JLabel(Dictionary.get("DeleteCollectionPrompt.Collection_List"));
     103   
    107104    list_model = new DefaultListModel();
    108     ok_button = new GLIButton();
    109     ok_button.setMnemonic(KeyEvent.VK_D);
    110     Dictionary.setBoth(ok_button, "DeleteCollectionPrompt.Delete", "DeleteCollectionPrompt.Delete_Tooltip");
     105    ok_button = new GLIButton(Dictionary.get("DeleteCollectionPrompt.Delete"), Dictionary.get("DeleteCollectionPrompt.Delete_Tooltip"));
     106   
    111107    prompt = this;
    112108    setModal(true);
    113109    setSize(SIZE);
    114     Dictionary.setText(this, "DeleteCollectionPrompt.Title");
    115 
     110    setTitle(Dictionary.get("DeleteCollectionPrompt.Title"));
     111   
    116112    setJMenuBar(new SimpleMenuBar("0")); // need to find an appropriate help page to open at
    117113    close_button.addActionListener(new CloseButtonListener());
     
    261257        args[1] = collection.getMaintainer();
    262258        args[2] = collection.getDescription();
    263         Dictionary.setText(details, "DeleteCollectionPrompt.Details", args);
     259        details.setText(Dictionary.get("DeleteCollectionPrompt.Details", args));
    264260        details.setCaretPosition(0);
    265261        }
    266262        else {
    267263        confirmation.setEnabled(false);
    268         Dictionary.setText(details, "DeleteCollectionPrompt.No_Collection");
     264        details.setText(Dictionary.get("DeleteCollectionPrompt.No_Collection"));
    269265        }
    270266    }
     
    315311
    316312        resultPrompt(true);
    317         Dictionary.setText(details, "DeleteCollectionPrompt.No_Collection");
     313        details.setText(Dictionary.get("DeleteCollectionPrompt.No_Collection"));
    318314        confirmation.setEnabled(false);
    319315        confirmation.setSelected(false);
Note: See TracChangeset for help on using the changeset viewer.