Ignore:
Timestamp:
2003-05-30T13:40:17+12:00 (21 years ago)
Author:
kjdon
Message:

the modal dialog now is one of our special ModalDialogs which only block the parent, enabling the use of help files while the dialog is open. A SimpleMenuBar with help on it has been added to the dialog.

File:
1 edited

Legend:

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

    r4366 r4421  
    4444import org.greenstone.gatherer.gui.metaaudit.Filter;
    4545import org.greenstone.gatherer.gui.metaaudit.MetaAuditFrame;
     46import org.greenstone.gatherer.gui.SimpleMenuBar;
     47import org.greenstone.gatherer.gui.ModalDialog;
     48
    4649/** The autofilter concept comes from Microsoft Excel spreadsheets that use autofilters to filter to the sheet. When you click on the heading of a column, a new prompt allows you to specify what filter should be acting apon the selected column. Any new filter is conjoined with any previous filters to provide a sheet containing only rows that match all current filters. Each column must also provide an indicator for determining if a filter is set (in this case a special icon) and and a method for removing a filter (use the clear filter button within the autofilter dialog). Having recently discovered that most JVMs aren't very good at recoving memory used by dialog and frame windows, special care must be made to deallocate all references properly, as a user may open several dozen autofilter prompts over the lifetime of a session.
    4750 * @author John Thompson, Greenstone Digital Library, University of Waikato
     
    4952 */
    5053public final class AutofilterDialog
    51     extends JDialog {
     54    extends ModalDialog {
    5255    /** The filter being edited. */
    5356    private Autofilter filter;
     
    8992    private MetaAuditFrame dialog;
    9093    /** The default size for the autofilter control. */
    91     static final private Dimension SIZE = new Dimension(640, 220);
     94    static final private Dimension SIZE = new Dimension(640, 245);
    9295    /** Constructor.
    9396     * @param dialog A reference to the <strong>MetaAuditFrame</strong> that spawned this dialog.
     
    103106    setSize(SIZE);
    104107    setTitle(get("Title"));
     108    setJMenuBar(new SimpleMenuBar("6.7"));
    105109    // Creation
    106110    JPanel content_pane = (JPanel) getContentPane();
     
    294298    }
    295299    // Display   
    296     show();
     300    setVisible(true);
    297301    dialog.toFront();
    298302    return this.filter;
     
    352356        filter = null;
    353357        }
    354         hide();
     358        setVisible(false);
    355359    }
    356360    }
Note: See TracChangeset for help on using the changeset viewer.