- 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/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);
Note:
See TracChangeset
for help on using the changeset viewer.