- Timestamp:
- 2009-01-22T11:04:31+13:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gli/trunk/src/org/greenstone/gatherer/cdm/IndexOptionManager.java
r18302 r18412 134 134 135 135 public IndexOptionControl() { 136 136 137 this.setComponentOrientation(Dictionary.getOrientation()); 137 138 stem_control = new StemmingControl(); 138 139 level_control = new LevelControl(); 139 140 140 141 setLayout(new BorderLayout()); 141 142 if (!build_type.equals(BuildTypeManager.BUILD_TYPE_LUCENE)) { … … 194 195 public StemmingControl() 195 196 { 197 this.setComponentOrientation(Dictionary.getOrientation()); 196 198 setLayout(new BorderLayout(10,10)); 197 199 setBorder(BorderFactory.createEmptyBorder(5,5,5,5)); … … 200 202 stem_checkbox.setToolTipText(Dictionary.get("CDM.IndexingManager.Stem_Tooltip")); 201 203 stem_checkbox.setActionCommand(StaticStrings.STEM_OPTION_STR); 202 204 stem_checkbox.setComponentOrientation(Dictionary.getOrientation()); 205 203 206 casefold_checkbox.setText(Dictionary.get("CDM.IndexingManager.Casefold")); 204 207 casefold_checkbox.setToolTipText(Dictionary.get("CDM.IndexingManager.Casefold_Tooltip")); 205 208 casefold_checkbox.setActionCommand(StaticStrings.CASEFOLD_OPTION_STR); 206 209 casefold_checkbox.setComponentOrientation(Dictionary.getOrientation()); 210 207 211 accentfold_checkbox.setText(Dictionary.get("CDM.IndexingManager.Accent_fold")); 208 212 accentfold_checkbox.setToolTipText(Dictionary.get("CDM.IndexingManager.Accent_fold_Tooltip")); … … 210 214 // Accent-folding is currently not available for MG 211 215 accentfold_checkbox.setEnabled(!build_type.equals(BuildTypeManager.BUILD_TYPE_MG)); 212 216 accentfold_checkbox.setComponentOrientation(Dictionary.getOrientation()); 217 213 218 separate_cjk_checkbox.setText(Dictionary.get("CDM.IndexingManager.Separate_cjk")); 214 219 separate_cjk_checkbox.setToolTipText(Dictionary.get("CDM.IndexingManager.Separate_cjk_Tooltip")); 215 220 separate_cjk_checkbox.setActionCommand(StaticStrings.SEPARATE_CJK_OPTION_STR); 216 221 separate_cjk_checkbox.setComponentOrientation(Dictionary.getOrientation()); 222 217 223 JPanel checkbox_panel = new JPanel(); 218 224 checkbox_panel.setLayout(new GridLayout(2, 1)); 219 225 checkbox_panel.setComponentOrientation(Dictionary.getOrientation()); 226 220 227 JPanel stem_panel = new JPanel(); 221 228 stem_panel.setLayout(new GridLayout(1,3)); … … 223 230 stem_panel.add(casefold_checkbox); 224 231 stem_panel.add(accentfold_checkbox); 225 232 stem_panel.setComponentOrientation(Dictionary.getOrientation()); 233 226 234 JPanel other_panel = new JPanel(); 227 235 other_panel.setLayout(new GridLayout(1,1)); 228 236 other_panel.add(separate_cjk_checkbox); 229 237 other_panel.setComponentOrientation(Dictionary.getOrientation()); 238 230 239 checkbox_panel.add(stem_panel); 231 240 checkbox_panel.add(other_panel); 232 233 add(new JLabel(Dictionary.get("CDM.IndexingManager.Options")), BorderLayout.WEST); 241 242 JLabel tmp = new JLabel(Dictionary.get("CDM.IndexingManager.Options")); 243 tmp.setComponentOrientation(Dictionary.getOrientation()); 244 add(tmp, BorderLayout.LINE_START); 234 245 add(checkbox_panel, BorderLayout.CENTER); 235 246 … … 327 338 328 339 public LevelControl() { 329 340 this.setComponentOrientation(Dictionary.getOrientation()); 330 341 JPanel checkbox_panel = new JPanel(); 342 checkbox_panel.setComponentOrientation(Dictionary.getOrientation()); 331 343 JPanel default_panel = new JPanel(); 344 default_panel.setComponentOrientation(Dictionary.getOrientation()); 332 345 document_checkbox = new JCheckBox(); 346 document_checkbox.setComponentOrientation(Dictionary.getOrientation()); 333 347 document_checkbox.setText(Dictionary.get("CDM.LevelManager.Document")); 334 348 document_checkbox.setActionCommand(StaticStrings.DOCUMENT_STR); … … 339 353 document_default_radio.setIcon(JarTools.getImage("radio_unselected.gif")); 340 354 document_default_radio.setSelectedIcon(JarTools.getImage("radio_selected.gif")); 341 355 document_default_radio.setComponentOrientation(Dictionary.getOrientation()); 356 342 357 section_checkbox = new JCheckBox(); 343 358 section_checkbox.setText(Dictionary.get("CDM.LevelManager.Section")); 344 359 section_checkbox.setActionCommand(StaticStrings.SECTION_STR); 360 section_checkbox.setComponentOrientation(Dictionary.getOrientation()); 361 345 362 section_default_radio = new JRadioButton(); 346 363 section_default_radio.setOpaque(true); … … 349 366 section_default_radio.setIcon(JarTools.getImage("radio_unselected.gif")); 350 367 section_default_radio.setSelectedIcon(JarTools.getImage("radio_selected.gif")); 351 368 section_default_radio.setComponentOrientation(Dictionary.getOrientation()); 369 352 370 section_default_radio.setActionCommand(StaticStrings.SECTION_STR); 353 371 ButtonGroup default_group = new ButtonGroup(); … … 401 419 checkbox_panel.add(document_checkbox); 402 420 checkbox_panel.add(section_checkbox); 403 421 checkbox_label.setComponentOrientation(Dictionary.getOrientation()); 422 404 423 JLabel default_label = new JLabel(Dictionary.get("CDM.LevelManager.Default")); 405 424 default_panel.setLayout(new GridLayout(3,1)); … … 408 427 default_panel.add(document_default_radio); 409 428 default_panel.add(section_default_radio); 410 429 default_label.setComponentOrientation(Dictionary.getOrientation()); 411 430 412 431 CheckBoxListener cbl = new CheckBoxListener(); … … 425 444 setLayout(new BorderLayout(10,10)); 426 445 setBorder(BorderFactory.createEmptyBorder(5,5,5,5)); 427 add(checkbox_panel, BorderLayout. WEST);446 add(checkbox_panel, BorderLayout.LINE_START); 428 447 add(default_panel, BorderLayout.CENTER); 429 448 } // LevelControl
Note:
See TracChangeset
for help on using the changeset viewer.