Changeset 8002 for trunk/gli/src/org/greenstone
- Timestamp:
- 2004-08-19T15:07:52+12:00 (20 years ago)
- Location:
- trunk/gli/src/org/greenstone/gatherer/cdm
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/cdm/ClassifierManager.java
r7996 r8002 90 90 * @see org.greenstone.gatherer.cdm.DynamicListModel 91 91 */ 92 p ublicvoid addClassifier(Classifier classifier) {92 private void addClassifier(Classifier classifier) { 93 93 if(!library.contains(classifier)) { 94 94 library.add(classifier); … … 100 100 * @see org.greenstone.gatherer.cdm.DynamicListModel 101 101 */ 102 p ublicvoid assignClassifier(Classifier classifier) {102 private void assignClassifier(Classifier classifier) { 103 103 if(!contains(classifier)) { 104 104 Element element = classifier.getElement(); … … 199 199 * @param all true to move to move all the way, false for a single step. 200 200 */ 201 p ublicvoid moveClassifier(Classifier classifier, boolean direction, boolean all) {201 private void moveClassifier(Classifier classifier, boolean direction, boolean all) { 202 202 if(getSize() < 2) { 203 203 Gatherer.println("Not enough classifiers to allow moving."); … … 260 260 * @see org.greenstone.gatherer.cdm.DynamicListModel 261 261 */ 262 p ublicvoid removeClassifier(Classifier classifier) {262 private void removeClassifier(Classifier classifier) { 263 263 remove(classifier); 264 264 Gatherer.c_man.configurationChanged(); … … 268 268 * @see org.greenstone.gatherer.util.Utility 269 269 */ 270 p ublicvoid saveClassifiers() {270 private void saveClassifiers() { 271 271 try { 272 272 FileOutputStream file = new FileOutputStream(Utility.BASE_DIR + "classifiers.dat"); -
trunk/gli/src/org/greenstone/gatherer/cdm/CollectionDesignManager.java
r7739 r8002 111 111 * @see org.greenstone.gatherer.cdm.TranslationView 112 112 */ 113 p ublicvoid loadDesignDetails() {113 private void loadDesignDetails() { 114 114 // Create the command information managers, registering the config file with each as necessary 115 115 language_manager = new LanguageManager(collect_config.getLanguages()); -
trunk/gli/src/org/greenstone/gatherer/cdm/FormatManager.java
r7597 r8002 108 108 * @param format The <strong>Format</strong> to add. 109 109 */ 110 p ublicvoid addFormat(Format format) {110 private void addFormat(Format format) { 111 111 if(!contains(format)) { 112 112 Element element = format.getElement(); … … 134 134 * @param index The location of the desired format, as an <i>int</i>. 135 135 */ 136 p ublicFormat getFormat(int index) {136 private Format getFormat(int index) { 137 137 Format result = null; 138 138 if(0 < index && index < getSize()) { … … 142 142 } 143 143 144 p ublicFormat getFormat(String name) {144 private Format getFormat(String name) { 145 145 int model_size = getSize(); 146 146 for(int index = 0; index < model_size; index++) { … … 166 166 * @param format The <strong>Format</strong> to remove. 167 167 */ 168 p ublicvoid removeFormat(Format format) {168 private void removeFormat(Format format) { 169 169 remove(format); 170 170 Gatherer.c_man.configurationChanged(); -
trunk/gli/src/org/greenstone/gatherer/cdm/IndexManager.java
r7995 r8002 88 88 * @see org.greenstone.gatherer.collection.CollectionManager 89 89 */ 90 p ublicvoid addIndex(Index index, CollectionMeta metadatum) {90 private void addIndex(Index index, CollectionMeta metadatum) { 91 91 ///ystem.err.println("Adding an index: " + index.toString()); 92 92 if(!contains(index)) { … … 111 111 } 112 112 113 p ublicvoid addLevel(Level level, CollectionMeta metadatum) {113 private void addLevel(Level level, CollectionMeta metadatum) { 114 114 if(!levels_model.contains(level)) { 115 115 CollectionDesignManager.collectionmeta_manager.addMetadatum(metadatum); … … 202 202 } 203 203 204 p ublicvoid moveIndex(Index index, boolean move_up) {204 private void moveIndex(Index index, boolean move_up) { 205 205 // Determine the indexes current position 206 206 int position = indexOf(index); … … 232 232 } 233 233 234 p ublicvoid moveLevel(Level level, boolean move_up) {234 private void moveLevel(Level level, boolean move_up) { 235 235 // Determine the leveles current position 236 236 int position = levels_model.indexOf(level); … … 269 269 * @see org.greenstone.gatherer.collection.CollectionManager 270 270 */ 271 p ublicvoid removeIndex(Index index) {271 private void removeIndex(Index index) { 272 272 if(index != null) { 273 273 // Remove any current metadata from this index … … 291 291 } 292 292 293 p ublicvoid removeLevel(Level level) {293 private void removeLevel(Level level) { 294 294 if(level != null) { 295 295 // Remove any current metadata from this level -
trunk/gli/src/org/greenstone/gatherer/cdm/LanguageManager.java
r7157 r8002 127 127 * @see org.greenstone.gatherer.collection.CollectionManager 128 128 */ 129 p ublicvoid addLanguage(Language language) {129 private void addLanguage(Language language) { 130 130 if(!contains(language)) { 131 131 Element element = language.getElement(); … … 201 201 * @see org.greenstone.gatherer.collection.CollectionManager 202 202 */ 203 p ublicvoid removeLanguage(Language language) {203 private void removeLanguage(Language language) { 204 204 remove(language); 205 205 if(default_language != null && default_language.equals(language)) { -
trunk/gli/src/org/greenstone/gatherer/cdm/PlugInManager.java
r7959 r8002 81 81 * @param plugin the new base PlugIn 82 82 */ 83 p ublicvoid addPlugIn(PlugIn plugin) {84 if(!library.contains(plugin)) {85 library.add(plugin);86 }83 private void addPlugIn(PlugIn plugin) { 84 if(!library.contains(plugin)) { 85 library.add(plugin); 86 } 87 87 } 88 88 … … 90 90 * @param plugin the PlugIn to assign 91 91 */ 92 p ublicvoid assignPlugIn(PlugIn plugin) {92 private void assignPlugIn(PlugIn plugin) { 93 93 if(plugin.getName().equals(StaticStrings.RECPLUG_STR) || plugin.getName().equals(StaticStrings.ARCPLUG_STR)) { 94 94 addAfter(plugin, separator_plugin); // Adds after separator … … 171 171 */ 172 172 // why are all the error notices there when the buttons are disabled is you cant move??? 173 p ublicvoid movePlugIn(PlugIn plugin, boolean direction, boolean all) {173 private void movePlugIn(PlugIn plugin, boolean direction, boolean all) { 174 174 // Can't ever move RecPlug or ArcPlug 175 175 if(super.getSize() < 4) { … … 274 274 * @param plugin The <strong>PlugIn</strong> to remove. 275 275 */ 276 p ublicvoid removePlugIn(PlugIn plugin) {276 private void removePlugIn(PlugIn plugin) { 277 277 remove(plugin); 278 278 Gatherer.c_man.configurationChanged(); … … 281 281 /** Method to cache the current contents of library (known plugins) to file. 282 282 */ 283 p ublicvoid savePlugIns() {283 private void savePlugIns() { 284 284 try { 285 285 FileOutputStream file = new FileOutputStream(Utility.BASE_DIR + "plugins.dat"); … … 296 296 * @param modify_row_count true to hide the last three lines, false otherwise 297 297 */ 298 p ublicvoid setHideLines(boolean modify_row_count) {298 private void setHideLines(boolean modify_row_count) { 299 299 this.modify_row_count = modify_row_count; 300 300 int original_size = super.getSize(); -
trunk/gli/src/org/greenstone/gatherer/cdm/SearchTypeManager.java
r7996 r8002 68 68 } 69 69 70 p ublicvoid addSearchType(SearchType searchtype) {70 private void addSearchType(SearchType searchtype) { 71 71 if(!contains(searchtype)) { 72 72 add(getSize(), searchtype); … … 104 104 } 105 105 106 p ublicvoid moveSearchType(SearchType search_type, boolean direction) {106 private void moveSearchType(SearchType search_type, boolean direction) { 107 107 // Try to move the classifier one step in the desired direction. 108 108 int index = indexOf(search_type); … … 133 133 } 134 134 135 p ublicvoid removeSearchType(SearchType searchtype) {135 private void removeSearchType(SearchType searchtype) { 136 136 if(contains(searchtype)) { 137 137 remove(searchtype); -
trunk/gli/src/org/greenstone/gatherer/cdm/SubcollectionIndexManager.java
r7996 r8002 73 73 * @see org.greenstone.gatherer.collection.CollectionManager 74 74 */ 75 p ublicvoid addSubcollectionIndex(SubcollectionIndex subindex) {75 private void addSubcollectionIndex(SubcollectionIndex subindex) { 76 76 if(!contains(subindex)) { 77 77 add(getSize(), subindex); … … 112 112 * @return the SubcollectionIndex requested or null if no such subindex 113 113 */ 114 p ublicSubcollectionIndex getSubcollectionIndex(String id) {114 private SubcollectionIndex getSubcollectionIndex(String id) { 115 115 int size = getSize(); 116 116 for(int i = 0; i < size; i++) { … … 135 135 * @see org.greenstone.gatherer.collection.CollectionManager 136 136 */ 137 p ublicvoid removeSubcollectionIndex(SubcollectionIndex subindex) {137 private void removeSubcollectionIndex(SubcollectionIndex subindex) { 138 138 if(subindex != null) { 139 139 // Remove any current metadata from this index … … 174 174 * @see org.greenstone.gatherer.cdm.SubcollectionIndex 175 175 */ 176 p ublicvoid setDefaultSubcollectionIndex(SubcollectionIndex index) {176 private void setDefaultSubcollectionIndex(SubcollectionIndex index) { 177 177 if(index != null) { 178 178 if(default_index == null) { -
trunk/gli/src/org/greenstone/gatherer/cdm/SubcollectionManager.java
r7995 r8002 89 89 * @see org.greenstone.gatherer.collection.CollectionManager 90 90 */ 91 p ublicvoid addSubcollection(Subcollection subcollection) {91 private void addSubcollection(Subcollection subcollection) { 92 92 if(!contains(subcollection)) { 93 93 Element element = subcollection.getElement(); … … 121 121 * @return the requested Subcollection or null if no such subcollection exists. 122 122 */ 123 p ublicSubcollection getSubcollection(String name) {123 private Subcollection getSubcollection(String name) { 124 124 Subcollection result = null; 125 125 int size = getSize(); … … 133 133 } 134 134 135 /** Method to get all of the subcollections defined.136 * @return an ArrayList of subcollections137 */138 /* private ArrayList getSubcollections() {139 return children();140 } */141 135 142 136 /** Called when the detail mode has changed which in turn may cause several design elements to be available/hidden … … 154 148 * @see org.greenstone.gatherer.collection.CollectionManager 155 149 */ 156 p ublicvoid removeSubcollection(Subcollection subcollection) {150 private void removeSubcollection(Subcollection subcollection) { 157 151 remove(subcollection); 158 152 Gatherer.c_man.configurationChanged(); 159 153 } 160 154 161 p ublicvoid updateSubcollection(Subcollection subcollection, String name, boolean include, String source, String pattern, String flags) {155 private void updateSubcollection(Subcollection subcollection, String name, boolean include, String source, String pattern, String flags) { 162 156 subcollection.setFlags(flags); 163 157 subcollection.setInclusive(include); -
trunk/gli/src/org/greenstone/gatherer/cdm/SuperCollectionManager.java
r7326 r8002 71 71 } 72 72 73 p ublicvoid addSuperCollection(SuperCollection supercollection) {73 private void addSuperCollection(SuperCollection supercollection) { 74 74 if(!contains(supercollection)) { 75 75 add(getSize(), supercollection); … … 101 101 } 102 102 103 p ublicvoid removeSuperCollection(SuperCollection supercollection) {103 private void removeSuperCollection(SuperCollection supercollection) { 104 104 remove(supercollection); 105 105 }
Note:
See TracChangeset
for help on using the changeset viewer.