Changeset 18412 for gli/trunk/src/org/greenstone/gatherer/gui
- Timestamp:
- 2009-01-22T11:04:31+13:00 (15 years ago)
- Location:
- gli/trunk/src/org/greenstone/gatherer/gui
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
gli/trunk/src/org/greenstone/gatherer/gui/DownloadPane.java
r18372 r18412 400 400 public DesignTree() { 401 401 super(); 402 this.setComponentOrientation(Dictionary.getOrientation()); 402 403 resetModel(Configuration.getMode()); 403 404 expandRow(0); -
gli/trunk/src/org/greenstone/gatherer/gui/ExportAsPrompt.java
r18372 r18412 182 182 183 183 184 saveas_label = new JLabel(Dictionary.get("ExportAsPrompt.SaveAs") 185 ); 184 saveas_label = new JLabel(Dictionary.get("ExportAsPrompt.SaveAs")); 186 185 saveas_label.setComponentOrientation(Dictionary.getOrientation()); 187 186 //saveas_label.setPreferredSize(LABEL_SIZE); -
gli/trunk/src/org/greenstone/gatherer/gui/FedoraLogin.java
r16369 r18412 62 62 import java.awt.Rectangle; 63 63 import java.awt.Toolkit; 64 import org.greenstone.gatherer.Dictionary; 64 65 65 66 … … 91 92 { 92 93 super(Gatherer.g_man, "Login", true); 94 this.setComponentOrientation(Dictionary.getOrientation()); 93 95 this.setDefaultCloseOperation(DISPOSE_ON_CLOSE); 94 96 95 JLabel serverLabel=new JLabel("Fedora Server"); 97 JLabel serverLabel=new JLabel("Fedora Server"); 96 98 JLabel protocolLabel=new JLabel("Protocol"); 97 99 JLabel usernameLabel=new JLabel("Username"); 98 100 JLabel passwordLabel=new JLabel("Password"); 99 101 102 serverLabel.setComponentOrientation(Dictionary.getOrientation()); 103 protocolLabel.setComponentOrientation(Dictionary.getOrientation()); 104 usernameLabel.setComponentOrientation(Dictionary.getOrientation()); 105 passwordLabel.setComponentOrientation(Dictionary.getOrientation()); 106 100 107 m_serverComboBox=new JComboBox(new String[]{m_lastServer}); 108 m_serverComboBox.setComponentOrientation(Dictionary.getOrientation()); 101 109 m_serverComboBox.setEditable(true); 102 110 m_protocolComboBox=new JComboBox(new String[]{m_lastProtocol, "https"}); // http and https 111 m_protocolComboBox.setComponentOrientation(Dictionary.getOrientation()); 103 112 m_protocolComboBox.setEditable(true); 104 113 m_usernameComboBox=new JComboBox(new String[]{m_lastUsername}); 114 m_usernameComboBox.setComponentOrientation(Dictionary.getOrientation()); 105 115 m_usernameComboBox.setEditable(true); 106 116 m_passwordField=new JPasswordField(); … … 121 131 122 132 JPanel inputPane=new JPanel(); 133 inputPane.setComponentOrientation(Dictionary.getOrientation()); 123 134 inputPane.setBorder(BorderFactory.createCompoundBorder( 124 135 BorderFactory.createCompoundBorder( … … 155 166 156 167 JPanel buttonPane=new JPanel(); 168 buttonPane.setComponentOrientation(Dictionary.getOrientation()); 157 169 buttonPane.add(loginButton); 158 170 buttonPane.add(cancelButton); 159 171 Container contentPane=getContentPane(); 172 contentPane.setComponentOrientation(Dictionary.getOrientation()); 160 173 161 174 contentPane.setLayout(new BorderLayout()); 162 175 m_infoPane = new JPanel(); 176 m_infoPane.setComponentOrientation(Dictionary.getOrientation()); 163 177 m_infoPane.setBackground(TRANSPARENT); 164 178 contentPane.add(m_infoPane, BorderLayout.NORTH); -
gli/trunk/src/org/greenstone/gatherer/gui/FileAssociationDialog.java
r18370 r18412 90 90 JPanel content_pane = (JPanel) getContentPane(); 91 91 content_pane.setBackground(Configuration.getColor("coloring.collection_heading_background", false)); 92 92 content_pane.setComponentOrientation(Dictionary.getOrientation()); 93 93 94 JTextArea instructions_area = new JTextArea(Dictionary.get("FileAssociationDialog.Instructions")); 94 95 instructions_area.setEditable(false); … … 96 97 instructions_area.setRows(5); 97 98 instructions_area.setWrapStyleWord(true); 98 99 instructions_area.setComponentOrientation(Dictionary.getOrientation()); 100 99 101 JPanel control_pane = new JPanel(); 102 control_pane.setComponentOrientation(Dictionary.getOrientation()); 103 100 104 existing_associations_table = new JTable(file_association_manager); 101 existing_associations_table.setAutoResizeMode(JTable.AUTO_RESIZE_NEXT_COLUMN); 105 existing_associations_table.setComponentOrientation(Dictionary.getOrientation()); 106 existing_associations_table.setAutoResizeMode(JTable.AUTO_RESIZE_NEXT_COLUMN); 102 107 existing_associations_table.setColumnSelectionAllowed(false); 103 108 existing_associations_table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); 104 109 JPanel lower_pane = new JPanel(); 110 lower_pane.setComponentOrientation(Dictionary.getOrientation()); 105 111 JPanel details_pane = new JPanel(); 112 details_pane.setComponentOrientation(Dictionary.getOrientation()); 106 113 107 114 JPanel extension_pane = new JPanel(); 115 extension_pane.setComponentOrientation(Dictionary.getOrientation()); 108 116 JLabel extension_label = new JLabel(Dictionary.get("FileAssociationDialog.Extension")); 117 extension_label.setComponentOrientation(Dictionary.getOrientation()); 109 118 extension_field = new NonWhitespaceField(); 110 119 extension_field.setToolTipText(Dictionary.get("FileAssociationDialog.Extension_Tooltip")); 111 120 112 121 JLabel command_label = new JLabel(Dictionary.get("FileAssociationDialog.Command")); 113 JPanel command_pane = new JPanel(); 122 command_label.setComponentOrientation(Dictionary.getOrientation()); 123 JPanel command_pane = new JPanel(); 124 command_pane.setComponentOrientation(Dictionary.getOrientation()); 114 125 command_field = new JTextField(); 126 command_field.setComponentOrientation(Dictionary.getOrientation()); 115 127 command_field.setToolTipText(Dictionary.get("FileAssociationDialog.Command_Tooltip")); 116 128 browse_button = new GLIButton(Dictionary.get("FileAssociationDialog.Browse")); … … 124 136 125 137 JPanel button_pane = new JPanel(); 138 button_pane.setComponentOrientation(Dictionary.getOrientation()); 126 139 127 140 add_button = new GLIButton(Dictionary.get("FileAssociationDialog.Add"), Dictionary.get("FileAssociationDialog.Add_Tooltip")); … … 170 183 button_pane.add(replace_button); 171 184 button_pane.add(remove_button); 172 button_pane.add(new JPanel()); 173 button_pane.add(new JPanel()); 185 JPanel tmp ; 186 tmp = new JPanel(); 187 tmp.setComponentOrientation(Dictionary.getOrientation()); 188 button_pane.add(tmp); 189 tmp = new JPanel(); 190 tmp.setComponentOrientation(Dictionary.getOrientation()); 191 button_pane.add(tmp); 174 192 button_pane.add(close_button); 175 193 … … 198 216 screen = null; 199 217 200 //RTL201 content_pane.setComponentOrientation(Dictionary.getOrientation());202 instructions_area.setComponentOrientation(Dictionary.getOrientation());203 control_pane.setComponentOrientation(Dictionary.getOrientation());204 existing_associations_table.setComponentOrientation(Dictionary.getOrientation());205 lower_pane.setComponentOrientation(Dictionary.getOrientation());206 details_pane.setComponentOrientation(Dictionary.getOrientation());207 extension_pane.setComponentOrientation(Dictionary.getOrientation());208 extension_label.setComponentOrientation(Dictionary.getOrientation());209 extension_field.setComponentOrientation(Dictionary.getOrientation());210 command_label.setComponentOrientation(Dictionary.getOrientation());211 command_pane.setComponentOrientation(Dictionary.getOrientation());212 //end213 218 } 214 219 -
gli/trunk/src/org/greenstone/gatherer/gui/ModalDialog.java
r8480 r18412 30 30 import javax.swing.*; 31 31 import org.greenstone.gatherer.DebugStream; 32 import org.greenstone.gatherer.Dictionary; 32 33 33 34 … … 52 53 public ModalDialog() { 53 54 super((Frame)null, "", false); 55 this.setComponentOrientation(Dictionary.getOrientation()); 54 56 } 55 57 … … 59 61 public ModalDialog(Dialog parent) { 60 62 super(parent, "", false); 63 this.setComponentOrientation(Dictionary.getOrientation()); 61 64 } 62 65 … … 67 70 public ModalDialog(Dialog parent, boolean modal) { 68 71 super(parent, "", false); 72 this.setComponentOrientation(Dictionary.getOrientation()); 69 73 this.modal = modal; 70 74 } … … 76 80 public ModalDialog(Dialog parent, String title) { 77 81 super (parent, title, false); 82 this.setComponentOrientation(Dictionary.getOrientation()); 78 83 this.modal = false; 79 84 } … … 86 91 public ModalDialog(Dialog parent, String title, boolean modal) { 87 92 super (parent, title, false); 93 this.setComponentOrientation(Dictionary.getOrientation()); 88 94 this.modal = modal; 89 95 } … … 94 100 public ModalDialog(Frame parent) { 95 101 super(parent, "", false); 102 this.setComponentOrientation(Dictionary.getOrientation()); 96 103 } 97 104 … … 102 109 public ModalDialog(Frame parent, boolean modal) { 103 110 super(parent, "", false); 111 this.setComponentOrientation(Dictionary.getOrientation()); 104 112 this.modal = modal; 105 113 } … … 111 119 public ModalDialog(Frame parent, String title) { 112 120 super (parent, title, false); 121 this.setComponentOrientation(Dictionary.getOrientation()); 113 122 } 114 123 … … 121 130 super (parent, title, false); 122 131 this.modal = modal; 132 this.setComponentOrientation(Dictionary.getOrientation()); 123 133 } 124 134 -
gli/trunk/src/org/greenstone/gatherer/gui/ReplaceSrcDocWithHtmlPrompt.java
r18397 r18412 113 113 JPanel content_pane = (JPanel) getContentPane(); 114 114 content_pane.setOpaque(true); 115 115 content_pane.setComponentOrientation(Dictionary.getOrientation()); 116 116 options_pane = new JPanel(); 117 117 118 addScriptOptions(options_pane); 118 119 JScrollPane middle_pane = new JScrollPane(options_pane); 119 120 middle_pane.setComponentOrientation(Dictionary.getOrientation()); 121 120 122 JTextArea instructions_area = new JTextArea(Dictionary.get("ReplaceSrcWithHTMLPrompt.Instructions")); 121 instructions_area.setEditable(false); 123 instructions_area.setComponentOrientation(Dictionary.getOrientation()); 124 instructions_area.setEditable(false); 122 125 instructions_area.setLineWrap(true); 123 126 instructions_area.setRows(5); … … 125 128 126 129 JPanel button_pane = new JPanel(); 130 button_pane.setComponentOrientation(Dictionary.getOrientation()); 127 131 JButton srcreplace_button = new GLIButton(Dictionary.get("ReplaceSrcWithHTMLPrompt.ReplaceSrc"), Dictionary.get("ReplaceSrcWithHTMLPrompt.ReplaceSrc_Tooltip")); 128 132 JButton cancel_button = new GLIButton(Dictionary.get("General.Cancel"), Dictionary.get("General.Cancel_Tooltip"));
Note:
See TracChangeset
for help on using the changeset viewer.