Changeset 8003


Ignore:
Timestamp:
2004-08-19T16:13:45+12:00 (20 years ago)
Author:
mdewsnip
Message:

Tightened up some public functions to be private.

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  
    150150    }
    151151
    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//      }
    157157
    158158    public void setBackgroundNonSelectionColor(Color background) {
     
    184184    }
    185185
    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//      }
    191191
    192192    public void setTextNonSelectionColor(Color foreground) {
  • trunk/gli/src/org/greenstone/gatherer/gui/GUIManager.java

    r7982 r8003  
    536536    }
    537537
    538     public Component getSelectedView() {
    539     return tab_pane.getSelectedComponent();
    540     }
     538//      public Component getSelectedView() {
     539//      return tab_pane.getSelectedComponent();
     540//      }
    541541    /** 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.
    542542     */
     
    615615
    616616    /** Specifies whether a certain tab is enabled or not. */
    617     public void setTabEnabled(String rawname, boolean state) {
     617    private void setTabEnabled(String rawname, boolean state) {
    618618    // Retrieve the dictionary based name.
    619619    String name = Dictionary.get("GUI." + rawname);
     
    682682    /** 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.
    683683     */
    684     public void showEditMetadataBox() {
     684    private void showEditMetadataBox() {
    685685    if(Gatherer.c_man.getCollection() != null) {
    686686        Gatherer.c_man.getCollection().msm.editMDS(null, MetadataEditorManager.NORMAL);
     
    689689    /** When the load collection option is choosen this method is called to produce the modal file load prompt.
    690690     */
    691     public boolean showLoadCollectionBox() {
     691    private boolean showLoadCollectionBox() {
    692692    boolean result = false;
    693693    // We first try the simple open collection dialog
     
    759759    /** This method is used to open the new collection box on the screen.
    760760     */
    761     public void showNewCollectionPrompt() {
     761    private void showNewCollectionPrompt() {
    762762    NewCollectionMetadataPrompt ncm_prompt = null;
    763763    // Create the collection details prompt from new collection prompt
     
    829829     * @return A <i>boolean</i> which is <i>true</i> if the collection was saved successfully, <i>false</i> otherwise.
    830830     */
    831     public boolean showSaveCollectionBox(boolean close_after, boolean exit_after) {
     831    private boolean showSaveCollectionBox(boolean close_after, boolean exit_after) {
    832832    //SaveCollectionBox save_collection_box = new SaveCollectionBox();
    833833    //Rectangle bounds = save_collection_box.getBounds();
  • trunk/gli/src/org/greenstone/gatherer/gui/LongProgressBar.java

    r7361 r8003  
    141141
    142142    /** This method is an unsafe way to set the progress bar to be indeterminate, -unless- it is called from the Event Queue. */
    143     public void unsafeSetIndeterminate(boolean state) {
     143    private void unsafeSetIndeterminate(boolean state) {
    144144    super.setIndeterminate(state);
    145145    }
    146146
    147     public void unsafeSetString(String label) {
     147    private void unsafeSetString(String label) {
    148148    super.setString(label);
    149149    }
    150150
    151     public void unsafeSetValue(int value) {
     151    private void unsafeSetValue(int value) {
    152152    super.setValue(value);
    153153    }
  • trunk/gli/src/org/greenstone/gatherer/gui/TransformCharacterTextField.java

    r6046 r8003  
    6363    super(text);
    6464    }
    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//      }
    6969
    7070    public void replaceCharacter(char x, char y) {
     
    7272    }
    7373
    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//      }
    7777
    7878    public void setBlockAllExceptMappings(boolean block_all_except_mappings) {
     
    8282
    8383    protected Document createDefaultModel() {
    84     return new TransformCharacterTextDocument();
     84    return new TransformCharacterTextDocument();
    8585    }
    86  
     86
    8787    private class TransformCharacterTextDocument
    8888    extends PlainDocument {
  • trunk/gli/src/org/greenstone/gatherer/gui/metaaudit/Autofilter.java

    r6221 r8003  
    8282     * @return -1 if s is less than p, 0 if they are equal, 1 if s is greater than p
    8383     */
    84     static public int compareToPattern(String s, String p) {
     84    static private int compareToPattern(String s, String p) {
    8585    if(p.indexOf(StaticStrings.STAR_CHAR) == -1) {
    8686        return compareToPattern(s, p, 0, 0, false);
Note: See TracChangeset for help on using the changeset viewer.