- 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/DownloadPane.java
r17651 r18370 93 93 public DownloadPane() { 94 94 super(); 95 95 JScrollPane scrol_tmp; 96 this.setComponentOrientation(Dictionary.getOrientation()); 96 97 // TODO: Download the WDownload and the download panel fixed!! 97 98 getter = new DownloadScrollPane(); 98 99 getter.start(); 99 list_scroll = getter.getDownloadJobList(); 100 100 list_scroll = getter.getDownloadJobList(); 101 list_scroll.setComponentOrientation(Dictionary.getOrientation()); 101 102 // TODO should use Vector to store all loaded downloads!! 102 103 String lang = Configuration.getLanguage(); … … 110 111 // Creation 111 112 tree = new DesignTree(); 113 tree.setComponentOrientation(Dictionary.getOrientation()); 112 114 options_pane = new JPanel(); 113 115 options_pane.setComponentOrientation(Dictionary.getOrientation()); 114 116 115 117 JButton clear_cache_button = new GLIButton(Dictionary.get("Mirroring.ClearCache"), Dictionary.get("Mirroring.ClearCache_Tooltip")); … … 139 141 // Add to Panel 140 142 JPanel button_pane = new JPanel(); 143 button_pane.setComponentOrientation(Dictionary.getOrientation()); 141 144 button_pane.setLayout(new FlowLayout(FlowLayout.CENTER,20,5)); 142 145 button_pane.setBorder(BorderFactory.createEtchedBorder()); … … 147 150 148 151 JPanel tree_pane = new JPanel(); 152 tree_pane.setComponentOrientation(Dictionary.getOrientation()); 149 153 tree_pane.setLayout(new BorderLayout()); 150 tree_pane.add(new JScrollPane(tree), BorderLayout.CENTER); 154 scrol_tmp = new JScrollPane(tree); 155 scrol_tmp.setComponentOrientation(Dictionary.getOrientation()); 156 tree_pane.add(scrol_tmp, BorderLayout.CENTER); 151 157 tree_pane.setPreferredSize(TREE_SIZE); 152 158 … … 158 164 159 165 JScrollPane options_scroll_pane = new JScrollPane(options_pane); 166 options_scroll_pane.setComponentOrientation(Dictionary.getOrientation()); 160 167 JSplitPane mode_pane = new JSplitPane(); 168 mode_pane.setComponentOrientation(Dictionary.getOrientation()); 161 169 mode_pane.setBorder(BorderFactory.createEmptyBorder(0,0,0,0)); 162 mode_pane.add(tree_pane,JSplitPane.LEFT); 163 mode_pane.add(options_scroll_pane,JSplitPane.RIGHT); 164 mode_pane.setDividerLocation(TREE_SIZE.width); 170 if (Dictionary.getOrientation().isLeftToRight()){ 171 mode_pane.add(tree_pane,JSplitPane.LEFT); 172 mode_pane.add(options_scroll_pane,JSplitPane.RIGHT); 173 mode_pane.setDividerLocation(TREE_SIZE.width); 174 }else{ 175 mode_pane.add(tree_pane,JSplitPane.RIGHT); 176 mode_pane.add(options_scroll_pane,JSplitPane.LEFT); 177 mode_pane.setDividerLocation(1); 178 } 179 165 180 166 181 JPanel edit_pane = new JPanel(); 182 edit_pane.setComponentOrientation(Dictionary.getOrientation()); 167 183 edit_pane.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createEmptyBorder(2,0,0,0), BorderFactory.createCompoundBorder(BorderFactory.createTitledBorder("Download Setting"), BorderFactory.createEmptyBorder(2,2,2,2)))); 168 184 edit_pane.setLayout(new BorderLayout()); … … 188 204 private void addHeader(String name, Color color, JPanel target_pane) { 189 205 JPanel header = new JPanel(); 206 header.setComponentOrientation(Dictionary.getOrientation()); 190 207 header.setBackground(color); 191 208 JPanel inner_pane = new JPanel(); 209 inner_pane.setComponentOrientation(Dictionary.getOrientation()); 192 210 inner_pane.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createEmptyBorder(5,5,5,5), BorderFactory.createRaisedBevelBorder())); 193 211 inner_pane.setBackground(color); 194 212 JLabel header_label = new JLabel("<html><strong>" + name + "</strong></html>"); 213 header_label.setComponentOrientation(Dictionary.getOrientation()); 195 214 header_label.setBackground(Configuration.getColor("coloring.collection_heading_background", false)); 196 215 header_label.setHorizontalAlignment(JLabel.CENTER); … … 353 372 /** Behaviour Functions */ 354 373 public void afterDisplay() { 355 ready = true; 374 ready = true; 356 375 } 357 376
Note:
See TracChangeset
for help on using the changeset viewer.