Changeset 18412
- Timestamp:
- 2009-01-22T11:04:31+13:00 (15 years ago)
- Location:
- gli/trunk/src/org/greenstone/gatherer
- Files:
-
- 28 edited
Legend:
- Unmodified
- Added
- Removed
-
gli/trunk/src/org/greenstone/gatherer/cdm/BuildTypeManager.java
r13073 r18412 103 103 public BuildTypeControl() { 104 104 super(); 105 105 this.setComponentOrientation(Dictionary.getOrientation()); 106 106 107 JPanel spacer_panel = new JPanel(); 107 108 spacer_panel.setComponentOrientation(Dictionary.getOrientation()); 109 108 110 JPanel main_panel = new JPanel(); 111 main_panel.setComponentOrientation(Dictionary.getOrientation()); 109 112 /* may be CDM.BuildTypeManager.mg, CDM.BuildTYpeManager.mgpp, CDM.BuildTypeManager.lucene */ 110 113 label = new JLabel(Dictionary.get("CDM.BuildTypeManager.Current_Type", getBuildTypeString(getBuildType()))); 111 change_button = new GLIButton(Dictionary.get("CDM.BuildTypeManager.Change"), Dictionary.get("CDM.BuildTypeManager.Change_Tooltip")); 114 label.setComponentOrientation(Dictionary.getOrientation()); 115 116 change_button = new GLIButton(Dictionary.get("CDM.BuildTypeManager.Change"), Dictionary.get("CDM.BuildTypeManager.Change_Tooltip")); 112 117 113 118 change_button.addActionListener(new ActionListener() { … … 119 124 main_panel.setLayout(new BorderLayout(10,10)); 120 125 main_panel.add(label, BorderLayout.CENTER); 121 main_panel.add(change_button, BorderLayout. EAST);126 main_panel.add(change_button, BorderLayout.LINE_END); 122 127 123 128 setBorder(BorderFactory.createEmptyBorder(0,5,0,0)); 124 129 setLayout(new BorderLayout()); 125 130 add(spacer_panel, BorderLayout.CENTER); 126 add(main_panel, BorderLayout. EAST);131 add(main_panel, BorderLayout.LINE_END); 127 132 128 133 manager.addBuildTypeListener(this); … … 171 176 setSize(DIALOG_SIZE); 172 177 setTitle(Dictionary.get("CDM.BuildTypeManager.Title")); 173 178 this.setComponentOrientation(Dictionary.getOrientation()); 174 179 mg_button = new JRadioButton(BUILD_TYPE_MG_STR); 180 mg_button.setComponentOrientation(Dictionary.getOrientation()); 175 181 mg_button.setActionCommand(BUILD_TYPE_MG); 176 182 mgpp_button = new JRadioButton(BUILD_TYPE_MGPP_STR); 183 mgpp_button.setComponentOrientation(Dictionary.getOrientation()); 177 184 mgpp_button.setActionCommand(BUILD_TYPE_MGPP); 178 185 lucene_button = new JRadioButton(BUILD_TYPE_LUCENE_STR); 186 lucene_button.setComponentOrientation(Dictionary.getOrientation()); 179 187 lucene_button.setActionCommand(BUILD_TYPE_LUCENE); 180 188 … … 188 196 build_type_group.add(mg_button); 189 197 build_type_group.add(lucene_button); 190 198 191 199 if (current_build_type != null) { 192 200 if (current_build_type.equals(BUILD_TYPE_MGPP)) { … … 204 212 radio_pane.add(mg_button); 205 213 radio_pane.add(lucene_button); 206 214 radio_pane.setComponentOrientation(Dictionary.getOrientation()); 215 207 216 description_textarea = new JTextArea(); 208 217 description_textarea.setBorder(BorderFactory.createEmptyBorder(5,5,5,5)); … … 211 220 description_textarea.setLineWrap(true); 212 221 description_textarea.setWrapStyleWord(true); 213 cancel_button = new GLIButton(Dictionary.get("General.Cancel"), Dictionary.get("General.Cancel_Tooltip")); 222 description_textarea.setComponentOrientation(Dictionary.getOrientation()); 223 224 cancel_button = new GLIButton(Dictionary.get("General.Cancel"), Dictionary.get("General.Cancel_Tooltip")); 214 225 215 226 cancel_button.addActionListener(new ActionListener() { … … 244 255 button_pane.add(ok_button); 245 256 button_pane.add(cancel_button); 246 257 button_pane.setComponentOrientation(Dictionary.getOrientation()); 258 247 259 JPanel content_pane = (JPanel) getContentPane(); 248 260 content_pane.setOpaque(true); … … 251 263 content_pane.add(new JScrollPane(description_textarea), BorderLayout.CENTER); 252 264 content_pane.add(button_pane, BorderLayout.SOUTH); 253 265 content_pane.setComponentOrientation(Dictionary.getOrientation()); 266 254 267 // Center and display. 255 268 Dimension screen_size = Configuration.screen_size; -
gli/trunk/src/org/greenstone/gatherer/cdm/ClassifierManager.java
r14036 r18412 289 289 public ClassifierControl () { 290 290 // Create 291 this.setComponentOrientation(Dictionary.getOrientation()); 291 292 add = new GLIButton (Dictionary.get ("CDM.ClassifierManager.Add"), Dictionary.get ("CDM.ClassifierManager.Add_Tooltip")); 292 293 293 294 JPanel button_pane = new JPanel (); 295 button_pane.setComponentOrientation(Dictionary.getOrientation()); 294 296 JPanel central_pane = new JPanel (); 297 central_pane.setComponentOrientation(Dictionary.getOrientation()); 295 298 296 299 configure = new GLIButton (Dictionary.get ("CDM.ClassifierManager.Configure"), Dictionary.get ("CDM.ClassifierManager.Configure_Tooltip")); … … 301 304 ClassifierComboboxListener ccl = new ClassifierComboboxListener (); 302 305 classifier_combobox = new JComboBox (getAvailableClassifiers ()); 306 classifier_combobox.setComponentOrientation(Dictionary.getOrientation()); 303 307 classifier_combobox.setOpaque (!Utility.isMac ()); 304 308 classifier_combobox.setEditable (false); … … 309 313 310 314 JLabel classifier_label = new JLabel (Dictionary.get ("CDM.ClassifierManager.Classifier")); 315 classifier_label.setComponentOrientation(Dictionary.getOrientation()); 311 316 312 317 classifier_list = new JList (model); 318 classifier_list.setComponentOrientation(Dictionary.getOrientation()); 319 313 320 classifier_list.setOpaque (true); 314 321 classifier_list.setSelectionMode (ListSelectionModel.SINGLE_SELECTION); 315 322 JLabel classifier_list_label = new JLabel (Dictionary.get ("CDM.ClassifierManager.Assigned")); 323 classifier_list_label.setComponentOrientation(Dictionary.getOrientation()); 316 324 317 325 classifier_list_label.setOpaque (true); 318 326 319 327 JPanel classifier_list_pane = new JPanel (); 328 classifier_list_pane.setComponentOrientation(Dictionary.getOrientation()); 329 320 330 JPanel classifier_pane = new JPanel (); 331 classifier_pane.setComponentOrientation(Dictionary.getOrientation()); 321 332 remove = new GLIButton (Dictionary.get ("CDM.ClassifierManager.Remove"), Dictionary.get ("CDM.ClassifierManager.Remove_Tooltip")); 322 333 remove.setEnabled (false); 323 334 324 335 JPanel temp = new JPanel (new BorderLayout ()); 336 temp.setComponentOrientation(Dictionary.getOrientation()); 325 337 326 338 JPanel move_button_pane = new JPanel (); 339 move_button_pane.setComponentOrientation(Dictionary.getOrientation()); 327 340 328 341 move_up_button = new GLIButton (Dictionary.get ("CDM.Move.Move_Up"), JarTools.getImage ("arrow-up.gif"), Dictionary.get ("CDM.Move.Move_Up_Tooltip")); … … 349 362 350 363 // Layout 364 JPanel tmp; 351 365 move_button_pane.setLayout (new GridLayout (4,1)); 352 366 move_button_pane.add (move_up_button); 353 move_button_pane.add (new JPanel ()); 354 move_button_pane.add (new JPanel ()); 367 tmp = new JPanel (); 368 tmp.setComponentOrientation(Dictionary.getOrientation()); 369 move_button_pane.add (tmp); 370 tmp = new JPanel (); 371 tmp.setComponentOrientation(Dictionary.getOrientation()); 372 move_button_pane.add (tmp); 355 373 move_button_pane.add (move_down_button); 356 374 … … 360 378 classifier_list_pane.add (classifier_list_label, BorderLayout.NORTH); 361 379 classifier_list_pane.add (new JScrollPane (classifier_list), BorderLayout.CENTER); 362 classifier_list_pane.add (move_button_pane, BorderLayout. EAST);380 classifier_list_pane.add (move_button_pane, BorderLayout.LINE_END); 363 381 364 382 classifier_label.setBorder (BorderFactory.createEmptyBorder (0,0,5,0)); … … 366 384 classifier_pane.setBorder (BorderFactory.createEmptyBorder (5,0,5,0)); 367 385 classifier_pane.setLayout (new BorderLayout (5,0)); 368 classifier_pane.add (classifier_label, BorderLayout. WEST);386 classifier_pane.add (classifier_label, BorderLayout.LINE_START); 369 387 classifier_pane.add (classifier_combobox, BorderLayout.CENTER); 370 388 -
gli/trunk/src/org/greenstone/gatherer/cdm/DepositorMetadataManager.java
r16680 r18412 122 122 public DepositorControl() { 123 123 super(); 124 124 this.setComponentOrientation(Dictionary.getOrientation()); 125 125 JPanel header_panel = new DesignPaneHeader("CDM.GUI.DepositorMetadata", "depositormetadatasettings"); 126 126 … … 129 129 130 130 central_pane = new JPanel(); 131 central_pane.setComponentOrientation(Dictionary.getOrientation()); 131 132 central_pane.setBorder(BorderFactory.createEmptyBorder(5,5,5,5)); 132 133 central_pane.setLayout(new BoxLayout(central_pane, BoxLayout.Y_AXIS)); … … 136 137 137 138 JPanel collection_checklist_pane = new JPanel(); 139 collection_checklist_pane.setComponentOrientation(Dictionary.getOrientation()); 138 140 collection_checklist_pane.setBorder(BorderFactory.createEmptyBorder(5,0,0,0)); 139 141 collection_checklist_pane.setLayout(new BorderLayout()); … … 328 330 329 331 public MetadataElementControl (MetadataElementEntry entry, String background_color_name) { 330 332 333 this.setComponentOrientation(Dictionary.getOrientation()); 331 334 String tip = "<html>" + entry.tooltip + "</html>"; 332 335 tip = Utility.formatHTMLWidth(tip, 80); -
gli/trunk/src/org/greenstone/gatherer/cdm/GeneralManager.java
r17612 r18412 129 129 public GeneralControl() { 130 130 super(); 131 this.setComponentOrientation(Dictionary.getOrientation()); 131 132 // Retrieve some of the model elements, those we know aren't language dependant 132 133 public_collectionmeta = new CollectionMeta(CollectionDesignManager.collect_config.getPublic()); … … 134 135 // Creation 135 136 JPanel header_panel = new DesignPaneHeader("CDM.GUI.General", "generalsettings"); 136 137 137 138 JPanel all_details_panel = new JPanel(); 138 139 JPanel details_panel = new JPanel(); 139 140 JPanel fields_panel = new JPanel(); 140 141 142 all_details_panel.setComponentOrientation(Dictionary.getOrientation()); 143 details_panel.setComponentOrientation(Dictionary.getOrientation()); 144 fields_panel.setComponentOrientation(Dictionary.getOrientation()); 145 141 146 creator_label = new JLabel(Dictionary.get("CDM.General.Email.Creator")); 142 147 creator_label.setComponentOrientation(Dictionary.getOrientation()); 148 143 149 creator_emailfield = new EmailField(Configuration.getColor("coloring.error_background", false)); 144 150 creator_emailfield.setToolTipText(Dictionary.get("CDM.General.Email.Creator_Tooltip")); 145 151 146 152 maintainer_label = new JLabel(Dictionary.get("CDM.General.Email.Maintainer")); 147 153 maintainer_label.setComponentOrientation(Dictionary.getOrientation()); 154 148 155 maintainer_emailfield = new EmailField(Configuration.getColor("coloring.error_background", false)); 149 156 maintainer_emailfield.setToolTipText(Dictionary.get("CDM.General.Email.Maintainer_Tooltip")); 150 157 151 158 name_label = new JLabel(Dictionary.get("CDM.General.Collection_Name")); 159 name_label.setComponentOrientation(Dictionary.getOrientation()); 152 160 name_textfield = new JTextField(); 161 name_textfield.setComponentOrientation(Dictionary.getOrientation()); 153 162 name_textfield.setToolTipText(Dictionary.get("CDM.General.Collection_Name_Tooltip")); 154 163 155 164 JLabel short_name_label = new JLabel(Dictionary.get("NewCollectionPrompt.Collection_Name")); 156 JTextField short_name_textfield = new JTextField(CollectionManager.getLoadedCollectionName()); 165 short_name_label.setComponentOrientation(Dictionary.getOrientation()); 166 JTextField short_name_textfield = new JTextField(CollectionManager.getLoadedCollectionName()); 167 short_name_textfield.setComponentOrientation(Dictionary.getOrientation()); 157 168 short_name_textfield.setEditable(false); 158 169 short_name_textfield.setBackground(Configuration.getColor("coloring.collection_tree_background", false)); 159 170 JPanel icon_panel = new JPanel(); 171 icon_panel.setComponentOrientation(Dictionary.getOrientation()); 160 172 icon_label = new JLabel(Dictionary.get("CDM.General.Icon_Collection")); 173 icon_label.setComponentOrientation(Dictionary.getOrientation()); 161 174 icon_textfield = new JTextField(); 175 icon_textfield.setComponentOrientation(Dictionary.getOrientation()); 162 176 icon_textfield.setToolTipText(Dictionary.get("CDM.General.Icon_Collection_Tooltip")); 163 177 browse_about_icon_button = new GLIButton(Dictionary.get("General.Browse")); 164 178 JPanel small_icon_panel = new JPanel(); 179 small_icon_panel.setComponentOrientation(Dictionary.getOrientation()); 165 180 small_icon_label = new JLabel(Dictionary.get("CDM.General.Icon_Collection_Small")); 181 small_icon_label.setComponentOrientation(Dictionary.getOrientation()); 166 182 small_icon_textfield = new JTextField(); 183 small_icon_textfield.setComponentOrientation(Dictionary.getOrientation()); 167 184 small_icon_textfield.setToolTipText(Dictionary.get("CDM.General.Icon_Collection_Small_Tooltip")); 168 185 browse_home_icon_button = new GLIButton(Dictionary.get("General.Browse")); … … 170 187 // public 171 188 JPanel box_panel = new JPanel(); 189 box_panel.setComponentOrientation(Dictionary.getOrientation()); 172 190 public_checkbox = new JCheckBox(Dictionary.get("CDM.General.Access"), public_collectionmeta.getValue(CollectionMeta.TEXT).equals(StaticStrings.TRUE_STR)); 173 191 public_checkbox.setComponentOrientation(Dictionary.getOrientation()); 192 174 193 JPanel description_panel = new JPanel(); 194 description_panel.setComponentOrientation(Dictionary.getOrientation()); 175 195 description_label = new JLabel(Dictionary.get("CDM.General.Collection_Extra")); 176 196 description_label.setComponentOrientation(Dictionary.getOrientation()); 197 177 198 description_textarea = new JTextArea(); 199 description_textarea.setComponentOrientation(Dictionary.getOrientation()); 178 200 description_textarea.setBackground(Configuration.getColor("coloring.editable_background", false)); 179 201 description_textarea.setToolTipText(Dictionary.get("CDM.General.Collection_Extra_Tooltip")); … … 198 220 199 221 JPanel fields_label_panel = new JPanel(); 222 fields_label_panel.setComponentOrientation(Dictionary.getOrientation()); 200 223 fields_label_panel.setLayout(new GridLayout(6,1)); 201 224 202 225 JPanel fields_box_panel = new JPanel(); 226 fields_box_panel.setComponentOrientation(Dictionary.getOrientation()); 203 227 fields_box_panel.setLayout(new GridLayout(6,1)); 204 228 … … 227 251 fields_box_panel.add(small_icon_panel); 228 252 229 fields_panel.add(fields_label_panel, BorderLayout. WEST);253 fields_panel.add(fields_label_panel, BorderLayout.LINE_START); 230 254 fields_panel.add(fields_box_panel, BorderLayout.CENTER); 231 255 232 256 icon_panel.setLayout(new BorderLayout()); 233 257 icon_panel.add(icon_textfield, BorderLayout.CENTER); 234 icon_panel.add(browse_about_icon_button, BorderLayout. EAST);258 icon_panel.add(browse_about_icon_button, BorderLayout.LINE_END); 235 259 236 260 small_icon_panel.setLayout(new BorderLayout()); 237 261 small_icon_panel.add(small_icon_textfield, BorderLayout.CENTER); 238 small_icon_panel.add(browse_home_icon_button, BorderLayout. EAST);262 small_icon_panel.add(browse_home_icon_button, BorderLayout.LINE_END); 239 263 240 264 box_panel.setLayout(new GridLayout(1,1,5,2)); -
gli/trunk/src/org/greenstone/gatherer/cdm/IndexManager.java
r14232 r18412 434 434 public IndexControl() { 435 435 super(); 436 436 this.setComponentOrientation(Dictionary.getOrientation()); 437 437 // Creation 438 438 JPanel assigned_indexes_pane = new JPanel(); 439 439 assigned_indexes_pane.setComponentOrientation(Dictionary.getOrientation()); 440 440 441 JLabel index_label = new JLabel(Dictionary.get("CDM.IndexManager.Indexes")); 442 index_label.setComponentOrientation(Dictionary.getOrientation()); 443 441 444 index_list = new JList(index_model); 442 445 index_list.setCellRenderer(new IndexListRenderer()); 443 446 index_list.setVisibleRowCount(6); 444 447 index_list.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); 445 index_list.addMouseListener(new ClickListener()); 446 448 index_list.addMouseListener(new ClickListener()); 449 index_list.setComponentOrientation(Dictionary.getOrientation()); 450 447 451 JPanel movement_pane = new JPanel(); 452 movement_pane.setComponentOrientation(Dictionary.getOrientation()); 453 448 454 move_up_button = new GLIButton(Dictionary.get("CDM.Move.Move_Up"), JarTools.getImage("arrow-up.gif"), Dictionary.get("CDM.Move.Move_Up_Tooltip")); 449 move_up_button.setEnabled(false); 450 455 move_up_button.setEnabled(false); 456 451 457 move_down_button = new GLIButton(Dictionary.get("CDM.Move.Move_Down"), JarTools.getImage("arrow-down.gif"), Dictionary.get("CDM.Move.Move_Down_Tooltip")); 452 458 move_down_button.setEnabled(false); … … 456 462 457 463 JPanel button_pane = new JPanel(); 458 new_button = new GLIButton(Dictionary.get("CDM.IndexManager.New_Index")+StaticStrings.FURTHER_DIALOG_INDICATOR, Dictionary.get("CDM.IndexManager.New_Index_Tooltip")); 464 button_pane.setComponentOrientation(Dictionary.getOrientation()); 465 466 new_button = new GLIButton(Dictionary.get("CDM.IndexManager.New_Index")+StaticStrings.FURTHER_DIALOG_INDICATOR, Dictionary.get("CDM.IndexManager.New_Index_Tooltip")); 459 467 new_button.setEnabled(true); 460 468 … … 490 498 assigned_indexes_pane.add(index_label, BorderLayout.NORTH); 491 499 assigned_indexes_pane.add(new JScrollPane(index_list), BorderLayout.CENTER); 492 assigned_indexes_pane.add(movement_pane, BorderLayout. EAST);500 assigned_indexes_pane.add(movement_pane, BorderLayout.LINE_END); 493 501 494 502 button_pane.setLayout(new GridLayout(1,3,5,0)); … … 672 680 public NewIndexPrompt(String build_type, Index existing_index) { 673 681 super(Gatherer.g_man, true); 682 this.setComponentOrientation(Dictionary.getOrientation()); 683 674 684 new_index_prompt = this; 675 685 … … 688 698 } 689 699 JPanel content_pane = (JPanel)this.getContentPane(); 700 content_pane.setComponentOrientation(Dictionary.getOrientation()); 690 701 ArrayList new_data = new ArrayList(); 691 702 new_data.addAll(MetadataSetManager.getEveryMetadataSetElement()); 692 703 693 704 JPanel details_pane = new JPanel(); 705 details_pane.setComponentOrientation(Dictionary.getOrientation()); 694 706 695 707 text_checkbox = new JCheckBox(Dictionary.get("CDM.IndexManager.Text_Source")); 696 708 text_checkbox.setToolTipText(Dictionary.get("CDM.IndexManager.Text_Source_Tooltip")); 709 text_checkbox.setComponentOrientation(Dictionary.getOrientation()); 697 710 text_checkbox.addActionListener(new ActionListener() { 698 711 public void actionPerformed(ActionEvent event) { … … 701 714 }); 702 715 JLabel source_label = new JLabel(Dictionary.get("CDM.IndexManager.Source")); 703 source_list = new CheckList(false); 716 source_label.setComponentOrientation(Dictionary.getOrientation()); 717 source_list = new CheckList(false); 704 718 source_list.setListData(new_data); 705 719 source_list.setToolTipText(Dictionary.get("CDM.IndexManager.Source_Tooltip")); … … 708 722 JPanel button_pane = new JPanel(); 709 723 button_pane.setBorder(BorderFactory.createEmptyBorder(5,5,5,5)); 710 724 button_pane.setComponentOrientation(Dictionary.getOrientation()); 725 711 726 if (existing_index == null && mgpp_enabled) { 712 727 button_pane.setLayout(new GridLayout(2,3,5,0)); 713 button_pane.add(new JPanel()); 728 JPanel tmp = new JPanel(); 729 tmp.setComponentOrientation(Dictionary.getOrientation()); 730 button_pane.add(tmp); 714 731 } else { 715 732 button_pane.setLayout(new GridLayout(2,2,5,0)); … … 781 798 allfields_box = new JCheckBox(Dictionary.get("CDM.IndexManager.Allfields_Index")); 782 799 allfields_box.addItemListener(new AllFieldsBoxListener()); 783 //JLabel allfields_label = new JLabel(Dictionary.get("CDM.IndexManager.Allfields_Index")); 800 allfields_box.setComponentOrientation(Dictionary.getOrientation()); 801 //JLabel allfields_label = new JLabel(Dictionary.get("CDM.IndexManager.Allfields_Index")); 784 802 details_pane.add(allfields_box, BorderLayout.SOUTH); 785 803 … … 788 806 // index level 789 807 JLabel level_label = new JLabel(Dictionary.get("CDM.IndexManager.Level")); 790 level_combobox = new JComboBox(); 808 level_label.setComponentOrientation(Dictionary.getOrientation()); 809 810 level_combobox = new JComboBox(); 791 811 level_combobox.setOpaque(false); 792 812 level_combobox.setPreferredSize(FIELD_SIZE); … … 798 818 level_combobox.setEditable(false); 799 819 level_combobox.setToolTipText(Dictionary.get("CDM.IndexManager.Level_Tooltip")); 800 level_combobox.addActionListener(new ActionListener() { 820 level_combobox.setComponentOrientation(Dictionary.getOrientation()); 821 level_combobox.addActionListener(new ActionListener() { 801 822 public void actionPerformed(ActionEvent event) { 802 823 validateAddOrReplaceButton(); … … 804 825 }); 805 826 JPanel level_pane = new JPanel(); 827 level_pane.setComponentOrientation(Dictionary.getOrientation()); 806 828 level_pane.setLayout(new BorderLayout()); 807 level_pane.add(level_label, BorderLayout. WEST);829 level_pane.add(level_label, BorderLayout.LINE_START); 808 830 level_pane.add(level_combobox, BorderLayout.CENTER); 809 831 details_pane.add(level_pane, BorderLayout.SOUTH); -
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 -
gli/trunk/src/org/greenstone/gatherer/cdm/IndexingManager.java
r13058 r18412 133 133 public IndexingControl() { 134 134 super(); 135 135 this.setComponentOrientation(Dictionary.getOrientation()); 136 136 // Creation 137 137 JPanel header_pane = new DesignPaneHeader("CDM.GUI.Indexes", "searchindexes"); … … 140 140 JPanel index_panel = (JPanel)index_manager.getControls(); 141 141 index_options_panel = (JPanel)option_manager.getControls(); 142 142 143 143 144 main_index_pane = new JPanel(); 144 145 main_index_pane.setLayout(new BorderLayout()); … … 146 147 main_index_pane.add(index_panel, BorderLayout.CENTER); 147 148 main_index_pane.add(index_options_panel, BorderLayout.SOUTH); 148 149 main_index_pane.setComponentOrientation(Dictionary.getOrientation()); 150 149 151 setBorder(BorderFactory.createEmptyBorder(0,5,0,0)); 150 152 setLayout(new BorderLayout()); -
gli/trunk/src/org/greenstone/gatherer/cdm/LanguageManager.java
r14744 r18412 306 306 super(); 307 307 // Creation. 308 this.setComponentOrientation(Dictionary.getOrientation()); 308 309 JPanel center_panel = new JPanel(); 309 310 center_panel.setComponentOrientation(Dictionary.getOrientation()); 311 310 312 JLabel selected_languages_list_label = new JLabel(Dictionary.get("CDM.LanguageManager.Assigned_Languages")); 311 313 selected_languages_list = new JList(model); … … 313 315 selected_languages_list.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); 314 316 selected_languages_list.setVisibleRowCount(5); 315 317 selected_languages_list.setComponentOrientation(Dictionary.getOrientation()); 318 316 319 JPanel control_panel = new JPanel(); 317 320 control_panel.setComponentOrientation(Dictionary.getOrientation()); 321 318 322 JPanel labels_pane = new JPanel(); 319 JLabel selector_label = new JLabel(Dictionary.get("CDM.LanguageManager.Selector")); 323 labels_pane.setComponentOrientation(Dictionary.getOrientation()); 324 JLabel selector_label = new JLabel(Dictionary.get("CDM.LanguageManager.Selector")); 325 selector_label.setComponentOrientation(Dictionary.getOrientation()); 320 326 select_all_button = new GLIButton(Dictionary.get("CDM.IndexManager.Select_All"), Dictionary.get("CDM.IndexManager.Select_All_Tooltip")); 321 327 select_none_button = new GLIButton(Dictionary.get("CDM.IndexManager.Select_None"), Dictionary.get("CDM.IndexManager.Select_None_Tooltip")); … … 324 330 language_metadata_combo.setOpaque(false); 325 331 language_metadata_combo.setToolTipText(Dictionary.get("CDM.LanguageManager.LanguageMetadata_Tooltip")); 326 JLabel language_metadata_label = new JLabel(Dictionary.get("CDM.LanguageManager.LanguageMetadata")); 332 language_metadata_combo.setComponentOrientation(Dictionary.getOrientation()); 333 334 JLabel language_metadata_label = new JLabel(Dictionary.get("CDM.LanguageManager.LanguageMetadata")); 335 language_metadata_label.setComponentOrientation(Dictionary.getOrientation()); 336 327 337 String current_value = "ex.Language"; 328 338 if (language_metadata.getAttribute(StaticStrings.ASSIGNED_ATTRIBUTE).equals(StaticStrings.TRUE_STR) && !language_metadata.getAttribute(StaticStrings.NAME_ATTRIBUTE).equals("")) { … … 339 349 340 350 JPanel movement_pane = new JPanel(); 341 move_up_button = new GLIButton(Dictionary.get("CDM.Move.Move_Up"), JarTools.getImage("arrow-up.gif"), Dictionary.get("CDM.Move.Move_Up_Tooltip")); 351 movement_pane.setComponentOrientation(Dictionary.getOrientation()); 352 353 move_up_button = new GLIButton(Dictionary.get("CDM.Move.Move_Up"), JarTools.getImage("arrow-up.gif"), Dictionary.get("CDM.Move.Move_Up_Tooltip")); 342 354 move_up_button.setEnabled(false); 343 355 … … 349 361 350 362 JPanel button_panel = new JPanel(); 351 363 button_panel.setComponentOrientation(Dictionary.getOrientation()); 364 352 365 add_button = new GLIButton(Dictionary.get("CDM.SubcollectionIndexManager.Add_Subindex"), Dictionary.get("CDM.LanguageManager.Add_Tooltip")); 353 366 add_button.setEnabled(false); … … 394 407 395 408 JPanel metadata_panel = new JPanel(); 409 metadata_panel.setComponentOrientation(Dictionary.getOrientation()); 396 410 metadata_panel.setLayout(new BorderLayout()); 397 411 JPanel inner_panel = new JPanel(); 412 inner_panel.setComponentOrientation(Dictionary.getOrientation()); 398 413 inner_panel.setLayout(new BorderLayout(10,10)); 399 inner_panel.add(language_metadata_label, BorderLayout. WEST);414 inner_panel.add(language_metadata_label, BorderLayout.LINE_START); 400 415 inner_panel.add(language_metadata_combo, BorderLayout.CENTER); 401 416 metadata_panel.add(new JPanel(), BorderLayout.CENTER); 402 metadata_panel.add(inner_panel, BorderLayout. EAST);417 metadata_panel.add(inner_panel, BorderLayout.LINE_END); 403 418 404 419 movement_pane.setBorder(BorderFactory.createEmptyBorder(0,2,0,0)); … … 439 454 labels_pane.add(select_none_button); 440 455 441 control_panel.add(labels_pane, BorderLayout. WEST);456 control_panel.add(labels_pane, BorderLayout.LINE_START); 442 457 443 458 control_panel.add(new JScrollPane(language_list), BorderLayout.CENTER); … … 447 462 center_panel.add(selected_languages_list_label, BorderLayout.NORTH); 448 463 center_panel.add(new JScrollPane(selected_languages_list), BorderLayout.CENTER); 449 center_panel.add(movement_pane, BorderLayout. EAST);464 center_panel.add(movement_pane, BorderLayout.LINE_END); 450 465 451 466 JPanel top_panel = new JPanel(); 452 top_panel.setLayout(new BorderLayout()); 467 top_panel.setComponentOrientation(Dictionary.getOrientation()); 468 top_panel.setLayout(new BorderLayout()); 453 469 top_panel.add(metadata_panel, BorderLayout.NORTH); 454 470 top_panel.add(center_panel, BorderLayout.SOUTH); -
gli/trunk/src/org/greenstone/gatherer/cdm/MacrosManager.java
r17612 r18412 104 104 public MacrosControl() { 105 105 super(); 106 107 JPanel header_pane = new DesignPaneHeader("CDM.GUI.Macros", "collectionspecificmacros"); 108 106 this.setComponentOrientation(Dictionary.getOrientation()); 107 108 JPanel header_pane = new DesignPaneHeader("CDM.GUI.Macros", "collectionspecificmacros"); 109 109 JPanel main_pane = new JPanel(); 110 main_pane.setLayout(new BorderLayout()); 110 main_pane.setComponentOrientation(Dictionary.getOrientation()); 111 main_pane.setLayout(new BorderLayout()); 111 112 macros_textarea = new JTextArea(); 113 macros_textarea.setComponentOrientation(Dictionary.getOrientation()); 112 114 macros_textarea.setBackground(Configuration.getColor("coloring.editable_background", false)); 113 115 macros_textarea.setLineWrap(false); … … 126 128 127 129 JPanel macros_pane = new JPanel(); 130 macros_pane.setComponentOrientation(Dictionary.getOrientation()); 128 131 macros_pane.setBorder(BorderFactory.createEmptyBorder(5,0,5,0)); 129 132 macros_pane.setLayout(new BorderLayout()); … … 138 141 139 142 JPanel button_pane = new JPanel(); 140 button_pane.setLayout(new GridLayout(1,2)); 143 button_pane.setComponentOrientation(Dictionary.getOrientation()); 144 button_pane.setLayout(new GridLayout(1,2)); 141 145 button_pane.add(undo_button); 142 146 button_pane.add(redo_button); -
gli/trunk/src/org/greenstone/gatherer/cdm/PluginManager.java
r17752 r18412 471 471 button_pane = new JPanel(); 472 472 central_pane = new JPanel(); 473 473 button_pane.setComponentOrientation(Dictionary.getOrientation()); 474 central_pane.setComponentOrientation(Dictionary.getOrientation()); 475 474 476 configure = new GLIButton(Dictionary.get("CDM.PlugInManager.Configure"), Dictionary.get("CDM.PlugInManager.Configure_Tooltip")); 475 477 configure.setEnabled(false); … … 483 485 484 486 movement_pane = new JPanel(); 485 487 movement_pane.setComponentOrientation(Dictionary.getOrientation()); 488 486 489 PluginComboboxListener picl = new PluginComboboxListener(); 487 490 plugin_combobox = new JComboBox(getAvailablePlugins()); 488 491 plugin_combobox.setOpaque(!Utility.isMac()); 489 492 plugin_combobox.setEditable(false); 493 plugin_combobox.setComponentOrientation(Dictionary.getOrientation()); 494 490 495 picl.itemStateChanged(new ItemEvent(plugin_combobox, 0, null, ItemEvent.SELECTED)); 491 496 492 497 plugin_label = new JLabel(Dictionary.get("CDM.PlugInManager.PlugIn")); 493 498 plugin_label.setComponentOrientation(Dictionary.getOrientation()); 499 494 500 plugin_list = new JList(model); 495 501 plugin_list.setOpaque(true); 496 502 plugin_list.setCellRenderer(new ListRenderer()); 497 503 plugin_list.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); 498 plugin_list_label = new JLabel(Dictionary.get("CDM.PlugInManager.Assigned")); 504 plugin_list.setComponentOrientation(Dictionary.getOrientation()); 505 506 plugin_list_label = new JLabel(Dictionary.get("CDM.PlugInManager.Assigned")); 499 507 //plugin_list_label.setHorizontalAlignment(JLabel.CENTER); 500 508 plugin_list_label.setOpaque(true); 501 509 plugin_list_label.setComponentOrientation(Dictionary.getOrientation()); 510 502 511 plugin_list_pane = new JPanel(); 512 plugin_list_pane.setComponentOrientation(Dictionary.getOrientation()); 513 503 514 plugin_pane = new JPanel(); 504 515 plugin_pane.setOpaque(true); 505 516 plugin_pane.setComponentOrientation(Dictionary.getOrientation()); 517 506 518 remove = new GLIButton(Dictionary.get("CDM.PlugInManager.Remove"), Dictionary.get("CDM.PlugInManager.Remove_Tooltip")); 507 519 remove.setEnabled(false); … … 526 538 movement_pane.setLayout(new GridLayout(4,1)); 527 539 movement_pane.add(move_up_button); 528 movement_pane.add(new JPanel()); 529 movement_pane.add(new JPanel()); 540 JPanel tmp = new JPanel(); 541 tmp.setComponentOrientation(Dictionary.getOrientation()); 542 movement_pane.add(tmp); 543 tmp = new JPanel(); 544 tmp.setComponentOrientation(Dictionary.getOrientation()); 545 movement_pane.add(tmp); 530 546 movement_pane.add(move_down_button); 531 547 … … 539 555 plugin_pane.setBorder(BorderFactory.createEmptyBorder(5,0,5,0)); 540 556 plugin_pane.setLayout(new BorderLayout(5,0)); 541 plugin_pane.add(plugin_label, BorderLayout. WEST);557 plugin_pane.add(plugin_label, BorderLayout.LINE_START); 542 558 plugin_pane.add(plugin_combobox, BorderLayout.CENTER); 543 559 … … 551 567 temp.add(plugin_pane, BorderLayout.NORTH); 552 568 temp.add(button_pane, BorderLayout.SOUTH); 553 569 temp.setComponentOrientation(Dictionary.getOrientation()); 570 554 571 central_pane.setBorder(BorderFactory.createEmptyBorder(5,0,0,0)); 555 572 central_pane.setLayout(new BorderLayout()); … … 915 932 setSize(size); 916 933 setTitle(Dictionary.get("CDM.PluginManager.SuggestedPluginListTitle")); 917 934 this.setComponentOrientation(Dictionary.getOrientation()); 935 918 936 String[] args = new String[1]; 919 937 args[0] = filename; … … 925 943 instructions_textarea.setRows(5); 926 944 instructions_textarea.setWrapStyleWord(true); 927 945 instructions_textarea.setComponentOrientation(Dictionary.getOrientation()); 946 928 947 JLabel suitable_plugins_label = new JLabel(Dictionary.get("CDM.PlugInManager.PlugIn")); 929 948 suitable_plugins_label.setBorder(BorderFactory.createEmptyBorder(0,0,5,0)); 930 949 suitable_plugins_label.setComponentOrientation(Dictionary.getOrientation()); 950 931 951 suitable_plugins_combobox = new GComboBox(suitable_plugins); 932 952 suitable_plugins_combobox.setBackgroundNonSelectionColor(Configuration.getColor("coloring.editable_background", false)); … … 934 954 suitable_plugins_combobox.setTextNonSelectionColor(Configuration.getColor("coloring.workspace_tree_foreground", false)); 935 955 suitable_plugins_combobox.setTextSelectionColor(Configuration.getColor("coloring.collection_selection_foreground", false)); 936 956 suitable_plugins_combobox.setComponentOrientation(Dictionary.getOrientation()); 957 937 958 JPanel suitable_plugins_pane = new JPanel(); 959 suitable_plugins_pane.setComponentOrientation(Dictionary.getOrientation()); 938 960 //suitable_plugins_pane.setBorder(BorderFactory.createEmptyBorder(5,0,5,0)); 939 961 suitable_plugins_pane.setLayout(new BorderLayout(5,0)); 940 suitable_plugins_pane.add(suitable_plugins_label, BorderLayout. WEST);962 suitable_plugins_pane.add(suitable_plugins_label, BorderLayout.LINE_START); 941 963 suitable_plugins_pane.add(suitable_plugins_combobox, BorderLayout.CENTER); 942 964 … … 951 973 button_pane.add(add_button); 952 974 button_pane.add(ignore_button); 953 975 button_pane.setComponentOrientation(Dictionary.getOrientation()); 976 954 977 JPanel controls_pane = new JPanel(); 955 978 controls_pane.setBorder(BorderFactory.createEmptyBorder(5,0,0,0)); … … 957 980 controls_pane.add(suitable_plugins_pane); 958 981 controls_pane.add(button_pane); 959 982 controls_pane.setComponentOrientation(Dictionary.getOrientation()); 983 960 984 JPanel content_pane = (JPanel) getContentPane(); 985 content_pane.setComponentOrientation(Dictionary.getOrientation()); 961 986 content_pane.setBorder(BorderFactory.createEmptyBorder(5,5,5,5)); 962 987 content_pane.setLayout(new BorderLayout()); -
gli/trunk/src/org/greenstone/gatherer/cdm/SearchMetadataManager.java
r16879 r18412 88 88 public DisplayControl() { 89 89 super(); 90 90 this.setComponentOrientation(Dictionary.getOrientation()); 91 91 JPanel header_panel = new DesignPaneHeader("CDM.GUI.SearchMetadata", "searchmetadatasettings"); 92 92 … … 98 98 99 99 JPanel metadata_table_pane = new JPanel(); 100 metadata_table_pane.setComponentOrientation(Dictionary.getOrientation()); 100 101 metadata_table_pane.setBorder(BorderFactory.createEmptyBorder(5,0,0,0)); 101 102 metadata_table_pane.setLayout(new BorderLayout()); -
gli/trunk/src/org/greenstone/gatherer/cdm/SubcollectionIndexManager.java
r14742 r18412 264 264 { 265 265 super(); 266 266 this.setComponentOrientation(Dictionary.getOrientation()); 267 267 ArrayList sources = new ArrayList(); 268 268 ListModel source_model = CollectionDesignManager.subcollection_manager; … … 273 273 // Creation 274 274 JPanel assigned_indexes_pane = new JPanel(); 275 assigned_indexes_pane.setComponentOrientation(Dictionary.getOrientation()); 275 276 JLabel index_label = new JLabel(Dictionary.get("CDM.SubcollectionIndexManager.Subindexes")); 277 index_label.setComponentOrientation(Dictionary.getOrientation()); 276 278 subcollection_index_list = new JList(model); 277 279 subcollection_index_list.setCellRenderer(new SubcollectionIndexListCellRenderer()); 278 280 subcollection_index_list.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); 279 281 subcollection_index_list.setVisibleRowCount(2); 280 282 subcollection_index_list.setComponentOrientation(Dictionary.getOrientation()); 283 281 284 JPanel movement_pane = new JPanel(); 282 move_up_button = new GLIButton(Dictionary.get("CDM.Move.Move_Up"), JarTools.getImage("arrow-up.gif"), Dictionary.get("CDM.Move.Move_Up_Tooltip")); 285 movement_pane.setComponentOrientation(Dictionary.getOrientation()); 286 move_up_button = new GLIButton(Dictionary.get("CDM.Move.Move_Up"), JarTools.getImage("arrow-up.gif"), Dictionary.get("CDM.Move.Move_Up_Tooltip")); 283 287 move_up_button.setEnabled(false); 284 288 … … 290 294 291 295 JPanel index_pane = new JPanel(); 296 index_pane.setComponentOrientation(Dictionary.getOrientation()); 292 297 JPanel details_pane = new JPanel(); 293 298 details_pane.setComponentOrientation(Dictionary.getOrientation()); 294 299 JPanel labels_pane = new JPanel(); 295 300 labels_pane.setComponentOrientation(Dictionary.getOrientation()); 301 296 302 select_all_button = new GLIButton(Dictionary.get("CDM.IndexManager.Select_All"), Dictionary.get("CDM.IndexManager.Select_All_Tooltip")); 297 303 select_none_button = new GLIButton(Dictionary.get("CDM.IndexManager.Select_None"), Dictionary.get("CDM.IndexManager.Select_None_Tooltip")); … … 299 305 300 306 JPanel boxes_pane = new JPanel(); 301 JPanel content_pane = new JPanel(); 302 307 boxes_pane.setComponentOrientation(Dictionary.getOrientation()); 308 JPanel content_pane = new JPanel(); 309 content_pane.setComponentOrientation(Dictionary.getOrientation()); 310 303 311 JLabel source_label = new JLabel(Dictionary.get("CDM.SubcollectionIndexManager.Source")); 304 312 source_label.setComponentOrientation(Dictionary.getOrientation()); 313 305 314 source_list = new CheckList(false); 306 315 source_list.setListData(sources); … … 311 320 312 321 JPanel button_pane = new JPanel(); 313 add_button = new GLIButton(Dictionary.get("CDM.SubcollectionIndexManager.Add_Subindex"), Dictionary.get("CDM.SubcollectionIndexManager.Add_Subindex_Tooltip")); 322 button_pane.setComponentOrientation(Dictionary.getOrientation()); 323 324 add_button = new GLIButton(Dictionary.get("CDM.SubcollectionIndexManager.Add_Subindex"), Dictionary.get("CDM.SubcollectionIndexManager.Add_Subindex_Tooltip")); 314 325 add_button.setEnabled(false); 315 326 … … 353 364 assigned_indexes_pane.add(index_label, BorderLayout.NORTH); 354 365 assigned_indexes_pane.add(new JScrollPane(subcollection_index_list), BorderLayout.CENTER); 355 assigned_indexes_pane.add(movement_pane, BorderLayout. EAST);366 assigned_indexes_pane.add(movement_pane, BorderLayout.LINE_END); 356 367 357 368 labels_pane.setLayout(new BorderLayout()); … … 388 399 389 400 details_pane.setLayout(new BorderLayout()); 390 details_pane.add(labels_pane, BorderLayout. WEST);401 details_pane.add(labels_pane, BorderLayout.LINE_START); 391 402 details_pane.add(boxes_pane, BorderLayout.CENTER); 392 403 -
gli/trunk/src/org/greenstone/gatherer/cdm/SubcollectionManager.java
r13195 r18412 178 178 border_pane = new JPanel(); 179 179 card_layout = new CardLayout(); 180 180 border_pane.setComponentOrientation(Dictionary.getOrientation()); 181 182 181 183 tabbed_pane = new JTabbedPane(); 182 184 tabbed_pane.addChangeListener(this); 183 185 tabbed_pane.setComponentOrientation(Dictionary.getOrientation()); 186 184 187 JPanel button_pane_3 = new JPanel(); 185 add_button = new GLIButton(Dictionary.get("CDM.SubcollectionManager.Add"), Dictionary.get("CDM.SubcollectionManager.Add_Tooltip")); 188 button_pane_3.setComponentOrientation(Dictionary.getOrientation()); 189 add_button = new GLIButton(Dictionary.get("CDM.SubcollectionManager.Add"), Dictionary.get("CDM.SubcollectionManager.Add_Tooltip")); 186 190 add_button.setEnabled(false); 187 191 … … 193 197 194 198 JPanel button_pane = new JPanel(); 199 button_pane.setComponentOrientation(Dictionary.getOrientation()); 195 200 JPanel button_pane_1 = new JPanel(); 201 button_pane_1.setComponentOrientation(Dictionary.getOrientation()); 196 202 include_button = new JRadioButton(Dictionary.get("CDM.SubcollectionManager.Include")); 197 include_button.setBackground(Configuration.getColor("coloring.collection_tree_background", false)); 203 include_button.setComponentOrientation(Dictionary.getOrientation()); 204 include_button.setBackground(Configuration.getColor("coloring.collection_tree_background", false)); 198 205 include_button.setOpaque(false); 199 206 … … 201 208 exclude_button.setBackground(Configuration.getColor("coloring.collection_tree_background", false)); 202 209 exclude_button.setOpaque(false); 203 210 exclude_button.setComponentOrientation(Dictionary.getOrientation()); 211 204 212 JLabel flags_label = new JLabel(Dictionary.get("CDM.SubcollectionManager.Flags")); 205 213 flags_label.setComponentOrientation(Dictionary.getOrientation()); 214 206 215 flags_field = new NonWhitespaceField(); 207 216 flags_field.setToolTipText(Dictionary.get("CDM.SubcollectionManager.Flags_Tooltip")); 208 217 flags_field.setComponentOrientation(Dictionary.getOrientation()); 218 209 219 JPanel inclusive_pane = new JPanel(); 220 inclusive_pane.setComponentOrientation(Dictionary.getOrientation()); 210 221 JLabel inclusive_label = new JLabel(Dictionary.get("CDM.SubcollectionManager.Inclusive")); 211 222 inclusive_label.setComponentOrientation(Dictionary.getOrientation()); 223 212 224 JLabel match_label = new JLabel(Dictionary.get("CDM.SubcollectionManager.Match")); 213 225 match_label.setComponentOrientation(Dictionary.getOrientation()); 226 214 227 match_field = new JTextField(); 215 228 match_field.setToolTipText(Dictionary.get("CDM.SubcollectionManager.Match_Tooltip")); 216 229 match_field.setComponentOrientation(Dictionary.getOrientation()); 230 217 231 JLabel name_label = new JLabel(Dictionary.get("CDM.SubcollectionManager.Name")); 218 232 name_label.setComponentOrientation(Dictionary.getOrientation()); 233 219 234 name_field = new NonWhitespaceField(); 220 235 name_field.setToolTipText(Dictionary.get("CDM.SubcollectionManager.Name_Tooltip")); 221 236 222 237 JLabel source_label = new JLabel(Dictionary.get("CDM.SubcollectionManager.Source")); 223 238 source_label.setComponentOrientation(Dictionary.getOrientation()); 239 224 240 ArrayList every_metadata_set_element = MetadataSetManager.getEveryMetadataSetElement(); 225 241 Vector source_model = new Vector(every_metadata_set_element); 226 242 source_model.add(0, StaticStrings.FILENAME_STR); 227 243 source_combobox = new JComboBox(source_model); 244 source_combobox.setComponentOrientation(Dictionary.getOrientation()); 228 245 source_combobox.setOpaque(false); 229 246 source_combobox.setToolTipText(Dictionary.get("CDM.SubcollectionManager.Source_Tooltip")); … … 232 249 subcollection_list.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); 233 250 JPanel subcollection_pane = new JPanel(); 251 subcollection_pane.setComponentOrientation(Dictionary.getOrientation()); 234 252 ButtonGroup bg = new ButtonGroup(); 235 253 bg.add(include_button); … … 237 255 include_button.setSelected(true); 238 256 JPanel subcollection_list_pane = new JPanel(); 257 subcollection_list_pane.setComponentOrientation(Dictionary.getOrientation()); 239 258 JLabel subcollection_list_label = new JLabel(Dictionary.get("CDM.SubcollectionManager.Assigned")); 240 259 subcollection_list_label.setComponentOrientation(Dictionary.getOrientation()); 241 260 // Create a message pane which explains why these controls are not currently active 242 261 JPanel message_pane = new JPanel(); 262 message_pane.setComponentOrientation(Dictionary.getOrientation()); 263 243 264 String args[] = new String[3]; 244 265 args[0] = Configuration.getModeAsString(); … … 246 267 args[2] = Dictionary.get("Preferences.Mode.Expert"); 247 268 JTextArea message_textarea = new JTextArea(Dictionary.get("CDM.SubcollectionManager.Partitions_Disabled", args)); 248 269 message_textarea.setComponentOrientation(Dictionary.getOrientation()); 270 249 271 message_textarea.setEditable(false); 250 272 message_textarea.setHighlighter(null); // Prevent highlighting … … 307 329 tabbed_pane.addTab(Dictionary.get("CDM.SubcollectionManager.Subindex_Controls"), (JPanel) CollectionDesignManager.subcollectionindex_manager.getControls()); 308 330 tabbed_pane.addTab(Dictionary.get("CDM.SubcollectionManager.Language_Controls"), (JPanel) CollectionDesignManager.language_manager.getControls()); 309 331 JPanel tmp ; 310 332 message_pane.setBorder(BorderFactory.createEmptyBorder(0,5,5,5)); 311 333 message_pane.setLayout(new GridLayout(3,1,0,0)); 312 message_pane.add(new JPanel()); 334 tmp =new JPanel(); 335 tmp.setComponentOrientation(Dictionary.getOrientation()); 336 message_pane.add(tmp); 313 337 message_pane.add(message_textarea); 314 message_pane.add(new JPanel()); 338 tmp = new JPanel(); 339 tmp.setComponentOrientation(Dictionary.getOrientation()); 340 message_pane.add(tmp); 315 341 316 342 border_pane.setLayout(card_layout); -
gli/trunk/src/org/greenstone/gatherer/cdm/SuperCollectionManager.java
r14041 r18412 42 42 import org.greenstone.gatherer.util.Utility; 43 43 import org.greenstone.gatherer.gui.DesignPaneHeader; 44 import org.greenstone.gatherer.Dictionary; 44 45 import org.w3c.dom.*; 45 46 … … 125 126 SuperCollectionControl() { 126 127 super(); 127 128 this.setComponentOrientation(Dictionary.getOrientation()); 128 129 // Creation 129 130 JPanel header_panel = new DesignPaneHeader("CDM.GUI.SuperCollection", "xcollectionsearching"); … … 134 135 135 136 JPanel collection_checklist_pane = new JPanel(); 137 collection_checklist_pane.setComponentOrientation(Dictionary.getOrientation()); 136 138 collection_checklist_pane.setBorder(BorderFactory.createEmptyBorder(5,0,0,0)); 137 139 collection_checklist_pane.setLayout(new BorderLayout()); -
gli/trunk/src/org/greenstone/gatherer/cdm/TranslationView.java
r13195 r18412 195 195 196 196 TranslationControl() { 197 this.setComponentOrientation(Dictionary.getOrientation()); 197 198 fragment_table_model = new FragmentTableModel("", new TreeSet(), new ArrayList()); 198 199 // Creation … … 200 201 201 202 JPanel center_panel = new JPanel(); 202 203 center_panel.setComponentOrientation(Dictionary.getOrientation()); 204 203 205 JPanel selection_panel = new JPanel(); 204 206 selection_panel.setComponentOrientation(Dictionary.getOrientation()); 207 205 208 JPanel component_selection_panel = new JPanel(); 209 component_selection_panel.setComponentOrientation(Dictionary.getOrientation()); 210 206 211 JLabel component_label = new JLabel(Dictionary.get("CDM.TranslationManager.Affected_Features")); 207 208 212 component_label.setComponentOrientation(Dictionary.getOrientation()); 213 209 214 Object[] features = getFeaturesList(); 210 215 features_list = new JList(features); … … 215 220 216 221 JPanel fragment_selection_panel = new JPanel(); 217 JLabel fragment_label = new JLabel(Dictionary.get("CDM.TranslationManager.Assigned_Fragments")); 222 fragment_selection_panel.setComponentOrientation(Dictionary.getOrientation()); 223 JLabel fragment_label = new JLabel(Dictionary.get("CDM.TranslationManager.Assigned_Fragments")); 224 fragment_label.setComponentOrientation(Dictionary.getOrientation()); 218 225 219 226 fragment_table = new JTable(fragment_table_model); 227 fragment_table.setComponentOrientation(Dictionary.getOrientation()); 220 228 fragment_table.setAutoResizeMode(JTable.AUTO_RESIZE_LAST_COLUMN); 221 229 fragment_table.setBackground(Configuration.getColor("coloring.collection_tree_background", false)); … … 229 237 230 238 JPanel south_panel = new JPanel(); 231 239 south_panel.setComponentOrientation(Dictionary.getOrientation()); 240 232 241 JPanel text_panel = new JPanel(); 233 242 text_panel.setComponentOrientation(Dictionary.getOrientation()); 243 234 244 JPanel language_panel = new JPanel(); 245 language_panel.setComponentOrientation(Dictionary.getOrientation()); 246 235 247 JLabel language_label = new JLabel(Dictionary.get("CDM.TranslationManager.Language")); 236 248 language_label.setComponentOrientation(Dictionary.getOrientation()); 249 237 250 language_combobox = new JComboBox(CollectionDesignManager.language_manager.getLanguageCodes().toArray()); 238 251 language_combobox.setOpaque(!Utility.isMac()); … … 240 253 language_combobox.setRenderer(new LanguageListCellRenderer()); 241 254 language_combobox.setToolTipText(Dictionary.get("CDM.TranslationManager.Language_Tooltip")); 242 255 language_combobox.setComponentOrientation(Dictionary.getOrientation()); 256 243 257 JPanel default_text_panel = new JPanel(); 258 default_text_panel.setComponentOrientation(Dictionary.getOrientation()); 244 259 JLabel default_label = new JLabel(Dictionary.get("CDM.TranslationManager.Default_Text")); 245 260 default_label.setComponentOrientation(Dictionary.getOrientation()); 246 261 default_area = new JTextArea(); 262 default_area.setComponentOrientation(Dictionary.getOrientation()); 247 263 default_area.setBackground(Configuration.getColor("coloring.collection_tree_background", false)); 248 264 default_area.setEditable(false); … … 251 267 252 268 JPanel translated_text_panel = new JPanel(); 269 translated_text_panel.setComponentOrientation(Dictionary.getOrientation()); 253 270 JLabel translation_label = new JLabel(Dictionary.get("CDM.TranslationManager.Translation")); 254 271 translation_label.setComponentOrientation(Dictionary.getOrientation()); 255 272 translation_area = new JTextArea(); 273 translation_area.setComponentOrientation(Dictionary.getOrientation()); 256 274 translation_area.setBackground(Configuration.getColor("coloring.disabled", false)); 257 275 translation_area.setEnabled(false); … … 261 279 262 280 JPanel button_pane = new JPanel(); 281 button_pane.setComponentOrientation(Dictionary.getOrientation()); 263 282 add_button = new GLIButton(Dictionary.get("CDM.TranslationManager.Add"), Dictionary.get("CDM.TranslationManager.Add_Tooltip")); 264 283 add_button.setEnabled(false); … … 307 326 308 327 language_panel.setLayout(new BorderLayout(5,0)); 309 language_panel.add(language_label, BorderLayout. WEST);328 language_panel.add(language_label, BorderLayout.LINE_START); 310 329 language_panel.add(language_combobox, BorderLayout.CENTER); 311 330 -
gli/trunk/src/org/greenstone/gatherer/collection/CollectionManager.java
r17994 r18412 326 326 String file_name = ""; 327 327 328 if (Configuration.fedora_info .isActive()) { // FLI case328 if (Configuration.fedora_info != null && Configuration.fedora_info.isActive()) { // FLI case 329 329 // Fedora build 330 330 //file_name = getLoadedCollectionArchivesDirectoryPath() + "import.inf"; -
gli/trunk/src/org/greenstone/gatherer/gems/AttributeTable.java
r12658 r18412 64 64 super(); 65 65 setRowHeight(20); 66 this.setComponentOrientation(Dictionary.getOrientation()); 67 metadata_value_text_field.setComponentOrientation(Dictionary.getOrientation()); 66 68 language_dependent = lang_dependent; 67 69 -
gli/trunk/src/org/greenstone/gatherer/gems/DeleteMetadataSetPrompt.java
r12679 r18412 72 72 public DeleteMetadataSetPrompt(Frame parent,MetadataSetManager msm) { 73 73 super(parent, true); 74 75 74 self = this; 76 75 meta_manager = msm; … … 82 81 JPanel content_pane = (JPanel) getContentPane(); 83 82 content_pane.setOpaque(true); 84 83 content_pane.setComponentOrientation(Dictionary.getOrientation()); 85 84 86 85 JLabel available_metadata_sets_label = new JLabel(Dictionary.get("GEMS.DeleteMetadataSetPrompt.Available_Sets")); 87 86 available_metadata_sets_label.setOpaque(true); 87 available_metadata_sets_label.setComponentOrientation(Dictionary.getOrientation()); 88 88 89 89 list_model = new DefaultListModel(); … … 95 95 available_set_list.setFixedCellHeight(20); 96 96 available_set_list.addListSelectionListener(new MetadataSetListSelectionListener()); 97 97 available_set_list.setComponentOrientation(Dictionary.getOrientation()); 98 98 99 JPanel set_pane = new JPanel(); 100 set_pane.setComponentOrientation(Dictionary.getOrientation()); 99 101 set_pane.setLayout(new BorderLayout()); 100 102 set_pane.add(available_metadata_sets_label,BorderLayout.NORTH); … … 110 112 description_textarea.setLineWrap(true); 111 113 description_textarea.setWrapStyleWord(true); 112 114 description_textarea.setComponentOrientation(Dictionary.getOrientation()); 115 113 116 JPanel des_pane = new JPanel(); 117 des_pane.setComponentOrientation(Dictionary.getOrientation()); 114 118 des_pane.setLayout(new BorderLayout()); 115 119 des_pane.add(metadata_set_des_label,BorderLayout.NORTH); … … 117 121 118 122 JPanel button_pane = new JPanel(); 123 button_pane.setComponentOrientation(Dictionary.getOrientation()); 119 124 delete_button = new GLIButton(Dictionary.get("GEMS.DeleteMetadataSetPrompt.Delete"), Dictionary.get("GEMS.DeleteMetadataSetPrompt.Delete_Tooltip")); 120 125 delete_button.setEnabled(false); … … 124 129 confirmation.setEnabled(false); 125 130 confirmation.setSelected(false); 126 131 confirmation.setComponentOrientation(Dictionary.getOrientation()); 132 127 133 close_button = new GLIButton(Dictionary.get("General.Close"), Dictionary.get("General.Close_Tooltip")); 128 134 close_button.setEnabled(true); … … 151 157 152 158 JPanel bottom_pane = new JPanel(); 159 bottom_pane.setComponentOrientation(Dictionary.getOrientation()); 153 160 bottom_pane.setLayout(new BorderLayout()); 154 161 bottom_pane.add(confirmation,BorderLayout.NORTH); … … 212 219 public MetadatSetListCellRenderer() { 213 220 setOpaque(true); 221 this.setComponentOrientation(Dictionary.getOrientation()); 214 222 } 215 223 -
gli/trunk/src/org/greenstone/gatherer/gems/MetadataSetTree.java
r12836 r18412 63 63 protected JFrame parent_frame; 64 64 public MetadataSetTree(JFrame parent){ 65 65 this.setComponentOrientation(Dictionary.getOrientation()); 66 66 setCellRenderer(new MetadataSetCellRenderer()); 67 67 setRowHeight(20); -
gli/trunk/src/org/greenstone/gatherer/gems/NewMetadataElementNamePrompt.java
r12838 r18412 62 62 JPanel content_pane = (JPanel) getContentPane(); 63 63 content_pane.setOpaque(true); 64 64 content_pane.setComponentOrientation(Dictionary.getOrientation()); 65 65 66 JLabel name_label = new JLabel(); 66 if (subelement) { 67 name_label.setComponentOrientation(Dictionary.getOrientation()); 68 if (subelement) { 67 69 setTitle(Dictionary.get("GEMS.NewMetadataElementNamePrompt.SubTitle")); 68 70 name_label.setText(Dictionary.get("GEMS.NewMetadataElementNamePrompt.SubName")); … … 73 75 74 76 name_textfield = new JTextField(); 75 77 name_textfield.setComponentOrientation(Dictionary.getOrientation()); 76 78 name_textfield.addKeyListener(new KeyAdapter() { 77 79 public void keyPressed(KeyEvent e) { … … 84 86 85 87 JPanel details_pane = new JPanel(); 88 details_pane.setComponentOrientation(Dictionary.getOrientation()); 86 89 details_pane.setLayout(new GridLayout(2,1)); 87 90 details_pane.add(name_label); -
gli/trunk/src/org/greenstone/gatherer/gems/NewMetadataSetPrompt.java
r12701 r18412 81 81 JPanel content_pane = (JPanel) getContentPane(); 82 82 content_pane.setOpaque(true); 83 83 content_pane.setComponentOrientation(Dictionary.getOrientation()); 84 84 85 JLabel instruction_label = new JLabel(Dictionary.get("GEMS.NewMetadataSetPrompt.Instructions")); 85 86 instruction_label.setOpaque(true); 86 87 instruction_label.setComponentOrientation(Dictionary.getOrientation()); 88 87 89 JLabel title_label = new JLabel(Dictionary.get("GEMS.NewMetadataSetPrompt.Metadata_Title")); 88 90 title_label.setOpaque(true); 91 title_label.setComponentOrientation(Dictionary.getOrientation()); 89 92 90 93 title_field = new JTextField(); 91 94 title_field.setComponentOrientation(Dictionary.getOrientation()); 95 92 96 JPanel title_pane = new JPanel(new BorderLayout(5,5)); 93 title_pane.add(title_label,BorderLayout.WEST); 97 title_pane.setComponentOrientation(Dictionary.getOrientation()); 98 title_pane.add(title_label,BorderLayout.LINE_START); 94 99 title_pane.add(title_field, BorderLayout.CENTER); 95 100 96 101 97 102 JLabel namespace_label = new JLabel(Dictionary.get("GEMS.NewMetadataSetPrompt.Metadata_Namespace")); 103 namespace_label.setComponentOrientation(Dictionary.getOrientation()); 98 104 namespace_label.setOpaque(true); 99 105 100 106 namespace_field = new JTextField(); 101 107 namespace_field.setComponentOrientation(Dictionary.getOrientation()); 108 102 109 JPanel namespace_pane = new JPanel(new BorderLayout(5,5)); 103 namespace_pane.add(namespace_label,BorderLayout.WEST); 110 namespace_pane.setComponentOrientation(Dictionary.getOrientation()); 111 namespace_pane.add(namespace_label,BorderLayout.LINE_START); 104 112 namespace_pane.add(namespace_field, BorderLayout.CENTER); 105 113 106 114 107 115 JPanel info_pane = new JPanel(); 116 info_pane.setComponentOrientation(Dictionary.getOrientation()); 108 117 info_pane.setLayout(new BorderLayout(5,5)); 109 118 info_pane.add(instruction_label,BorderLayout.NORTH); … … 114 123 JLabel description_label = new JLabel(Dictionary.get("GEMS.Set_Description")); 115 124 description_label.setOpaque(true); 116 125 description_label.setComponentOrientation(Dictionary.getOrientation()); 126 117 127 description_textarea = new JTextArea(); 128 description_textarea.setComponentOrientation(Dictionary.getOrientation()); 118 129 description_textarea.setLineWrap(true); 119 130 description_textarea.setWrapStyleWord(true); 120 131 121 132 JPanel description_pane = new JPanel(); 133 description_pane.setComponentOrientation(Dictionary.getOrientation()); 122 134 description_pane.setLayout(new BorderLayout()); 123 135 description_pane.add(description_label,BorderLayout.NORTH); … … 127 139 JLabel base_label = new JLabel(Dictionary.get("GEMS.NewMetadataSetPrompt.Base_MetadataSet")); 128 140 base_label.setOpaque(true); 141 base_label.setComponentOrientation(Dictionary.getOrientation()); 129 142 130 143 base_metadata_combo = new JComboBox(); 131 144 base_metadata_combo.setRenderer(new MetadatSetListCellRenderer()); 132 145 base_metadata_combo.setComponentOrientation(Dictionary.getOrientation()); 146 133 147 JPanel base_pane = new JPanel(new BorderLayout(5,5)); 134 base_pane.add(base_label,BorderLayout.WEST); 148 base_pane.setComponentOrientation(Dictionary.getOrientation()); 149 base_pane.add(base_label,BorderLayout.LINE_START); 135 150 base_pane.add(base_metadata_combo, BorderLayout.CENTER); 136 151 137 152 138 153 JPanel button_pane = new JPanel(); 154 button_pane.setComponentOrientation(Dictionary.getOrientation()); 139 155 ok_button = new GLIButton(Dictionary.get("General.OK"), Dictionary.get("General.OK_Tooltip")); 140 156 cancel_button = new GLIButton(Dictionary.get("General.Cancel"), Dictionary.get("General.Cancel_Tooltip")); -
gli/trunk/src/org/greenstone/gatherer/gems/OpenMetadataSetPrompt.java
r12680 r18412 73 73 public OpenMetadataSetPrompt(Frame parent,MetadataSetManager msm) { 74 74 super(parent, true); 75 75 76 76 self = this; 77 77 meta_manager = msm; … … 82 82 JPanel content_pane = (JPanel) getContentPane(); 83 83 content_pane.setOpaque(true); 84 84 content_pane.setComponentOrientation(Dictionary.getOrientation()); 85 85 86 JLabel available_metadata_sets_label = new JLabel(Dictionary.get("GEMS.OpenMetadataSetPrompt.Available_Sets")); 86 87 available_metadata_sets_label.setOpaque(true); 87 88 available_metadata_sets_label.setComponentOrientation(Dictionary.getOrientation()); 89 88 90 available_set_list = new JList(); 89 91 available_set_list.setCellRenderer(new MetadatSetListCellRenderer()); … … 91 93 available_set_list.setFixedCellHeight(20); 92 94 available_set_list.addListSelectionListener(new MetadataSetListSelectionListener()); 93 95 available_set_list.setComponentOrientation(Dictionary.getOrientation()); 96 94 97 JPanel set_pane = new JPanel(); 98 set_pane.setComponentOrientation(Dictionary.getOrientation()); 95 99 set_pane.setLayout(new BorderLayout()); 96 100 set_pane.add(available_metadata_sets_label,BorderLayout.NORTH); 97 101 set_pane.add(new JScrollPane(available_set_list),BorderLayout.CENTER); 98 102 99 100 103 JLabel metadata_set_des_label = new JLabel(Dictionary.get("GEMS.Set_Description")); 101 104 metadata_set_des_label.setOpaque(true); 102 105 metadata_set_des_label.setComponentOrientation(Dictionary.getOrientation()); 106 103 107 description_textarea = new JTextArea(); 104 108 description_textarea.setOpaque(true); … … 106 110 description_textarea.setLineWrap(true); 107 111 description_textarea.setWrapStyleWord(true); 108 112 description_textarea.setComponentOrientation(Dictionary.getOrientation()); 113 109 114 JPanel des_pane = new JPanel(); 110 115 des_pane.setLayout(new BorderLayout()); 111 116 des_pane.add(metadata_set_des_label,BorderLayout.NORTH); 112 117 des_pane.add(new JScrollPane(description_textarea),BorderLayout.CENTER); 113 118 des_pane.setComponentOrientation(Dictionary.getOrientation()); 119 114 120 JPanel button_pane = new JPanel(); 121 button_pane.setComponentOrientation(Dictionary.getOrientation()); 122 115 123 open_button = new GLIButton(Dictionary.get("GEMS.OpenMetadataSetPrompt.Open"), Dictionary.get("GEMS.OpenMetadataSetPrompt.Open_Tooltip")); 116 open_button.setEnabled(true); 117 124 open_button.setEnabled(true); 125 118 126 browse_button = new GLIButton(Dictionary.get("General.Browse")); 119 127 browse_button.setEnabled(true); -
gli/trunk/src/org/greenstone/gatherer/gui/DownloadPane.java
r18372 r18412 400 400 public DesignTree() { 401 401 super(); 402 this.setComponentOrientation(Dictionary.getOrientation()); 402 403 resetModel(Configuration.getMode()); 403 404 expandRow(0); -
gli/trunk/src/org/greenstone/gatherer/gui/ExportAsPrompt.java
r18372 r18412 182 182 183 183 184 saveas_label = new JLabel(Dictionary.get("ExportAsPrompt.SaveAs") 185 ); 184 saveas_label = new JLabel(Dictionary.get("ExportAsPrompt.SaveAs")); 186 185 saveas_label.setComponentOrientation(Dictionary.getOrientation()); 187 186 //saveas_label.setPreferredSize(LABEL_SIZE); -
gli/trunk/src/org/greenstone/gatherer/gui/FedoraLogin.java
r16369 r18412 62 62 import java.awt.Rectangle; 63 63 import java.awt.Toolkit; 64 import org.greenstone.gatherer.Dictionary; 64 65 65 66 … … 91 92 { 92 93 super(Gatherer.g_man, "Login", true); 94 this.setComponentOrientation(Dictionary.getOrientation()); 93 95 this.setDefaultCloseOperation(DISPOSE_ON_CLOSE); 94 96 95 JLabel serverLabel=new JLabel("Fedora Server"); 97 JLabel serverLabel=new JLabel("Fedora Server"); 96 98 JLabel protocolLabel=new JLabel("Protocol"); 97 99 JLabel usernameLabel=new JLabel("Username"); 98 100 JLabel passwordLabel=new JLabel("Password"); 99 101 102 serverLabel.setComponentOrientation(Dictionary.getOrientation()); 103 protocolLabel.setComponentOrientation(Dictionary.getOrientation()); 104 usernameLabel.setComponentOrientation(Dictionary.getOrientation()); 105 passwordLabel.setComponentOrientation(Dictionary.getOrientation()); 106 100 107 m_serverComboBox=new JComboBox(new String[]{m_lastServer}); 108 m_serverComboBox.setComponentOrientation(Dictionary.getOrientation()); 101 109 m_serverComboBox.setEditable(true); 102 110 m_protocolComboBox=new JComboBox(new String[]{m_lastProtocol, "https"}); // http and https 111 m_protocolComboBox.setComponentOrientation(Dictionary.getOrientation()); 103 112 m_protocolComboBox.setEditable(true); 104 113 m_usernameComboBox=new JComboBox(new String[]{m_lastUsername}); 114 m_usernameComboBox.setComponentOrientation(Dictionary.getOrientation()); 105 115 m_usernameComboBox.setEditable(true); 106 116 m_passwordField=new JPasswordField(); … … 121 131 122 132 JPanel inputPane=new JPanel(); 133 inputPane.setComponentOrientation(Dictionary.getOrientation()); 123 134 inputPane.setBorder(BorderFactory.createCompoundBorder( 124 135 BorderFactory.createCompoundBorder( … … 155 166 156 167 JPanel buttonPane=new JPanel(); 168 buttonPane.setComponentOrientation(Dictionary.getOrientation()); 157 169 buttonPane.add(loginButton); 158 170 buttonPane.add(cancelButton); 159 171 Container contentPane=getContentPane(); 172 contentPane.setComponentOrientation(Dictionary.getOrientation()); 160 173 161 174 contentPane.setLayout(new BorderLayout()); 162 175 m_infoPane = new JPanel(); 176 m_infoPane.setComponentOrientation(Dictionary.getOrientation()); 163 177 m_infoPane.setBackground(TRANSPARENT); 164 178 contentPane.add(m_infoPane, BorderLayout.NORTH); -
gli/trunk/src/org/greenstone/gatherer/gui/FileAssociationDialog.java
r18370 r18412 90 90 JPanel content_pane = (JPanel) getContentPane(); 91 91 content_pane.setBackground(Configuration.getColor("coloring.collection_heading_background", false)); 92 92 content_pane.setComponentOrientation(Dictionary.getOrientation()); 93 93 94 JTextArea instructions_area = new JTextArea(Dictionary.get("FileAssociationDialog.Instructions")); 94 95 instructions_area.setEditable(false); … … 96 97 instructions_area.setRows(5); 97 98 instructions_area.setWrapStyleWord(true); 98 99 instructions_area.setComponentOrientation(Dictionary.getOrientation()); 100 99 101 JPanel control_pane = new JPanel(); 102 control_pane.setComponentOrientation(Dictionary.getOrientation()); 103 100 104 existing_associations_table = new JTable(file_association_manager); 101 existing_associations_table.setAutoResizeMode(JTable.AUTO_RESIZE_NEXT_COLUMN); 105 existing_associations_table.setComponentOrientation(Dictionary.getOrientation()); 106 existing_associations_table.setAutoResizeMode(JTable.AUTO_RESIZE_NEXT_COLUMN); 102 107 existing_associations_table.setColumnSelectionAllowed(false); 103 108 existing_associations_table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); 104 109 JPanel lower_pane = new JPanel(); 110 lower_pane.setComponentOrientation(Dictionary.getOrientation()); 105 111 JPanel details_pane = new JPanel(); 112 details_pane.setComponentOrientation(Dictionary.getOrientation()); 106 113 107 114 JPanel extension_pane = new JPanel(); 115 extension_pane.setComponentOrientation(Dictionary.getOrientation()); 108 116 JLabel extension_label = new JLabel(Dictionary.get("FileAssociationDialog.Extension")); 117 extension_label.setComponentOrientation(Dictionary.getOrientation()); 109 118 extension_field = new NonWhitespaceField(); 110 119 extension_field.setToolTipText(Dictionary.get("FileAssociationDialog.Extension_Tooltip")); 111 120 112 121 JLabel command_label = new JLabel(Dictionary.get("FileAssociationDialog.Command")); 113 JPanel command_pane = new JPanel(); 122 command_label.setComponentOrientation(Dictionary.getOrientation()); 123 JPanel command_pane = new JPanel(); 124 command_pane.setComponentOrientation(Dictionary.getOrientation()); 114 125 command_field = new JTextField(); 126 command_field.setComponentOrientation(Dictionary.getOrientation()); 115 127 command_field.setToolTipText(Dictionary.get("FileAssociationDialog.Command_Tooltip")); 116 128 browse_button = new GLIButton(Dictionary.get("FileAssociationDialog.Browse")); … … 124 136 125 137 JPanel button_pane = new JPanel(); 138 button_pane.setComponentOrientation(Dictionary.getOrientation()); 126 139 127 140 add_button = new GLIButton(Dictionary.get("FileAssociationDialog.Add"), Dictionary.get("FileAssociationDialog.Add_Tooltip")); … … 170 183 button_pane.add(replace_button); 171 184 button_pane.add(remove_button); 172 button_pane.add(new JPanel()); 173 button_pane.add(new JPanel()); 185 JPanel tmp ; 186 tmp = new JPanel(); 187 tmp.setComponentOrientation(Dictionary.getOrientation()); 188 button_pane.add(tmp); 189 tmp = new JPanel(); 190 tmp.setComponentOrientation(Dictionary.getOrientation()); 191 button_pane.add(tmp); 174 192 button_pane.add(close_button); 175 193 … … 198 216 screen = null; 199 217 200 //RTL201 content_pane.setComponentOrientation(Dictionary.getOrientation());202 instructions_area.setComponentOrientation(Dictionary.getOrientation());203 control_pane.setComponentOrientation(Dictionary.getOrientation());204 existing_associations_table.setComponentOrientation(Dictionary.getOrientation());205 lower_pane.setComponentOrientation(Dictionary.getOrientation());206 details_pane.setComponentOrientation(Dictionary.getOrientation());207 extension_pane.setComponentOrientation(Dictionary.getOrientation());208 extension_label.setComponentOrientation(Dictionary.getOrientation());209 extension_field.setComponentOrientation(Dictionary.getOrientation());210 command_label.setComponentOrientation(Dictionary.getOrientation());211 command_pane.setComponentOrientation(Dictionary.getOrientation());212 //end213 218 } 214 219 -
gli/trunk/src/org/greenstone/gatherer/gui/ModalDialog.java
r8480 r18412 30 30 import javax.swing.*; 31 31 import org.greenstone.gatherer.DebugStream; 32 import org.greenstone.gatherer.Dictionary; 32 33 33 34 … … 52 53 public ModalDialog() { 53 54 super((Frame)null, "", false); 55 this.setComponentOrientation(Dictionary.getOrientation()); 54 56 } 55 57 … … 59 61 public ModalDialog(Dialog parent) { 60 62 super(parent, "", false); 63 this.setComponentOrientation(Dictionary.getOrientation()); 61 64 } 62 65 … … 67 70 public ModalDialog(Dialog parent, boolean modal) { 68 71 super(parent, "", false); 72 this.setComponentOrientation(Dictionary.getOrientation()); 69 73 this.modal = modal; 70 74 } … … 76 80 public ModalDialog(Dialog parent, String title) { 77 81 super (parent, title, false); 82 this.setComponentOrientation(Dictionary.getOrientation()); 78 83 this.modal = false; 79 84 } … … 86 91 public ModalDialog(Dialog parent, String title, boolean modal) { 87 92 super (parent, title, false); 93 this.setComponentOrientation(Dictionary.getOrientation()); 88 94 this.modal = modal; 89 95 } … … 94 100 public ModalDialog(Frame parent) { 95 101 super(parent, "", false); 102 this.setComponentOrientation(Dictionary.getOrientation()); 96 103 } 97 104 … … 102 109 public ModalDialog(Frame parent, boolean modal) { 103 110 super(parent, "", false); 111 this.setComponentOrientation(Dictionary.getOrientation()); 104 112 this.modal = modal; 105 113 } … … 111 119 public ModalDialog(Frame parent, String title) { 112 120 super (parent, title, false); 121 this.setComponentOrientation(Dictionary.getOrientation()); 113 122 } 114 123 … … 121 130 super (parent, title, false); 122 131 this.modal = modal; 132 this.setComponentOrientation(Dictionary.getOrientation()); 123 133 } 124 134 -
gli/trunk/src/org/greenstone/gatherer/gui/ReplaceSrcDocWithHtmlPrompt.java
r18397 r18412 113 113 JPanel content_pane = (JPanel) getContentPane(); 114 114 content_pane.setOpaque(true); 115 115 content_pane.setComponentOrientation(Dictionary.getOrientation()); 116 116 options_pane = new JPanel(); 117 117 118 addScriptOptions(options_pane); 118 119 JScrollPane middle_pane = new JScrollPane(options_pane); 119 120 middle_pane.setComponentOrientation(Dictionary.getOrientation()); 121 120 122 JTextArea instructions_area = new JTextArea(Dictionary.get("ReplaceSrcWithHTMLPrompt.Instructions")); 121 instructions_area.setEditable(false); 123 instructions_area.setComponentOrientation(Dictionary.getOrientation()); 124 instructions_area.setEditable(false); 122 125 instructions_area.setLineWrap(true); 123 126 instructions_area.setRows(5); … … 125 128 126 129 JPanel button_pane = new JPanel(); 130 button_pane.setComponentOrientation(Dictionary.getOrientation()); 127 131 JButton srcreplace_button = new GLIButton(Dictionary.get("ReplaceSrcWithHTMLPrompt.ReplaceSrc"), Dictionary.get("ReplaceSrcWithHTMLPrompt.ReplaceSrc_Tooltip")); 128 132 JButton cancel_button = new GLIButton(Dictionary.get("General.Cancel"), Dictionary.get("General.Cancel_Tooltip"));
Note:
See TracChangeset
for help on using the changeset viewer.