Changeset 18372
- Timestamp:
- 2009-01-12T14:21:28+13:00 (15 years ago)
- Location:
- gli/trunk/src/org/greenstone/gatherer
- Files:
-
- 5 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); -
gli/trunk/src/org/greenstone/gatherer/gui/DownloadPane.java
r18370 r18372 175 175 mode_pane.add(tree_pane,JSplitPane.RIGHT); 176 176 mode_pane.add(options_scroll_pane,JSplitPane.LEFT); 177 mode_pane.setDividerLocation(1 );177 mode_pane.setDividerLocation(1-TREE_SIZE.width); 178 178 } 179 179 -
gli/trunk/src/org/greenstone/gatherer/gui/ExportAsPrompt.java
r18370 r18372 171 171 172 172 details_label = new JLabel(Dictionary.get("DeleteCollectionPrompt.Collection_Details")); 173 173 details_label.setComponentOrientation(Dictionary.getOrientation()); 174 174 175 175 instructions_textarea = new JTextArea(Dictionary.get("ExportAsPrompt.Instructions")); … … 249 249 //list = new CheckList(true); 250 250 list = new JList(getCollectionListModel()); 251 list.setComponentOrientation(Dictionary.getOrientation()); 251 252 list_label = new JLabel(Dictionary.get("DeleteCollectionPrompt.Collection_List")); 252 253 list_label.setComponentOrientation(Dictionary.getOrientation()); -
gli/trunk/src/org/greenstone/gatherer/gui/Preferences.java
r18370 r18372 348 348 // Layout 349 349 program_pane.setLayout(new BorderLayout()); 350 program_pane.add(program_label, BorderLayout.LINE_ END);350 program_pane.add(program_label, BorderLayout.LINE_START); 351 351 program_pane.add(program_field, BorderLayout.CENTER); 352 352 -
gli/trunk/src/org/greenstone/gatherer/util/CheckListEntry.java
r12047 r18372 2 2 3 3 import javax.swing.JCheckBox; 4 import org.greenstone.gatherer.Dictionary; 4 5 5 6 /** A CheckListEntry encapsulates a single row of the list, both its check box and the object the row represents. */ … … 18 19 super(object.toString()); 19 20 this.object = object; 21 this.setComponentOrientation(Dictionary.getOrientation()); 20 22 } 21 23 … … 23 25 public CheckListEntry(String text, boolean is_selected) { 24 26 super(text); 27 this.setComponentOrientation(Dictionary.getOrientation()); 25 28 setSelected(is_selected); 26 29 }
Note:
See TracChangeset
for help on using the changeset viewer.