3 |
import java.awt.Component; |
import java.awt.Component; |
4 |
import java.awt.event.WindowAdapter; |
import java.awt.event.WindowAdapter; |
5 |
import java.awt.event.WindowEvent; |
import java.awt.event.WindowEvent; |
6 |
|
import java.util.Collection; |
7 |
import java.util.HashMap; |
import java.util.HashMap; |
8 |
import java.util.HashSet; |
import java.util.HashSet; |
9 |
|
|
20 |
|
|
21 |
} |
} |
22 |
|
|
23 |
private HashMap<KEY, DIALOG> dialogCache = new HashMap<KEY, DIALOG>(); |
protected HashMap<KEY, DIALOG> dialogCache = new HashMap<KEY, DIALOG>(); |
24 |
|
|
25 |
/** |
/** |
26 |
* A {@link DialogManager} instance can be created for any extension of |
* A {@link DialogManager} instance can be created for any extension of |
137 |
return atLeastOne; |
return atLeastOne; |
138 |
} |
} |
139 |
|
|
140 |
|
/** |
141 |
|
* @return All instances of DIALOG as they are cached. |
142 |
|
*/ |
143 |
|
public Collection<DIALOG> getAllInstances() { |
144 |
|
return dialogCache.values(); |
145 |
|
} |
146 |
|
|
147 |
|
|
148 |
} |
} |