Changeset 18412 for gli/trunk/src/org/greenstone/gatherer/gems
- Timestamp:
- 2009-01-22T11:04:31+13:00 (15 years ago)
- Location:
- gli/trunk/src/org/greenstone/gatherer/gems
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
gli/trunk/src/org/greenstone/gatherer/gems/AttributeTable.java
r12658 r18412 64 64 super(); 65 65 setRowHeight(20); 66 this.setComponentOrientation(Dictionary.getOrientation()); 67 metadata_value_text_field.setComponentOrientation(Dictionary.getOrientation()); 66 68 language_dependent = lang_dependent; 67 69 -
gli/trunk/src/org/greenstone/gatherer/gems/DeleteMetadataSetPrompt.java
r12679 r18412 72 72 public DeleteMetadataSetPrompt(Frame parent,MetadataSetManager msm) { 73 73 super(parent, true); 74 75 74 self = this; 76 75 meta_manager = msm; … … 82 81 JPanel content_pane = (JPanel) getContentPane(); 83 82 content_pane.setOpaque(true); 84 83 content_pane.setComponentOrientation(Dictionary.getOrientation()); 85 84 86 85 JLabel available_metadata_sets_label = new JLabel(Dictionary.get("GEMS.DeleteMetadataSetPrompt.Available_Sets")); 87 86 available_metadata_sets_label.setOpaque(true); 87 available_metadata_sets_label.setComponentOrientation(Dictionary.getOrientation()); 88 88 89 89 list_model = new DefaultListModel(); … … 95 95 available_set_list.setFixedCellHeight(20); 96 96 available_set_list.addListSelectionListener(new MetadataSetListSelectionListener()); 97 97 available_set_list.setComponentOrientation(Dictionary.getOrientation()); 98 98 99 JPanel set_pane = new JPanel(); 100 set_pane.setComponentOrientation(Dictionary.getOrientation()); 99 101 set_pane.setLayout(new BorderLayout()); 100 102 set_pane.add(available_metadata_sets_label,BorderLayout.NORTH); … … 110 112 description_textarea.setLineWrap(true); 111 113 description_textarea.setWrapStyleWord(true); 112 114 description_textarea.setComponentOrientation(Dictionary.getOrientation()); 115 113 116 JPanel des_pane = new JPanel(); 117 des_pane.setComponentOrientation(Dictionary.getOrientation()); 114 118 des_pane.setLayout(new BorderLayout()); 115 119 des_pane.add(metadata_set_des_label,BorderLayout.NORTH); … … 117 121 118 122 JPanel button_pane = new JPanel(); 123 button_pane.setComponentOrientation(Dictionary.getOrientation()); 119 124 delete_button = new GLIButton(Dictionary.get("GEMS.DeleteMetadataSetPrompt.Delete"), Dictionary.get("GEMS.DeleteMetadataSetPrompt.Delete_Tooltip")); 120 125 delete_button.setEnabled(false); … … 124 129 confirmation.setEnabled(false); 125 130 confirmation.setSelected(false); 126 131 confirmation.setComponentOrientation(Dictionary.getOrientation()); 132 127 133 close_button = new GLIButton(Dictionary.get("General.Close"), Dictionary.get("General.Close_Tooltip")); 128 134 close_button.setEnabled(true); … … 151 157 152 158 JPanel bottom_pane = new JPanel(); 159 bottom_pane.setComponentOrientation(Dictionary.getOrientation()); 153 160 bottom_pane.setLayout(new BorderLayout()); 154 161 bottom_pane.add(confirmation,BorderLayout.NORTH); … … 212 219 public MetadatSetListCellRenderer() { 213 220 setOpaque(true); 221 this.setComponentOrientation(Dictionary.getOrientation()); 214 222 } 215 223 -
gli/trunk/src/org/greenstone/gatherer/gems/MetadataSetTree.java
r12836 r18412 63 63 protected JFrame parent_frame; 64 64 public MetadataSetTree(JFrame parent){ 65 65 this.setComponentOrientation(Dictionary.getOrientation()); 66 66 setCellRenderer(new MetadataSetCellRenderer()); 67 67 setRowHeight(20); -
gli/trunk/src/org/greenstone/gatherer/gems/NewMetadataElementNamePrompt.java
r12838 r18412 62 62 JPanel content_pane = (JPanel) getContentPane(); 63 63 content_pane.setOpaque(true); 64 64 content_pane.setComponentOrientation(Dictionary.getOrientation()); 65 65 66 JLabel name_label = new JLabel(); 66 if (subelement) { 67 name_label.setComponentOrientation(Dictionary.getOrientation()); 68 if (subelement) { 67 69 setTitle(Dictionary.get("GEMS.NewMetadataElementNamePrompt.SubTitle")); 68 70 name_label.setText(Dictionary.get("GEMS.NewMetadataElementNamePrompt.SubName")); … … 73 75 74 76 name_textfield = new JTextField(); 75 77 name_textfield.setComponentOrientation(Dictionary.getOrientation()); 76 78 name_textfield.addKeyListener(new KeyAdapter() { 77 79 public void keyPressed(KeyEvent e) { … … 84 86 85 87 JPanel details_pane = new JPanel(); 88 details_pane.setComponentOrientation(Dictionary.getOrientation()); 86 89 details_pane.setLayout(new GridLayout(2,1)); 87 90 details_pane.add(name_label); -
gli/trunk/src/org/greenstone/gatherer/gems/NewMetadataSetPrompt.java
r12701 r18412 81 81 JPanel content_pane = (JPanel) getContentPane(); 82 82 content_pane.setOpaque(true); 83 83 content_pane.setComponentOrientation(Dictionary.getOrientation()); 84 84 85 JLabel instruction_label = new JLabel(Dictionary.get("GEMS.NewMetadataSetPrompt.Instructions")); 85 86 instruction_label.setOpaque(true); 86 87 instruction_label.setComponentOrientation(Dictionary.getOrientation()); 88 87 89 JLabel title_label = new JLabel(Dictionary.get("GEMS.NewMetadataSetPrompt.Metadata_Title")); 88 90 title_label.setOpaque(true); 91 title_label.setComponentOrientation(Dictionary.getOrientation()); 89 92 90 93 title_field = new JTextField(); 91 94 title_field.setComponentOrientation(Dictionary.getOrientation()); 95 92 96 JPanel title_pane = new JPanel(new BorderLayout(5,5)); 93 title_pane.add(title_label,BorderLayout.WEST); 97 title_pane.setComponentOrientation(Dictionary.getOrientation()); 98 title_pane.add(title_label,BorderLayout.LINE_START); 94 99 title_pane.add(title_field, BorderLayout.CENTER); 95 100 96 101 97 102 JLabel namespace_label = new JLabel(Dictionary.get("GEMS.NewMetadataSetPrompt.Metadata_Namespace")); 103 namespace_label.setComponentOrientation(Dictionary.getOrientation()); 98 104 namespace_label.setOpaque(true); 99 105 100 106 namespace_field = new JTextField(); 101 107 namespace_field.setComponentOrientation(Dictionary.getOrientation()); 108 102 109 JPanel namespace_pane = new JPanel(new BorderLayout(5,5)); 103 namespace_pane.add(namespace_label,BorderLayout.WEST); 110 namespace_pane.setComponentOrientation(Dictionary.getOrientation()); 111 namespace_pane.add(namespace_label,BorderLayout.LINE_START); 104 112 namespace_pane.add(namespace_field, BorderLayout.CENTER); 105 113 106 114 107 115 JPanel info_pane = new JPanel(); 116 info_pane.setComponentOrientation(Dictionary.getOrientation()); 108 117 info_pane.setLayout(new BorderLayout(5,5)); 109 118 info_pane.add(instruction_label,BorderLayout.NORTH); … … 114 123 JLabel description_label = new JLabel(Dictionary.get("GEMS.Set_Description")); 115 124 description_label.setOpaque(true); 116 125 description_label.setComponentOrientation(Dictionary.getOrientation()); 126 117 127 description_textarea = new JTextArea(); 128 description_textarea.setComponentOrientation(Dictionary.getOrientation()); 118 129 description_textarea.setLineWrap(true); 119 130 description_textarea.setWrapStyleWord(true); 120 131 121 132 JPanel description_pane = new JPanel(); 133 description_pane.setComponentOrientation(Dictionary.getOrientation()); 122 134 description_pane.setLayout(new BorderLayout()); 123 135 description_pane.add(description_label,BorderLayout.NORTH); … … 127 139 JLabel base_label = new JLabel(Dictionary.get("GEMS.NewMetadataSetPrompt.Base_MetadataSet")); 128 140 base_label.setOpaque(true); 141 base_label.setComponentOrientation(Dictionary.getOrientation()); 129 142 130 143 base_metadata_combo = new JComboBox(); 131 144 base_metadata_combo.setRenderer(new MetadatSetListCellRenderer()); 132 145 base_metadata_combo.setComponentOrientation(Dictionary.getOrientation()); 146 133 147 JPanel base_pane = new JPanel(new BorderLayout(5,5)); 134 base_pane.add(base_label,BorderLayout.WEST); 148 base_pane.setComponentOrientation(Dictionary.getOrientation()); 149 base_pane.add(base_label,BorderLayout.LINE_START); 135 150 base_pane.add(base_metadata_combo, BorderLayout.CENTER); 136 151 137 152 138 153 JPanel button_pane = new JPanel(); 154 button_pane.setComponentOrientation(Dictionary.getOrientation()); 139 155 ok_button = new GLIButton(Dictionary.get("General.OK"), Dictionary.get("General.OK_Tooltip")); 140 156 cancel_button = new GLIButton(Dictionary.get("General.Cancel"), Dictionary.get("General.Cancel_Tooltip")); -
gli/trunk/src/org/greenstone/gatherer/gems/OpenMetadataSetPrompt.java
r12680 r18412 73 73 public OpenMetadataSetPrompt(Frame parent,MetadataSetManager msm) { 74 74 super(parent, true); 75 75 76 76 self = this; 77 77 meta_manager = msm; … … 82 82 JPanel content_pane = (JPanel) getContentPane(); 83 83 content_pane.setOpaque(true); 84 84 content_pane.setComponentOrientation(Dictionary.getOrientation()); 85 85 86 JLabel available_metadata_sets_label = new JLabel(Dictionary.get("GEMS.OpenMetadataSetPrompt.Available_Sets")); 86 87 available_metadata_sets_label.setOpaque(true); 87 88 available_metadata_sets_label.setComponentOrientation(Dictionary.getOrientation()); 89 88 90 available_set_list = new JList(); 89 91 available_set_list.setCellRenderer(new MetadatSetListCellRenderer()); … … 91 93 available_set_list.setFixedCellHeight(20); 92 94 available_set_list.addListSelectionListener(new MetadataSetListSelectionListener()); 93 95 available_set_list.setComponentOrientation(Dictionary.getOrientation()); 96 94 97 JPanel set_pane = new JPanel(); 98 set_pane.setComponentOrientation(Dictionary.getOrientation()); 95 99 set_pane.setLayout(new BorderLayout()); 96 100 set_pane.add(available_metadata_sets_label,BorderLayout.NORTH); 97 101 set_pane.add(new JScrollPane(available_set_list),BorderLayout.CENTER); 98 102 99 100 103 JLabel metadata_set_des_label = new JLabel(Dictionary.get("GEMS.Set_Description")); 101 104 metadata_set_des_label.setOpaque(true); 102 105 metadata_set_des_label.setComponentOrientation(Dictionary.getOrientation()); 106 103 107 description_textarea = new JTextArea(); 104 108 description_textarea.setOpaque(true); … … 106 110 description_textarea.setLineWrap(true); 107 111 description_textarea.setWrapStyleWord(true); 108 112 description_textarea.setComponentOrientation(Dictionary.getOrientation()); 113 109 114 JPanel des_pane = new JPanel(); 110 115 des_pane.setLayout(new BorderLayout()); 111 116 des_pane.add(metadata_set_des_label,BorderLayout.NORTH); 112 117 des_pane.add(new JScrollPane(description_textarea),BorderLayout.CENTER); 113 118 des_pane.setComponentOrientation(Dictionary.getOrientation()); 119 114 120 JPanel button_pane = new JPanel(); 121 button_pane.setComponentOrientation(Dictionary.getOrientation()); 122 115 123 open_button = new GLIButton(Dictionary.get("GEMS.OpenMetadataSetPrompt.Open"), Dictionary.get("GEMS.OpenMetadataSetPrompt.Open_Tooltip")); 116 open_button.setEnabled(true); 117 124 open_button.setEnabled(true); 125 118 126 browse_button = new GLIButton(Dictionary.get("General.Browse")); 119 127 browse_button.setEnabled(true);
Note:
See TracChangeset
for help on using the changeset viewer.