Changeset 18372 for gli/trunk/src/org/greenstone/gatherer/cdm
- Timestamp:
- 2009-01-12T14:21:28+13:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gli/trunk/src/org/greenstone/gatherer/cdm/ArgumentControl.java
r14783 r18372 41 41 */ 42 42 public ArgumentControl(Argument argument, boolean is_enabled, String preset_value) { 43 this.setComponentOrientation(Dictionary.getOrientation()); 43 44 this.argument = argument; 44 45 … … 61 62 //JLabel label = new JLabel(argument.getName()); 62 63 JLabel label = new JLabel(dispName); 63 64 label.setComponentOrientation(Dictionary.getOrientation()); 64 65 label.setOpaque(false); 65 66 label.setPreferredSize(LABEL_SIZE); 66 67 label.setToolTipText(tip); 67 add(label, BorderLayout. WEST);68 add(label, BorderLayout.LINE_START); 68 69 } else { 69 70 //enabled = new JCheckBox(argument.getName()); 70 71 enabled = new JCheckBox(dispName); 71 72 enabled.setComponentOrientation(Dictionary.getOrientation()); 72 73 enabled.setOpaque(false); 73 74 enabled.setPreferredSize(LABEL_SIZE); 74 75 enabled.setToolTipText(tip); 75 add(enabled, BorderLayout. WEST);76 add(enabled, BorderLayout.LINE_START); 76 77 } 77 78 … … 94 95 ArrayList option_list = argument.getOptions(); 95 96 value_control = new GComboBox(option_list.toArray(), false, false); 97 value_control.setComponentOrientation(Dictionary.getOrientation()); 98 96 99 selectValue((JComboBox)value_control, initial_value); // also sets the tooltip 97 100 ((JComboBox)value_control).addActionListener(new ToolTipUpdater()); … … 118 121 119 122 JSpinner spinner = new JSpinner(new SpinnerNumberModel(initial_int, argument.getMinimum(), argument.getMaximum(), 1)); 120 123 spinner.setComponentOrientation(Dictionary.getOrientation()); 121 124 // And remember it 122 125 value_control = spinner; … … 126 129 case Argument.STRING: 127 130 value_control = new JTextField(initial_value); 131 value_control.setComponentOrientation(Dictionary.getOrientation()); 128 132 break; 129 133 130 134 case Argument.LANGUAGE: 131 135 value_control = new GComboBox(CollectionDesignManager.language_manager.getLanguageCodes().toArray(), false); 136 value_control.setComponentOrientation(Dictionary.getOrientation()); 132 137 // we want to display the language name not the code 133 138 ((JComboBox)value_control).setRenderer(new LanguageListCellRenderer()); … … 142 147 case Argument.METADATA: 143 148 value_control = new GComboBox(MetadataSetManager.getEveryMetadataSetElement(), false); 144 149 value_control.setComponentOrientation(Dictionary.getOrientation()); 145 150 // Editable for advanced modes (allows things like dc.Title,ex.Title) 146 151 if (Configuration.getMode() > Configuration.ASSISTANT_MODE) { … … 176 181 case Argument.METADATA_SET_NAMESPACE: 177 182 value_control = new JComboBox(); 183 value_control.setComponentOrientation(Dictionary.getOrientation()); 178 184 // !! Hack for exploding metadata databases: add the (empty) exploded metadata set 179 185 File exploded_metadata_set_file = new File(Gatherer.getGLIMetadataDirectoryPath() + "exp" + StaticStrings.METADATA_SET_EXTENSION);
Note:
See TracChangeset
for help on using the changeset viewer.