- Timestamp:
- 2003-05-30T13:40:17+12:00 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/gui/metaaudit/AutofilterDialog.java
r4366 r4421 44 44 import org.greenstone.gatherer.gui.metaaudit.Filter; 45 45 import org.greenstone.gatherer.gui.metaaudit.MetaAuditFrame; 46 import org.greenstone.gatherer.gui.SimpleMenuBar; 47 import org.greenstone.gatherer.gui.ModalDialog; 48 46 49 /** 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. 47 50 * @author John Thompson, Greenstone Digital Library, University of Waikato … … 49 52 */ 50 53 public final class AutofilterDialog 51 extends JDialog {54 extends ModalDialog { 52 55 /** The filter being edited. */ 53 56 private Autofilter filter; … … 89 92 private MetaAuditFrame dialog; 90 93 /** The default size for the autofilter control. */ 91 static final private Dimension SIZE = new Dimension(640, 2 20);94 static final private Dimension SIZE = new Dimension(640, 245); 92 95 /** Constructor. 93 96 * @param dialog A reference to the <strong>MetaAuditFrame</strong> that spawned this dialog. … … 103 106 setSize(SIZE); 104 107 setTitle(get("Title")); 108 setJMenuBar(new SimpleMenuBar("6.7")); 105 109 // Creation 106 110 JPanel content_pane = (JPanel) getContentPane(); … … 294 298 } 295 299 // Display 296 s how();300 setVisible(true); 297 301 dialog.toFront(); 298 302 return this.filter; … … 352 356 filter = null; 353 357 } 354 hide();358 setVisible(false); 355 359 } 356 360 }
Note:
See TracChangeset
for help on using the changeset viewer.