- 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/EnrichPane.java
r18199 r18370 83 83 public EnrichPane() 84 84 { 85 // Create the metadata value tree pane 86 metadata_value_tree_pane = new MetadataValueTreePane(); 85 this.setComponentOrientation(Dictionary.getOrientation()); 86 // Create the metadata value tree pane 87 metadata_value_tree_pane = new MetadataValueTreePane(); 87 88 metadata_value_tree_pane.addMetadataValueTreeSelectionListener(new MetadataValueTreeSelectionListener()); 88 89 89 90 // Create metadata value table pane 90 metadata_value_table_pane = new MetadataValueTablePane(); 91 metadata_value_table_pane = new MetadataValueTablePane(); 91 92 metadata_value_table_pane.addMetadataValueTableListSelectionListener(new MetadataValueTableListSelectionListener()); 92 93 metadata_value_table_pane.addMetadataValueTableMouseListener(new MetadataValueTableMouseListener()); … … 100 101 public void afterDisplay() 101 102 { 102 external_split.setDividerLocation(0.3); 103 if (Dictionary.getOrientation().isLeftToRight()){ 104 external_split.setDividerLocation(0.3); 105 }else{ 106 external_split.setDividerLocation(0.7); 107 } 103 108 } 104 109 … … 112 117 { 113 118 JPanel left_hand_pane = new JPanel(new BorderLayout()); 119 left_hand_pane.setComponentOrientation(Dictionary.getOrientation()); 114 120 GLIButton metadata_set_button = new GLIButton(Dictionary.get("EnrichPane.ManageMetadataSets"), Dictionary.get("EnrichPane.ManageMetadataSets_Tooltip")); 115 121 metadata_set_button.addActionListener(new ActionListener() { … … 124 130 // Collection Tree 125 131 collection_pane = new JPanel(new BorderLayout()); 132 // collection_pane.setComponentOrientation(Dictionary.getOrientation()); 126 133 collection_pane.setMinimumSize(MINIMUM_SIZE); 127 134 collection_pane.setPreferredSize(COLLECTION_TREE_SIZE); 128 135 129 136 collection_label = new JLabel(Dictionary.get("Collection.No_Collection")); 137 collection_label.setComponentOrientation(Dictionary.getOrientation()); 130 138 collection_label.setOpaque(true); 131 139 132 140 collection_tree = Gatherer.c_man.getCollectionTree(); 133 141 collection_tree.getSelectionModel().setSelectionMode(TreeSelectionModel.DISCONTIGUOUS_TREE_SELECTION); 134 collection_tree.addTreeSelectionListener(this); 142 collection_tree.addTreeSelectionListener(this); 143 collection_tree.setComponentOrientation(Dictionary.getOrientation()); 135 144 collection_filter = collection_tree.getFilter(); 136 137 145 external_split = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT); 138 146 external_split.setComponentOrientation(Dictionary.getOrientation()); 139 147 // Layout 140 148 collection_pane.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createEmptyBorder(3,3,3,3), BorderFactory.createLoweredBevelBorder())); 141 149 collection_pane.setMinimumSize(MINIMUM_SIZE); 142 150 collection_pane.setPreferredSize(new Dimension(Gatherer.g_man.getSize().width / 3, Gatherer.g_man.getSize().height)); 143 151 collection_pane.setComponentOrientation(Dictionary.getOrientation()); 144 152 // Collection Pane 145 153 collection_pane.add(collection_label, BorderLayout.NORTH); … … 148 156 metadata_editing_pane.setBorder(BorderFactory.createEmptyBorder(0,5,5,5)); 149 157 metadata_editing_pane.setDividerSize(8); 150 158 metadata_editing_pane.setComponentOrientation(Dictionary.getOrientation()); 159 151 160 metadata_editing_pane.add(metadata_value_table_pane, JSplitPane.TOP); 152 161 metadata_editing_pane.add(metadata_value_tree_pane, JSplitPane.BOTTOM); … … 155 164 left_hand_pane.add(collection_pane, BorderLayout.CENTER); 156 165 left_hand_pane.add(metadata_set_button, BorderLayout.SOUTH); 157 external_split.add(left_hand_pane, JSplitPane.LEFT); 158 external_split.add(metadata_editing_pane, JSplitPane.RIGHT); 166 if (Dictionary.getOrientation().isLeftToRight()){ 167 external_split.add(left_hand_pane, JSplitPane.LEFT); 168 external_split.add(metadata_editing_pane, JSplitPane.RIGHT); 169 }else{ 170 external_split.add(left_hand_pane, JSplitPane.RIGHT); 171 external_split.add(metadata_editing_pane, JSplitPane.LEFT); 172 } 159 173 160 174
Note:
See TracChangeset
for help on using the changeset viewer.