source: trunk/src/org/expeditee/gui/FrameCache.java@ 1460

Last change on this file since 1460 was 1238, checked in by bln4, 5 years ago
File size: 1.1 KB
Line 
1/**
2 * FrameCache.java
3 * Copyright (C) 2010 New Zealand Digital Library, http://expeditee.org
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19package org.expeditee.gui;
20
21import java.util.HashMap;
22
23public class FrameCache extends HashMap<String, Frame> {
24
25 /**
26 *
27 */
28 private static final long serialVersionUID = 1L;
29
30 public Frame remove(String key) {
31 Frame toRemove = super.remove(key);
32 toRemove.dispose();
33 return toRemove;
34 }
35}
Note: See TracBrowser for help on using the repository browser.