- Timestamp:
- 2008-12-26T14:35:15+13:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gli/branches/rtl-gli/src/org/greenstone/gatherer/gui/CreatePane.java
r13595 r18297 162 162 */ 163 163 public CreatePane() { 164 this.setComponentOrientation(Dictionary.getOrientation()); 164 165 log_textarea = new JTextArea(); 165 166 log_scroll = new JScrollPane(log_textarea); 166 167 167 168 // Create components 168 169 card_layout = new CardLayout(); 169 170 // Control Pane 170 171 control_pane = new JPanel(); 172 control_pane.setComponentOrientation(Dictionary.getOrientation()); 171 173 tree = new OptionTree(); 174 tree.setComponentOrientation(Dictionary.getOrientation()); 172 175 button_pane = new JPanel(); 176 button_pane.setComponentOrientation(Dictionary.getOrientation()); 173 177 174 178 // Progress Pane 175 179 progress_pane = new JPanel(); // One owner of the bar component 180 progress_pane.setComponentOrientation(Dictionary.getOrientation()); 176 181 bar_area = new JPanel(); // This component will be shared about 182 bar_area.setComponentOrientation(Dictionary.getOrientation()); 177 183 178 184 progress_import_label = new JLabel(Dictionary.get("CreatePane.Import_Progress")); 179 185 progress_import_label.setComponentOrientation(Dictionary.getOrientation()); 186 180 187 import_monitor = new GImportProgressMonitor(); 181 188 Gatherer.c_man.registerImportMonitor(import_monitor); 182 189 183 190 progress_build_label = new JLabel(Dictionary.get("CreatePane.Build_Progress")); 184 191 progress_build_label.setComponentOrientation(Dictionary.getOrientation()); 192 185 193 build_monitor = new GBuildProgressMonitor(import_monitor.getSharedProgress()); 186 194 Gatherer.c_man.registerBuildMonitor(build_monitor); … … 190 198 sbutton_panel = new JPanel(); 191 199 sinner_panel = new JPanel(); 192 200 201 slower_panel.setComponentOrientation(Dictionary.getOrientation()); 202 sbutton_panel.setComponentOrientation(Dictionary.getOrientation()); 203 sinner_panel.setComponentOrientation(Dictionary.getOrientation()); 204 193 205 //Radio buttons 194 206 incremental_build_radio_button = new JRadioButton(Dictionary.get("CreatePane.Minimal_Build")); 207 incremental_build_radio_button.setComponentOrientation(Dictionary.getOrientation()); 195 208 incremental_build_radio_button.setToolTipText(Dictionary.get("CreatePane.Minimal_Build_Tooltip")); 196 209 full_build_radio_button = new JRadioButton(Dictionary.get("CreatePane.Full_Build")); 210 full_build_radio_button.setComponentOrientation(Dictionary.getOrientation()); 197 211 full_build_radio_button.setToolTipText(Dictionary.get("CreatePane.Full_Build_Tooltip")); 198 212 sincremental_build_radio_button = new JRadioButton(Dictionary.get("CreatePane.Minimal_Build")); 213 sincremental_build_radio_button.setComponentOrientation(Dictionary.getOrientation()); 199 214 sincremental_build_radio_button.setToolTipText(Dictionary.get("CreatePane.Minimal_Build_Tooltip")); 200 215 sfull_build_radio_button = new JRadioButton(Dictionary.get("CreatePane.Full_Build")); 216 sfull_build_radio_button.setComponentOrientation(Dictionary.getOrientation()); 201 217 sfull_build_radio_button.setToolTipText(Dictionary.get("CreatePane.Full_Build_Tooltip")); 202 218 … … 269 285 sbuild_type_group.add(sfull_build_radio_button); 270 286 JPanel build_type_pane = new JPanel(new GridLayout(2,1)); 287 build_type_pane.setComponentOrientation(Dictionary.getOrientation()); 271 288 build_type_pane.add(full_build_radio_button); 272 289 build_type_pane.add(incremental_build_radio_button); 273 290 JPanel sbuild_type_pane = new JPanel(new GridLayout(2,1)); 291 sbuild_type_pane.setComponentOrientation(Dictionary.getOrientation()); 274 292 sbuild_type_pane.add(sfull_build_radio_button); 275 293 sbuild_type_pane.add(sincremental_build_radio_button); … … 279 297 // Build control_pane 280 298 JPanel left = new JPanel(); 299 left.setComponentOrientation(Dictionary.getOrientation()); 281 300 left.setBorder(BorderFactory.createEmptyBorder(0,5,5,5)); 282 301 left.setLayout(new BorderLayout()); … … 286 305 287 306 right = new JPanel(); 307 right.setComponentOrientation(Dictionary.getOrientation()); 288 308 right.setBorder(BorderFactory.createEmptyBorder(0,0,5,5)); 289 309 right.setLayout(new BorderLayout()); 290 310 291 311 JPanel options_area = new JPanel(); 312 options_area.setComponentOrientation(Dictionary.getOrientation()); 292 313 options_area.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createEmptyBorder(5,5,5,5), BorderFactory.createTitledBorder(Dictionary.get("CreatePane.Options_Title")))); 293 314 options_area.setLayout(new BorderLayout()); 294 options_area.add(left, BorderLayout. WEST);315 options_area.add(left, BorderLayout.LINE_START); 295 316 options_area.add(right, BorderLayout.CENTER); 296 317 297 318 button_pane = new JPanel(); 319 button_pane.setComponentOrientation(Dictionary.getOrientation()); 298 320 button_pane.setBorder(BorderFactory.createEmptyBorder(5,10,10,10)); 299 321 button_pane.setLayout(new GridLayout(1,4)); … … 308 330 // Build progress_pane 309 331 JPanel labels_pane = new JPanel(); 332 labels_pane.setComponentOrientation(Dictionary.getOrientation()); 310 333 labels_pane.setLayout(new GridLayout(2,1,0,5)); 311 334 labels_pane.add(progress_import_label); … … 313 336 314 337 JPanel monitors_pane = new JPanel(); 338 monitors_pane.setComponentOrientation(Dictionary.getOrientation()); 315 339 monitors_pane.setLayout(new GridLayout(2,1,0,5)); 316 340 monitors_pane.add(import_monitor.getProgress()); … … 319 343 bar_area.setBorder(BorderFactory.createEmptyBorder(10,10,5,10)); 320 344 bar_area.setLayout(new BorderLayout(5,5)); 321 bar_area.add(labels_pane, BorderLayout. WEST);345 bar_area.add(labels_pane, BorderLayout.LINE_START); 322 346 bar_area.add(monitors_pane, BorderLayout.CENTER); 323 347 … … 337 361 338 362 JPanel simple_bar_area = new JPanel(new GridLayout(2,1)); 363 simple_bar_area.setComponentOrientation(Dictionary.getOrientation()); 339 364 simple_bar_area.setBorder(BorderFactory.createEmptyBorder(0,5,0,0)); 340 365 simple_bar_area.add(import_monitor.getSharedProgress()); … … 343 368 sinner_panel.setBorder(BorderFactory.createEmptyBorder(5,0,5,0)); 344 369 sinner_panel.setLayout(new BorderLayout()); 345 sinner_panel.add(sbuild_type_pane, BorderLayout. WEST);370 sinner_panel.add(sbuild_type_pane, BorderLayout.LINE_START); 346 371 //sinner_panel.add(full_build_radio_button, BorderLayout.WEST); 347 372 sinner_panel.add(simple_bar_area, BorderLayout.CENTER); … … 354 379 sargument_configuration_panel = new JPanel(); 355 380 } 381 sargument_configuration_panel.setComponentOrientation(Dictionary.getOrientation()); 356 382 sargument_configuration_scroll = new JScrollPane(sargument_configuration_panel); 357 383 sargument_configuration_scroll.setPreferredSize(ARGUMENT_SIZE); 358 384 sargument_configuration_scroll.setComponentOrientation(Dictionary.getOrientation()); 385 359 386 slower_panel.setLayout(new BorderLayout()); 360 387 slower_panel.add(sinner_panel, BorderLayout.NORTH); … … 364 391 365 392 simple_panel = new JSplitPane(JSplitPane.VERTICAL_SPLIT, sargument_configuration_scroll, slower_panel); 393 simple_panel.setComponentOrientation(Dictionary.getOrientation()); 366 394 // Main pane 367 395 main_pane = new JPanel(card_layout); 396 main_pane.setComponentOrientation(Dictionary.getOrientation()); 368 397 if(current_mode < THRESHOLD) { // Simple mode - add first 369 398 main_pane.add(simple_panel, SIMPLE); … … 474 503 } 475 504 sargument_configuration_scroll = new JScrollPane(sargument_configuration_panel); 505 sargument_configuration_panel.setComponentOrientation(Dictionary.getOrientation()); 506 sargument_configuration_scroll.setComponentOrientation(Dictionary.getOrientation()); 476 507 sargument_configuration_scroll.setPreferredSize(ARGUMENT_SIZE); 477 508 simple_panel.setTopComponent(sargument_configuration_scroll); … … 590 621 sargument_configuration_panel = options_pane.buildBuild(sargument_configuration_panel); 591 622 sargument_configuration_scroll = new JScrollPane(sargument_configuration_panel); 623 sargument_configuration_scroll.setComponentOrientation(Dictionary.getOrientation()); 592 624 sargument_configuration_scroll.setPreferredSize(ARGUMENT_SIZE); 593 625 simple_panel.setTopComponent(sargument_configuration_scroll); … … 748 780 public OptionTree() { 749 781 super(); 750 782 this.setComponentOrientation(Dictionary.getOrientation()); 751 783 ToolTipManager.sharedInstance().registerComponent(this); 752 784 addTreeSelectionListener(this);
Note:
See TracChangeset
for help on using the changeset viewer.