01: /*
02: * ResettableSplitPane.java
03: *
04: * This file is part of SQL Workbench/J, http://www.sql-workbench.net
05: *
06: * Copyright 2002-2008, Thomas Kellerer
07: * No part of this code maybe reused without the permission of the author
08: *
09: * To contact the author please send an email to: support@sql-workbench.net
10: *
11: */
12: package workbench.gui.dbobjects;
13:
14: import java.util.HashSet;
15: import java.util.Set;
16: import workbench.gui.components.WbSplitPane;
17: import workbench.interfaces.Resettable;
18:
19: /**
20: * @author support@sql-workbench.net
21: */
22: public class ResettableSplitPane extends WbSplitPane implements
23: Resettable {
24: private Set<Resettable> clients = new HashSet<Resettable>();
25:
26: public ResettableSplitPane(int type) {
27: super (type);
28: }
29:
30: public void addClient(Resettable r) {
31: clients.add(r);
32: }
33:
34: public void reset() {
35: for (Resettable r : clients) {
36: r.reset();
37: }
38: }
39:
40: }
|