- Timestamp:
- 2006-07-07T13:07:19+12:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/cdm/FormatManager.java
r11993 r12089 27 27 package org.greenstone.gatherer.cdm; 28 28 29 30 29 import java.awt.*; 31 30 import java.awt.event.*; … … 73 72 static final private String DOCUMENTBUTTONS = "DocumentButtons"; 74 73 static final private String DOCUMENTBUTTONS_DEFAULT_FORMAT = "Detach|Highlight"; 74 static final private String SEARCHTYPES = "SearchTypes"; 75 static final private String SEARCHTYPES_DEFAULT_FORMAT = "plain,form"; 76 75 77 static private HashMap format_map = null ; 76 78 … … 129 131 130 132 131 133 if (getFormat(DOCUMENTBUTTONS) == null) { 132 134 addFormat(new Format(DOCUMENTBUTTONS,"",DOCUMENTBUTTONS_DEFAULT_FORMAT)); 133 } 134 135 136 } 137 138 // only for mgpp and lucene colls - change! 139 if (getFormat(SEARCHTYPES)==null) { 140 addFormat(new Format(SEARCHTYPES, "", SEARCHTYPES_DEFAULT_FORMAT)); 141 } 142 135 143 } 136 144 … … 187 195 return controls; 188 196 } 197 198 /** Called when the detail mode has changed which in turn may cause several design elements to be available/hidden 199 * @param mode the new mode as an int 200 */ 201 public void modeChanged(int mode) { 202 203 } 204 189 205 190 206 /** updates the format model */ … … 257 273 } 258 274 259 p rivateclass FormatControl275 public class FormatControl 260 276 extends JPanel 261 277 implements Control{ … … 512 528 } 513 529 514 515 530 public Format getCurrentFormat() { 531 return (Format)format_list.getSelectedValue(); 532 533 } 534 516 535 /** Listens for clicks on the add button, and if the relevant details are provided adds a new format. Note that formats are responsible for codecing the values into something that can be a) stored in a DOM and b) written to file */ 517 536 private class AddListener … … 814 833 editor_textarea.setEditable(false); 815 834 editor_textarea.setBackground(Color.lightGray); 816 Dictionary.registerTooltip(editor_textarea, "CDM.FormatManager. Add_Tooltip");835 Dictionary.registerTooltip(editor_textarea, "CDM.FormatManager.Editor_Disabled_Tooltip"); 817 836 818 837 enabled_checkbox.setEnabled(false); … … 829 848 editor_textarea.setEditable(true); 830 849 editor_textarea.setBackground(Color.white); 831 Dictionary.registerTooltip(editor_textarea, "CDM.FormatManager.Edit _Tooltip");850 Dictionary.registerTooltip(editor_textarea, "CDM.FormatManager.Editor_Tooltip"); 832 851 enabled_checkbox.setEnabled(true); 833 852 variable_combobox.setEnabled(true);
Note:
See TracChangeset
for help on using the changeset viewer.