Ignore:
Timestamp:
2004-01-09T14:48:06+13:00 (20 years ago)
Author:
jmt12
Message:

Finished commenting to 2.41 final standard

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/gui/AboutDialog.java

    r6318 r6382  
    22 *#########################################################################
    33 *
    4  * A component of the Gatherer application, part of the Greenstone digital
    5  * library suite from the New Zealand Digital Library Project at the
    6  * University of Waikato, New Zealand.
     4 * A component of the Greenstone Librarian Interface (GLI) application,
     5 * part of the Greenstone digital library software suite from the New
     6 * Zealand Digital Library Project at the University of Waikato,
     7 * New Zealand.
    78 *
    8  * <BR><BR>
     9 * Author: John Thompson
     10 *         Greenstone Project, New Zealand Digital Library
     11 *         University of Waikato
     12 *         http://www.nzdl.org
    913 *
    10  * Author: John Thompson, Greenstone Digital Library, University of Waikato
    11  *
    12  * <BR><BR>
    13  *
    14  * Copyright (C) 1999 New Zealand Digital Library Project
    15  *
    16  * <BR><BR>
     14 * Copyright (C) 2004 New Zealand Digital Library, University of Waikato
    1715 *
    1816 * This program is free software; you can redistribute it and/or modify
     
    2119 * (at your option) any later version.
    2220 *
    23  * <BR><BR>
    24  *
    2521 * This program is distributed in the hope that it will be useful,
    2622 * but WITHOUT ANY WARRANTY; without even the implied warranty of
    2723 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    2824 * GNU General Public License for more details.
    29  *
    30  * <BR><BR>
    3125 *
    3226 * You should have received a copy of the GNU General Public License
     
    4539import org.greenstone.gatherer.util.Utility;
    4640
    47 /**
    48  * @author John Thompson, Greenstone Digital Library, University of Waikato
    49  * @version 2.3c
     41/** Generates a pretty about dialog which not only thanks those for their contributions but also meets our legal requirements if we wish to ship the JVM with GLI.
     42 * @author John Thompson, Greenstone Project, New Zealand Digital Library, University of Waikato
     43 * @version 2.41 final
    5044 */
    51 
    5245// RICOH SOURCE CODE PUBLIC LICENSE - http://www.risource.org/RPL/RPL-1.0A.shtml
    5346public class AboutDialog
    5447    extends JDialog {
     48    /** The default size of the about dialog. */
     49    static final private Dimension SIZE = new Dimension(600, 325);
     50    /** The size of the GLI icon to display on dialog. */
     51    static final private int ICON_SIZE = 65;
     52    /** A reference to ourself so that our inner classes can dismiss us. */
    5553    private AboutDialog self;
     54    /** The button used for dismissing the about dialog. */
    5655    private JButton close_button;
    57 
    58     static final private Dimension SIZE = new Dimension(600, 325);
    59     static final private int ICON_SIZE = 65;
    60 
     56    /** The constructor not only builds, but displays the about dialog. This method doesn't return until the dialog is dismissed.
     57     * @param parent the JFrame which owns this dialog for use in centering the dialog
     58     * @see org.greenstone.gatherer.Dictionary#get
     59     * @see org.greenstone.gatherer.Dictionary#setBoth
     60     * @see org.greenstone.gatherer.Dictionary#setText
     61     * @see org.greenstone.gatherer.gui.AboutDialog.CloseButtonListener
     62     * @see org.greenstone.gatherer.gui.GLIButton
     63     * @see org.greenstone.gatherer.util.Utility#getImage
     64     * @see org.greenstone.gatherer.util.Utility#PROGRAM_NAME
     65     * @see org.greenstone.gatherer.util.Utility#PROGRAM_VERSION
     66     */
    6167    public AboutDialog(JFrame parent) {
    6268    super(parent, Dictionary.get("AboutDialog.Title"), true);
     
    154160    show();
    155161    }
    156 
     162    /** Listens for actions upon the close button, and when detected closes the dialog. */
    157163    private class CloseButtonListener
    158164    implements ActionListener {
     165    /** Called whenever an action occurs on the close button, thus asking the dialog to close.
     166     * @param event an ActionEvent containing information about the button press
     167     */
    159168    public void actionPerformed(ActionEvent event) {
    160169        self.hide();
Note: See TracChangeset for help on using the changeset viewer.