/[schmitzm]/trunk/src/skrueger/swing/DialogManager.java
ViewVC logotype

Diff of /trunk/src/skrueger/swing/DialogManager.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 421 by alfonx, Thu Oct 1 21:06:37 2009 UTC revision 422 by alfonx, Fri Oct 2 00:47:48 2009 UTC
# Line 3  package skrueger.swing; Line 3  package skrueger.swing;
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    
# Line 19  public abstract class DialogManager<KEY, Line 20  public abstract class DialogManager<KEY,
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
# Line 136  public abstract class DialogManager<KEY, Line 137  public abstract class DialogManager<KEY,
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  }  }

Legend:
Removed from v.421  
changed lines
  Added in v.422

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26