Changeset 12115 for trunk/gli/src/org/greenstone/gatherer/gui
- Timestamp:
- 2006-07-10T14:42:54+12:00 (18 years ago)
- 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 111 111 setJMenuBar(new SimpleMenuBar("reviewingmetadata")); 112 112 setSize(SIZE); 113 Dictionary.setText(this, "Autofilter.Title");114 113 setTitle(Dictionary.get("Autofilter.Title")); 114 115 115 // Creation 116 116 JPanel content_pane = (JPanel) getContentPane(); 117 117 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")); 120 119 JTextField name_template = new JTextField(); 121 120 name = new JLabel(); … … 124 123 JPanel value_pane = new JPanel(); 125 124 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")); 128 126 value = new JComboBox(); 129 127 value.setEditable(false); … … 136 134 first_value.addItem(""); 137 135 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")); 140 137 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")); 143 139 ButtonGroup operator_group = new ButtonGroup(); 144 and_radiobutton = new JRadioButton( );140 and_radiobutton = new JRadioButton(Dictionary.get("Autofilter.AND")); 145 141 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")); 148 143 none_radiobutton.setOpaque(false); 149 144 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")); 152 146 or_radiobutton.setOpaque(false); 153 Dictionary.setText(or_radiobutton, "Autofilter.OR");154 147 operator_group.add(none_radiobutton); 155 148 operator_group.add(and_radiobutton); … … 164 157 second_value.addItem(""); 165 158 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")); 168 160 JPanel lower_pane = new JPanel(); 169 161 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 174 165 ButtonGroup order_group = new ButtonGroup(); 175 ascending_radiobutton = new JRadioButton( );166 ascending_radiobutton = new JRadioButton(Dictionary.get("Autofilter.Ascending")); 176 167 ascending_radiobutton.setOpaque(false); 177 168 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")); 180 170 descending_radiobutton.setOpaque(false); 181 Dictionary.setText(descending_radiobutton, "Autofilter.Descending");182 171 order_group.add(ascending_radiobutton); 183 172 order_group.add(descending_radiobutton); … … 189 178 } 190 179 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 201 184 // Connection 202 185 and_radiobutton.addActionListener(new CheckListener(true)); -
trunk/gli/src/org/greenstone/gatherer/gui/metaaudit/MetaAuditFrame.java
r11629 r12115 111 111 setDefaultCloseOperation(JDialog.HIDE_ON_CLOSE); 112 112 setSize(SIZE); 113 setTitle(Dictionary.get("MetaAudit.Title")); 113 114 setJMenuBar(new SimpleMenuBar("reviewingmetadata")); 114 Dictionary.registerText(this, "MetaAudit.Title");115 115 116 JPanel content_pane = (JPanel) getContentPane(); 116 117 JPanel button_pane = new JPanel(); 117 118 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 122 121 // Connection 123 122 close_button.addActionListener(new CloseListener());
Note:
See TracChangeset
for help on using the changeset viewer.