Changeset 8003
- Timestamp:
- 2004-08-19T16:13:45+12:00 (20 years ago)
- Location:
- trunk/gli/src/org/greenstone/gatherer/gui
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/gui/GComboBox.java
r7540 r8003 150 150 } 151 151 152 public void setBackgroundEditableColor(Color editable_background) {153 this.editable_background = editable_background;154 setEditor(new Editor());155 setRenderer(new Renderer());156 }152 // public void setBackgroundEditableColor(Color editable_background) { 153 // this.editable_background = editable_background; 154 // setEditor(new Editor()); 155 // setRenderer(new Renderer()); 156 // } 157 157 158 158 public void setBackgroundNonSelectionColor(Color background) { … … 184 184 } 185 185 186 public void setTextEditableColor(Color editable_foreground) {187 this.editable_foreground = editable_foreground;188 setEditor(new Editor());189 setRenderer(new Renderer());190 }186 // public void setTextEditableColor(Color editable_foreground) { 187 // this.editable_foreground = editable_foreground; 188 // setEditor(new Editor()); 189 // setRenderer(new Renderer()); 190 // } 191 191 192 192 public void setTextNonSelectionColor(Color foreground) { -
trunk/gli/src/org/greenstone/gatherer/gui/GUIManager.java
r7982 r8003 536 536 } 537 537 538 public Component getSelectedView() {539 return tab_pane.getSelectedComponent();540 }538 // public Component getSelectedView() { 539 // return tab_pane.getSelectedComponent(); 540 // } 541 541 /** This method is called when the collection is being built, and is used to disable all controls in all pane which could change the state of the collection. 542 542 */ … … 615 615 616 616 /** Specifies whether a certain tab is enabled or not. */ 617 p ublicvoid setTabEnabled(String rawname, boolean state) {617 private void setTabEnabled(String rawname, boolean state) { 618 618 // Retrieve the dictionary based name. 619 619 String name = Dictionary.get("GUI." + rawname); … … 682 682 /** When the edit metadata option is choosen from the menu, this method is called to ensure we only edit the metadata if there is metadata loaded. 683 683 */ 684 p ublicvoid showEditMetadataBox() {684 private void showEditMetadataBox() { 685 685 if(Gatherer.c_man.getCollection() != null) { 686 686 Gatherer.c_man.getCollection().msm.editMDS(null, MetadataEditorManager.NORMAL); … … 689 689 /** When the load collection option is choosen this method is called to produce the modal file load prompt. 690 690 */ 691 p ublicboolean showLoadCollectionBox() {691 private boolean showLoadCollectionBox() { 692 692 boolean result = false; 693 693 // We first try the simple open collection dialog … … 759 759 /** This method is used to open the new collection box on the screen. 760 760 */ 761 p ublicvoid showNewCollectionPrompt() {761 private void showNewCollectionPrompt() { 762 762 NewCollectionMetadataPrompt ncm_prompt = null; 763 763 // Create the collection details prompt from new collection prompt … … 829 829 * @return A <i>boolean</i> which is <i>true</i> if the collection was saved successfully, <i>false</i> otherwise. 830 830 */ 831 p ublicboolean showSaveCollectionBox(boolean close_after, boolean exit_after) {831 private boolean showSaveCollectionBox(boolean close_after, boolean exit_after) { 832 832 //SaveCollectionBox save_collection_box = new SaveCollectionBox(); 833 833 //Rectangle bounds = save_collection_box.getBounds(); -
trunk/gli/src/org/greenstone/gatherer/gui/LongProgressBar.java
r7361 r8003 141 141 142 142 /** This method is an unsafe way to set the progress bar to be indeterminate, -unless- it is called from the Event Queue. */ 143 p ublicvoid unsafeSetIndeterminate(boolean state) {143 private void unsafeSetIndeterminate(boolean state) { 144 144 super.setIndeterminate(state); 145 145 } 146 146 147 p ublicvoid unsafeSetString(String label) {147 private void unsafeSetString(String label) { 148 148 super.setString(label); 149 149 } 150 150 151 p ublicvoid unsafeSetValue(int value) {151 private void unsafeSetValue(int value) { 152 152 super.setValue(value); 153 153 } -
trunk/gli/src/org/greenstone/gatherer/gui/TransformCharacterTextField.java
r6046 r8003 63 63 super(text); 64 64 } 65 66 public void blockCharacter(char x) {67 mappings.put(new Character(x), null);68 }65 66 // public void blockCharacter(char x) { 67 // mappings.put(new Character(x), null); 68 // } 69 69 70 70 public void replaceCharacter(char x, char y) { … … 72 72 } 73 73 74 public void restoreCharacter(char x) {75 mappings.remove(new Character(x));76 }74 // public void restoreCharacter(char x) { 75 // mappings.remove(new Character(x)); 76 // } 77 77 78 78 public void setBlockAllExceptMappings(boolean block_all_except_mappings) { … … 82 82 83 83 protected Document createDefaultModel() { 84 return new TransformCharacterTextDocument();84 return new TransformCharacterTextDocument(); 85 85 } 86 86 87 87 private class TransformCharacterTextDocument 88 88 extends PlainDocument { -
trunk/gli/src/org/greenstone/gatherer/gui/metaaudit/Autofilter.java
r6221 r8003 82 82 * @return -1 if s is less than p, 0 if they are equal, 1 if s is greater than p 83 83 */ 84 static p ublicint compareToPattern(String s, String p) {84 static private int compareToPattern(String s, String p) { 85 85 if(p.indexOf(StaticStrings.STAR_CHAR) == -1) { 86 86 return compareToPattern(s, p, 0, 0, false);
Note:
See TracChangeset
for help on using the changeset viewer.