- 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/MetadataSetDialog.java
r13681 r18297 43 43 super(Gatherer.g_man, true); 44 44 set_dialog = this; 45 45 this.setComponentOrientation(Dictionary.getOrientation()); 46 46 setJMenuBar(new SimpleMenuBar("selectingmetadatasets")); 47 47 setSize(SIZE); … … 56 56 } 57 57 JPanel content_pane = (JPanel) getContentPane(); 58 content_pane.setComponentOrientation(Dictionary.getOrientation()); 58 59 content_pane.setOpaque(true); 59 60 60 61 JLabel current_metadata_sets_label = new JLabel(Dictionary.get("MetadataSetDialog.Current_Sets")); 61 current_metadata_sets_label.setOpaque(true); 62 current_metadata_sets_label.setComponentOrientation(Dictionary.getOrientation()); 63 current_metadata_sets_label.setOpaque(true); 62 64 current_set_list = new JList(current_metadata_model); 65 current_set_list.setComponentOrientation(Dictionary.getOrientation()); 63 66 current_set_list.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); 64 67 65 68 JPanel button_pane = new JPanel(); 69 button_pane.setComponentOrientation(Dictionary.getOrientation()); 66 70 add_button = new GLIButton(Dictionary.get("MetadataSetDialog.Add"), Dictionary.get("MetadataSetDialog.Add_Tooltip")); 67 71 add_button.setEnabled(true); … … 98 102 content_pane.setLayout(new BorderLayout()); 99 103 content_pane.add(current_metadata_sets_label, BorderLayout.NORTH); 100 content_pane.add(new JScrollPane(current_set_list), BorderLayout.CENTER); 104 JScrollPane scrol_tmp; 105 scrol_tmp = new JScrollPane(current_set_list); 106 scrol_tmp.setComponentOrientation(Dictionary.getOrientation()); 107 content_pane.add(scrol_tmp, BorderLayout.CENTER); 101 108 content_pane.add(button_pane, BorderLayout.SOUTH); 102 109 … … 202 209 public AddMetadataSetPrompt() { 203 210 super(Gatherer.g_man, true); 211 this.setComponentOrientation(Dictionary.getOrientation()); 204 212 add_set_dialog = this; 205 213 setModal(true); … … 211 219 212 220 JPanel center_pane = new JPanel(); 221 center_pane.setComponentOrientation(Dictionary.getOrientation()); 213 222 JPanel sets_pane = new JPanel(); 223 sets_pane.setComponentOrientation(Dictionary.getOrientation()); 214 224 JLabel sets_label = new JLabel(Dictionary.get("MetadataSetDialog.Available_Sets")); 225 sets_label.setComponentOrientation(Dictionary.getOrientation()); 215 226 sets_label.setOpaque(false); 216 227 217 228 available_sets_list = new JList(getValidSetModel()); 229 available_sets_list.setComponentOrientation(Dictionary.getOrientation()); 218 230 available_sets_list.addListSelectionListener(new AvailableSetListSelectionListener()); 219 231 available_sets_list.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); 232 220 233 JPanel elements_pane = new JPanel(); 234 elements_pane.setComponentOrientation(Dictionary.getOrientation()); 221 235 JLabel elements_label = new JLabel(Dictionary.get("MetadataSetDialog.Elements")); 222 236 elements_label.setComponentOrientation(Dictionary.getOrientation()); 237 223 238 elements_list = new JList(); 239 elements_list.setComponentOrientation(Dictionary.getOrientation()); 224 240 elements_list.setCellRenderer(new MetadataElementListCellRenderer()); 225 241 elements_list.setBackground(Configuration.getColor("coloring.collection_tree_background", false)); … … 229 245 230 246 JPanel button_pane = new JPanel(); 247 button_pane.setComponentOrientation(Dictionary.getOrientation()); 231 248 add_button = new GLIButton(Dictionary.get("MetadataSetDialog.Add_Set"), Dictionary.get("MetadataSetDialog.Add_Set_Tooltip")); 232 249 add_button.setEnabled(false); … … 283 300 284 301 JPanel content_pane = (JPanel) getContentPane(); 302 content_pane.setComponentOrientation(Dictionary.getOrientation()); 285 303 content_pane.setBorder(BorderFactory.createEmptyBorder(5,5,5,5)); 286 304 content_pane.setLayout(new BorderLayout()); … … 292 310 setLocation((screen_size.width - ADD_SIZE.width) / 2, (screen_size.height - ADD_SIZE.height) / 2); 293 311 setVisible(true); 294 295 296 312 297 313 } 298 314 … … 368 384 public void actionPerformed(ActionEvent event) { 369 385 JFileChooser chooser = new JFileChooser(new File(Gatherer.getGLIMetadataDirectoryPath())); 386 chooser.setComponentOrientation(Dictionary.getOrientation()); 370 387 chooser.setFileFilter(new MetadataSet.MetadataSetFileFilter()); 371 388 chooser.setDialogTitle(Dictionary.get("MetadataSetDialog.Add_Title"));
Note:
See TracChangeset
for help on using the changeset viewer.