- Timestamp:
- 2009-01-12T13:04:29+13:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gli/trunk/src/org/greenstone/gatherer/gui/metaaudit/AutofilterDialog.java
r13195 r18370 108 108 this.dialog = dialog; 109 109 this.self = this; 110 this.setComponentOrientation(Dictionary.getOrientation()); 110 111 setModal(true); 111 112 setJMenuBar(new SimpleMenuBar("reviewingmetadata")); … … 115 116 // Creation 116 117 JPanel content_pane = (JPanel) getContentPane(); 118 content_pane.setComponentOrientation(Dictionary.getOrientation()); 117 119 JPanel name_pane = new JPanel(); 120 name_pane.setComponentOrientation(Dictionary.getOrientation()); 118 121 JLabel name_label = new JLabel(Dictionary.get("Autofilter.Name")); 122 name_label.setComponentOrientation(Dictionary.getOrientation()); 119 123 JTextField name_template = new JTextField(); 124 name_template.setComponentOrientation(Dictionary.getOrientation()); 120 125 name = new JLabel(); 126 name.setComponentOrientation(Dictionary.getOrientation()); 121 127 name.setBorder(name_template.getBorder()); 122 128 control = new JTabbedPane(); 129 control.setComponentOrientation(Dictionary.getOrientation()); 123 130 JPanel value_pane = new JPanel(); 131 value_pane.setComponentOrientation(Dictionary.getOrientation()); 124 132 JPanel inner_value_pane = new JPanel(); 133 inner_value_pane.setComponentOrientation(Dictionary.getOrientation()); 125 134 JLabel value_label = new JLabel(Dictionary.get("Autofilter.eqeq")); 135 value_label.setComponentOrientation(Dictionary.getOrientation()); 126 136 value = new JComboBox(); 137 value.setComponentOrientation(Dictionary.getOrientation()); 127 138 value.setOpaque(false); 128 139 value.setEditable(false); 129 140 JPanel custom_pane = new JPanel(); 141 custom_pane.setComponentOrientation(Dictionary.getOrientation()); 130 142 131 143 JPanel first_pane = new JPanel(); 144 first_pane.setComponentOrientation(Dictionary.getOrientation()); 132 145 first_method = new JComboBox(); 146 first_method.setComponentOrientation(Dictionary.getOrientation()); 133 147 first_method.setOpaque(false); 134 148 first_value = new JComboBox(); 149 first_value.setComponentOrientation(Dictionary.getOrientation()); 135 150 first_value.setOpaque(false); 136 151 first_value.setEditable(true); … … 138 153 first_value.setSelectedItem(""); 139 154 first_case = new JCheckBox(Dictionary.get("Autofilter.Case_Sensitive")); 155 first_case.setComponentOrientation(Dictionary.getOrientation()); 140 156 JPanel operator_pane = new JPanel(); 157 operator_pane.setComponentOrientation(Dictionary.getOrientation()); 141 158 JLabel operator_label = new JLabel(Dictionary.get("Autofilter.Operator")); 142 ButtonGroup operator_group = new ButtonGroup(); 159 operator_label.setComponentOrientation(Dictionary.getOrientation()); 160 ButtonGroup operator_group = new ButtonGroup(); 143 161 and_radiobutton = new JRadioButton(Dictionary.get("Autofilter.AND")); 162 and_radiobutton.setComponentOrientation(Dictionary.getOrientation()); 144 163 and_radiobutton.setOpaque(false); 145 164 none_radiobutton = new JRadioButton(Dictionary.get("Autofilter.None")); 165 none_radiobutton.setComponentOrientation(Dictionary.getOrientation()); 146 166 none_radiobutton.setOpaque(false); 147 167 none_radiobutton.setSelected(true); 148 168 or_radiobutton = new JRadioButton(Dictionary.get("Autofilter.OR")); 169 or_radiobutton.setComponentOrientation(Dictionary.getOrientation()); 149 170 or_radiobutton.setOpaque(false); 150 171 operator_group.add(none_radiobutton); … … 153 174 154 175 JPanel second_pane = new JPanel(); 176 second_pane.setComponentOrientation(Dictionary.getOrientation()); 155 177 second_method = new JComboBox(); 178 second_method.setComponentOrientation(Dictionary.getOrientation()); 156 179 second_method.setOpaque(false); 157 180 second_method.setEnabled(false); 158 181 second_value = new JComboBox(); 182 second_value.setComponentOrientation(Dictionary.getOrientation()); 159 183 second_value.setOpaque(false); 160 184 second_value.setEditable(true); … … 163 187 second_value.setSelectedItem(""); 164 188 second_case = new JCheckBox(Dictionary.get("Autofilter.Case_Sensitive")); 189 second_case.setComponentOrientation(Dictionary.getOrientation()); 165 190 JPanel lower_pane = new JPanel(); 191 lower_pane.setComponentOrientation(Dictionary.getOrientation()); 166 192 JPanel order_pane = new JPanel(); 193 order_pane.setComponentOrientation(Dictionary.getOrientation()); 167 194 order_pane.setToolTipText(Dictionary.get("Autofilter.Order_Tooltip")); 168 195 JLabel order_label = new JLabel(Dictionary.get("Autofilter.Order")); 169 196 order_label.setComponentOrientation(Dictionary.getOrientation()); 170 197 ButtonGroup order_group = new ButtonGroup(); 171 198 ascending_radiobutton = new JRadioButton(Dictionary.get("Autofilter.Ascending")); 199 ascending_radiobutton.setComponentOrientation(Dictionary.getOrientation()); 172 200 ascending_radiobutton.setOpaque(false); 173 201 ascending_radiobutton.setSelected(true); 174 202 descending_radiobutton = new JRadioButton(Dictionary.get("Autofilter.Descending")); 203 descending_radiobutton.setComponentOrientation(Dictionary.getOrientation()); 175 204 descending_radiobutton.setOpaque(false); 176 205 order_group.add(ascending_radiobutton); … … 183 212 } 184 213 JPanel button_pane = new JPanel(); 214 button_pane.setComponentOrientation(Dictionary.getOrientation()); 185 215 cancel_button = new GLIButton(Dictionary.get("General.Cancel"), Dictionary.get("General.Pure_Cancel_Tooltip")); 186 216 remove_button = new GLIButton(Dictionary.get("Autofilter.Remove"), Dictionary.get("Autofilter.Remove_Tooltip")); … … 200 230 name_pane.setBorder(BorderFactory.createEmptyBorder(0,0,5,0)); 201 231 name_pane.setLayout(new BorderLayout()); 202 name_pane.add(name_label, BorderLayout. WEST);232 name_pane.add(name_label, BorderLayout.LINE_START); 203 233 name_pane.add(name, BorderLayout.CENTER); 204 234 … … 206 236 207 237 inner_value_pane.setLayout(new BorderLayout()); 208 inner_value_pane.add(value_label, BorderLayout. WEST);238 inner_value_pane.add(value_label, BorderLayout.LINE_START); 209 239 inner_value_pane.add(value, BorderLayout.CENTER); 210 240 … … 214 244 215 245 first_pane.setLayout(new BorderLayout()); 216 first_pane.add(first_method, BorderLayout. WEST);246 first_pane.add(first_method, BorderLayout.LINE_START); 217 247 first_pane.add(first_value, BorderLayout.CENTER); 218 first_pane.add(first_case, BorderLayout. EAST);248 first_pane.add(first_case, BorderLayout.LINE_END); 219 249 220 250 operator_pane.setLayout(new GridLayout(1,4)); … … 225 255 226 256 second_pane.setLayout(new BorderLayout()); 227 second_pane.add(second_method, BorderLayout. WEST);257 second_pane.add(second_method, BorderLayout.LINE_START); 228 258 second_pane.add(second_value, BorderLayout.CENTER); 229 second_pane.add(second_case, BorderLayout. EAST);259 second_pane.add(second_case, BorderLayout.LINE_END); 230 260 231 261 order_pane.setBorder(BorderFactory.createEmptyBorder(5,0,0,0));
Note:
See TracChangeset
for help on using the changeset viewer.