/[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 685 by alfonx, Wed Feb 10 15:04:02 2010 UTC revision 960 by alfonx, Tue Aug 10 12:12:58 2010 UTC
# Line 17  public abstract class DialogManager<KEY, Line 17  public abstract class DialogManager<KEY,
17          public abstract class FactoryInterface {          public abstract class FactoryInterface {
18    
19                  public abstract DIALOG create();                  public abstract DIALOG create();
20                    
21                  /** May be overridden to add Listeners **/                  /** May be overridden to add Listeners **/
22                  public void afterCreation(DIALOG newInstance){};                  public void afterCreation(DIALOG newInstance) {
23                    };
24    
25                  /** May be overridden to remove Listeners added earlier **/                  /** May be overridden to remove Listeners added earlier **/
26                  public void beforeDispose(DIALOG newInstance){};                  public void beforeDispose(DIALOG newInstance) {
27                    };
28    
29          }          }
30    
# Line 51  public abstract class DialogManager<KEY, Line 53  public abstract class DialogManager<KEY,
53          }          }
54    
55          /**          /**
56             * Implementing this should have a <br/>
57             * <code>try { ... return ... } catch (Exception e) {
58                                    ExceptionDialog.show(owner, e);
59                                    return null;
60                            } </code> block.
61             *
62           * @param key           * @param key
63           * @param owner           * @param owner
64           * @param constArgs           * @param constArgs
65           * @return a cached instance or creates a new instance. Instances are always retuned visible and toFront.           * @return a cached instance or creates a new instance. Instances are always
66             *         returned visible and toFront.
67           */           */
68          public abstract DIALOG getInstanceFor(final KEY key, final Component owner,          public abstract DIALOG getInstanceFor(final KEY key, final Component owner,
69                          final Object... constArgs);                          final Object... constArgs);
# Line 130  public abstract class DialogManager<KEY, Line 139  public abstract class DialogManager<KEY,
139                                  public void windowClosing(final WindowEvent e) {                                  public void windowClosing(final WindowEvent e) {
140                                  }                                  }
141                          });                          });
142                            
143                          factory.afterCreation(dialog);                          factory.afterCreation(dialog);
144                  }                  }
                   
145    
146                  return dialog;                  return dialog;
147          }          }
# Line 166  public abstract class DialogManager<KEY, Line 174  public abstract class DialogManager<KEY,
174                  return dialogCache.values();                  return dialogCache.values();
175          }          }
176    
   
177  }  }

Legend:
Removed from v.685  
changed lines
  Added in v.960

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26