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

Changed text handling to use Dictionary.get rather than Dictionary.setText or Dictionary.registerBoth etc

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

Legend:

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

    r9367 r12115  
    111111    setJMenuBar(new SimpleMenuBar("reviewingmetadata"));
    112112    setSize(SIZE);
    113     Dictionary.setText(this, "Autofilter.Title");
    114 
     113    setTitle(Dictionary.get("Autofilter.Title"));
     114   
    115115    // Creation
    116116    JPanel content_pane = (JPanel) getContentPane();
    117117    JPanel name_pane = new JPanel();
    118     JLabel name_label = new JLabel();
    119     Dictionary.setText(name_label, "Autofilter.Name");
     118    JLabel name_label = new JLabel(Dictionary.get("Autofilter.Name"));
    120119    JTextField name_template = new JTextField();
    121120    name = new JLabel();
     
    124123    JPanel value_pane = new JPanel();
    125124    JPanel inner_value_pane = new JPanel();
    126     JLabel value_label = new JLabel();
    127     Dictionary.setText(value_label, "Autofilter.eqeq");
     125    JLabel value_label = new JLabel(Dictionary.get("Autofilter.eqeq"));
    128126    value = new JComboBox();
    129127    value.setEditable(false);
     
    136134    first_value.addItem("");
    137135    first_value.setSelectedItem("");
    138     first_case = new JCheckBox();
    139     Dictionary.setText(first_case, "Autofilter.Case_Sensitive");
     136    first_case = new JCheckBox(Dictionary.get("Autofilter.Case_Sensitive"));
    140137    JPanel operator_pane = new JPanel();
    141     JLabel operator_label = new JLabel();
    142     Dictionary.setText(operator_label, "Autofilter.Operator");
     138    JLabel operator_label = new JLabel(Dictionary.get("Autofilter.Operator"));
    143139    ButtonGroup operator_group = new ButtonGroup();
    144     and_radiobutton = new JRadioButton();
     140    and_radiobutton = new JRadioButton(Dictionary.get("Autofilter.AND"));
    145141    and_radiobutton.setOpaque(false);
    146     Dictionary.setText(and_radiobutton, "Autofilter.AND");
    147     none_radiobutton = new JRadioButton();
     142    none_radiobutton = new JRadioButton(Dictionary.get("Autofilter.None"));
    148143    none_radiobutton.setOpaque(false);
    149144    none_radiobutton.setSelected(true);
    150     Dictionary.setText(none_radiobutton, "Autofilter.None");
    151     or_radiobutton = new JRadioButton();
     145    or_radiobutton = new JRadioButton(Dictionary.get("Autofilter.OR"));
    152146    or_radiobutton.setOpaque(false);
    153     Dictionary.setText(or_radiobutton, "Autofilter.OR");
    154147    operator_group.add(none_radiobutton);
    155148    operator_group.add(and_radiobutton);
     
    164157    second_value.addItem("");
    165158    second_value.setSelectedItem("");
    166     second_case = new JCheckBox();
    167     Dictionary.setText(second_case, "Autofilter.Case_Sensitive");
     159    second_case = new JCheckBox(Dictionary.get("Autofilter.Case_Sensitive"));
    168160    JPanel lower_pane = new JPanel();
    169161    JPanel order_pane = new JPanel();
    170     Dictionary.setTooltip(order_pane, "Autofilter.Order_Tooltip");
    171     JLabel order_label = new JLabel();
    172     Dictionary.setText(order_label, "Autofilter.Order");
    173 
     162    order_pane.setToolTipText(Dictionary.get("Autofilter.Order_Tooltip"));
     163    JLabel order_label = new JLabel(Dictionary.get("Autofilter.Order"));
     164   
    174165    ButtonGroup order_group = new ButtonGroup();
    175     ascending_radiobutton = new JRadioButton();
     166    ascending_radiobutton = new JRadioButton(Dictionary.get("Autofilter.Ascending"));
    176167    ascending_radiobutton.setOpaque(false);
    177168    ascending_radiobutton.setSelected(true);
    178     Dictionary.setText(ascending_radiobutton, "Autofilter.Ascending");
    179     descending_radiobutton = new JRadioButton();
     169    descending_radiobutton = new JRadioButton(Dictionary.get("Autofilter.Descending"));
    180170    descending_radiobutton.setOpaque(false);
    181     Dictionary.setText(descending_radiobutton, "Autofilter.Descending");
    182171    order_group.add(ascending_radiobutton);
    183172    order_group.add(descending_radiobutton);
     
    189178    }
    190179    JPanel button_pane = new JPanel();
    191     cancel_button = new GLIButton();
    192     cancel_button.setMnemonic(KeyEvent.VK_C);
    193     Dictionary.setBoth(cancel_button, "General.Cancel", "General.Pure_Cancel_Tooltip");
    194     remove_button = new GLIButton();
    195     remove_button.setMnemonic(KeyEvent.VK_R);
    196     Dictionary.setBoth(remove_button, "Autofilter.Remove", "Autofilter.Remove_Tooltip");
    197     set_button = new GLIButton();
    198     set_button.setMnemonic(KeyEvent.VK_S);
    199     Dictionary.setBoth(set_button, "Autofilter.Set", "Autofilter.Set_Tooltip");
    200 
     180    cancel_button = new GLIButton(Dictionary.get("General.Cancel"), Dictionary.get("General.Pure_Cancel_Tooltip"));
     181    remove_button = new GLIButton(Dictionary.get("Autofilter.Remove"), Dictionary.get("Autofilter.Remove_Tooltip"));
     182    set_button = new GLIButton(Dictionary.get("Autofilter.Set"), Dictionary.get("Autofilter.Set_Tooltip"));
     183   
    201184    // Connection
    202185    and_radiobutton.addActionListener(new CheckListener(true));
  • trunk/gli/src/org/greenstone/gatherer/gui/metaaudit/MetaAuditFrame.java

    r11629 r12115  
    111111    setDefaultCloseOperation(JDialog.HIDE_ON_CLOSE);
    112112    setSize(SIZE);
     113    setTitle(Dictionary.get("MetaAudit.Title"));
    113114    setJMenuBar(new SimpleMenuBar("reviewingmetadata"));
    114     Dictionary.registerText(this, "MetaAudit.Title");
     115   
    115116    JPanel content_pane = (JPanel) getContentPane();
    116117    JPanel button_pane = new JPanel();
    117118
    118     JButton close_button = new GLIButton();
    119     close_button.setMnemonic(KeyEvent.VK_C);
    120     Dictionary.registerBoth(close_button, "MetaAudit.Close", "MetaAudit.Close_Tooltip");
    121 
     119    JButton close_button = new GLIButton(Dictionary.get("MetaAudit.Close"), Dictionary.get("MetaAudit.Close_Tooltip"));
     120   
    122121    // Connection
    123122    close_button.addActionListener(new CloseListener());
Note: See TracChangeset for help on using the changeset viewer.