- Timestamp:
- 2009-01-12T13:04:29+13:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gli/trunk/src/org/greenstone/gatherer/gui/CreatePane.java
r17940 r18370 167 167 */ 168 168 public CreatePane() { 169 this.setComponentOrientation(Dictionary.getOrientation()); 169 170 log_textarea = new JTextArea(); 170 171 log_scroll = new JScrollPane(log_textarea); 171 172 172 173 // Create components 173 174 card_layout = new CardLayout(); 174 175 // Control Pane 175 176 control_pane = new JPanel(); 177 control_pane.setComponentOrientation(Dictionary.getOrientation()); 176 178 tree = new OptionTree(); 179 tree.setComponentOrientation(Dictionary.getOrientation()); 177 180 button_pane = new JPanel(); 181 button_pane.setComponentOrientation(Dictionary.getOrientation()); 178 182 179 183 // Progress Pane 180 184 progress_pane = new JPanel(); // One owner of the bar component 185 progress_pane.setComponentOrientation(Dictionary.getOrientation()); 181 186 bar_area = new JPanel(); // This component will be shared about 187 bar_area.setComponentOrientation(Dictionary.getOrientation()); 182 188 183 189 progress_import_label = new JLabel(Dictionary.get("CreatePane.Import_Progress")); 184 190 progress_import_label.setComponentOrientation(Dictionary.getOrientation()); 191 185 192 import_monitor = new GImportProgressMonitor(); 186 193 Gatherer.c_man.registerImportMonitor(import_monitor); 187 194 188 195 progress_build_label = new JLabel(Dictionary.get("CreatePane.Build_Progress")); 189 196 progress_build_label.setComponentOrientation(Dictionary.getOrientation()); 197 190 198 build_monitor = new GBuildProgressMonitor(import_monitor.getSharedProgress()); 191 199 Gatherer.c_man.registerBuildMonitor(build_monitor); … … 202 210 sbutton_panel = new JPanel(); 203 211 sinner_panel = new JPanel(); 204 212 213 slower_panel.setComponentOrientation(Dictionary.getOrientation()); 214 sbutton_panel.setComponentOrientation(Dictionary.getOrientation()); 215 sinner_panel.setComponentOrientation(Dictionary.getOrientation()); 216 205 217 //Radio buttons 206 218 incremental_build_radio_button = new JRadioButton(Dictionary.get("CreatePane.Minimal_Build")); 219 incremental_build_radio_button.setComponentOrientation(Dictionary.getOrientation()); 207 220 incremental_build_radio_button.setToolTipText(Dictionary.get("CreatePane.Minimal_Build_Tooltip")); 208 221 full_build_radio_button = new JRadioButton(Dictionary.get("CreatePane.Full_Build")); 222 full_build_radio_button.setComponentOrientation(Dictionary.getOrientation()); 209 223 full_build_radio_button.setToolTipText(Dictionary.get("CreatePane.Full_Build_Tooltip")); 210 224 sincremental_build_radio_button = new JRadioButton(Dictionary.get("CreatePane.Minimal_Build")); 225 sincremental_build_radio_button.setComponentOrientation(Dictionary.getOrientation()); 211 226 sincremental_build_radio_button.setToolTipText(Dictionary.get("CreatePane.Minimal_Build_Tooltip")); 212 227 sfull_build_radio_button = new JRadioButton(Dictionary.get("CreatePane.Full_Build")); 228 sfull_build_radio_button.setComponentOrientation(Dictionary.getOrientation()); 213 229 sfull_build_radio_button.setToolTipText(Dictionary.get("CreatePane.Full_Build_Tooltip")); 214 230 … … 283 299 sbuild_type_group.add(sfull_build_radio_button); 284 300 JPanel build_type_pane = new JPanel(new GridLayout(2,1)); 301 build_type_pane.setComponentOrientation(Dictionary.getOrientation()); 285 302 build_type_pane.add(full_build_radio_button); 286 303 build_type_pane.add(incremental_build_radio_button); 287 304 JPanel sbuild_type_pane = new JPanel(new GridLayout(2,1)); 305 sbuild_type_pane.setComponentOrientation(Dictionary.getOrientation()); 288 306 sbuild_type_pane.add(sfull_build_radio_button); 289 307 sbuild_type_pane.add(sincremental_build_radio_button); … … 293 311 // Build control_pane 294 312 JPanel left = new JPanel(); 313 left.setComponentOrientation(Dictionary.getOrientation()); 295 314 left.setBorder(BorderFactory.createEmptyBorder(0,5,5,5)); 296 315 left.setLayout(new BorderLayout()); … … 300 319 301 320 right = new JPanel(); 321 right.setComponentOrientation(Dictionary.getOrientation()); 302 322 right.setBorder(BorderFactory.createEmptyBorder(0,0,5,5)); 303 323 right.setLayout(new BorderLayout()); 304 324 305 325 JPanel options_area = new JPanel(); 326 options_area.setComponentOrientation(Dictionary.getOrientation()); 306 327 options_area.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createEmptyBorder(5,5,5,5), BorderFactory.createTitledBorder(Dictionary.get("CreatePane.Options_Title")))); 307 328 options_area.setLayout(new BorderLayout()); 308 options_area.add(left, BorderLayout. WEST);329 options_area.add(left, BorderLayout.LINE_START); 309 330 options_area.add(right, BorderLayout.CENTER); 310 331 311 332 button_pane = new JPanel(); 333 button_pane.setComponentOrientation(Dictionary.getOrientation()); 312 334 button_pane.setBorder(BorderFactory.createEmptyBorder(5,10,10,10)); 313 335 button_pane.setLayout(new GridLayout(1,4)); … … 322 344 // Build progress_pane 323 345 JPanel labels_pane = new JPanel(); 346 labels_pane.setComponentOrientation(Dictionary.getOrientation()); 324 347 labels_pane.setLayout(new GridLayout(2,1,0,5)); 325 348 labels_pane.add(progress_import_label); … … 327 350 328 351 JPanel monitors_pane = new JPanel(); 352 monitors_pane.setComponentOrientation(Dictionary.getOrientation()); 329 353 monitors_pane.setLayout(new GridLayout(2,1,0,5)); 330 354 monitors_pane.add(import_monitor.getProgress()); … … 333 357 bar_area.setBorder(BorderFactory.createEmptyBorder(10,10,5,10)); 334 358 bar_area.setLayout(new BorderLayout(5,5)); 335 bar_area.add(labels_pane, BorderLayout. WEST);359 bar_area.add(labels_pane, BorderLayout.LINE_START); 336 360 bar_area.add(monitors_pane, BorderLayout.CENTER); 337 361 … … 351 375 352 376 JPanel simple_bar_area = new JPanel(new GridLayout(2,1)); 377 simple_bar_area.setComponentOrientation(Dictionary.getOrientation()); 353 378 simple_bar_area.setBorder(BorderFactory.createEmptyBorder(0,5,0,0)); 354 379 simple_bar_area.add(import_monitor.getSharedProgress()); … … 357 382 sinner_panel.setBorder(BorderFactory.createEmptyBorder(5,0,5,0)); 358 383 sinner_panel.setLayout(new BorderLayout()); 359 sinner_panel.add(sbuild_type_pane, BorderLayout. WEST);384 sinner_panel.add(sbuild_type_pane, BorderLayout.LINE_START); 360 385 //sinner_panel.add(full_build_radio_button, BorderLayout.WEST); 361 386 sinner_panel.add(simple_bar_area, BorderLayout.CENTER); … … 371 396 sargument_configuration_panel = new JPanel(); 372 397 } 398 sargument_configuration_panel.setComponentOrientation(Dictionary.getOrientation()); 373 399 sargument_configuration_scroll = new JScrollPane(sargument_configuration_panel); 374 400 sargument_configuration_scroll.setPreferredSize(ARGUMENT_SIZE); 375 401 sargument_configuration_scroll.setComponentOrientation(Dictionary.getOrientation()); 402 376 403 slower_panel.setLayout(new BorderLayout()); 377 404 slower_panel.add(sinner_panel, BorderLayout.NORTH); … … 381 408 382 409 simple_panel = new JSplitPane(JSplitPane.VERTICAL_SPLIT, sargument_configuration_scroll, slower_panel); 410 simple_panel.setComponentOrientation(Dictionary.getOrientation()); 383 411 // Main pane 384 412 main_pane = new JPanel(card_layout); 413 main_pane.setComponentOrientation(Dictionary.getOrientation()); 385 414 if(current_mode < THRESHOLD) { // Simple mode - add first 386 415 main_pane.add(simple_panel, SIMPLE); … … 494 523 } 495 524 sargument_configuration_scroll = new JScrollPane(sargument_configuration_panel); 525 sargument_configuration_panel.setComponentOrientation(Dictionary.getOrientation()); 526 sargument_configuration_scroll.setComponentOrientation(Dictionary.getOrientation()); 496 527 sargument_configuration_scroll.setPreferredSize(ARGUMENT_SIZE); 497 528 simple_panel.setTopComponent(sargument_configuration_scroll); … … 634 665 //} 635 666 sargument_configuration_scroll = new JScrollPane(sargument_configuration_panel); 667 sargument_configuration_scroll.setComponentOrientation(Dictionary.getOrientation()); 636 668 sargument_configuration_scroll.setPreferredSize(ARGUMENT_SIZE); 637 669 simple_panel.setTopComponent(sargument_configuration_scroll); … … 913 945 public OptionTree() { 914 946 super(); 915 947 this.setComponentOrientation(Dictionary.getOrientation()); 916 948 ToolTipManager.sharedInstance().registerComponent(this); 917 949 addTreeSelectionListener(this);
Note:
See TracChangeset
for help on using the changeset viewer.