- Timestamp:
- 2009-01-22T11:04:31+13:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gli/trunk/src/org/greenstone/gatherer/cdm/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
Note:
See TracChangeset
for help on using the changeset viewer.