org.archiviststoolkit.mydomain
Class DomainEditorFactory

java.lang.Object
  extended by org.archiviststoolkit.mydomain.DomainEditorFactory

public final class DomainEditorFactory
extends java.lang.Object

A singleton in which we store the dialogs associated with a specific model.


Method Summary
 void createDomainEditors()
           
 DomainEditor createDomainEditorWithParent(java.lang.Class clazz, javax.swing.JDialog parent, boolean useParentAsEventListener)
           
 DomainEditor createDomainEditorWithParent(java.lang.Class clazz, javax.swing.JDialog parent, javax.swing.JTable callingTable)
           
 DomainEditor createDomainEditorWithParent(java.lang.Class clazz, javax.swing.JDialog parent, javax.swing.JTable callingTable, boolean useParentAsEventListener)
           
 DomainEditor createDomainEditorWithParent(java.lang.Class clazz, javax.swing.JDialog parent, javax.swing.JTable callingTable, DomainObject callingDomainModel)
           
 DomainEditor getDialog(java.lang.Class clazz)
          Get an editor associated with a class.
 DomainEditor getDialog(java.lang.Class clazz, javax.swing.JDialog parent)
          Get an editor associated with a class.
 DomainEditor getDialog(java.lang.Class clazz, javax.swing.JDialog parent, javax.swing.JTable callingTable)
          Get an editor associated with a class.
 DomainEditor getDialog(java.lang.Class clazz, javax.swing.JTable callingTable)
          Get an editor associated with a class.
 DomainEditor getDialog(java.lang.Class clazz, javax.swing.JTable callingTable, DomainObject callingDomainModel)
          Get an editor associated with a class.
static DomainEditorFactory getInstance()
          Singleton access method.
 QueryEditor getSearchDialog(java.lang.Class clazz)
          Get an editor associated with a class.
 void putSearchDialog(java.lang.Class clazz, javax.swing.JFrame parent)
          Place a editor into the cache.
 void updateDomainEditors()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static DomainEditorFactory getInstance()
Singleton access method.

Returns:
the instance of this singleton

getDialog

public DomainEditor getDialog(java.lang.Class clazz)
Get an editor associated with a class.

Parameters:
clazz - the class of a specific model
Returns:
the editor associated with the model

getDialog

public DomainEditor getDialog(java.lang.Class clazz,
                              javax.swing.JDialog parent)
                       throws UnsupportedDomainEditorException,
                              DomainEditorCreationException
Get an editor associated with a class.

Parameters:
clazz - the class of a specific model
Returns:
the editor associated with the model
Throws:
UnsupportedDomainEditorException
DomainEditorCreationException

getDialog

public DomainEditor getDialog(java.lang.Class clazz,
                              javax.swing.JTable callingTable)
Get an editor associated with a class.

Parameters:
clazz - the class of a specific model
Returns:
the editor associated with the model

getDialog

public DomainEditor getDialog(java.lang.Class clazz,
                              javax.swing.JDialog parent,
                              javax.swing.JTable callingTable)
                       throws UnsupportedDomainEditorException,
                              DomainEditorCreationException
Get an editor associated with a class.

Parameters:
clazz - the class of a specific model
Returns:
the editor associated with the model
Throws:
UnsupportedDomainEditorException
DomainEditorCreationException

getDialog

public DomainEditor getDialog(java.lang.Class clazz,
                              javax.swing.JTable callingTable,
                              DomainObject callingDomainModel)
Get an editor associated with a class.

Parameters:
clazz - the class of a specific model
Returns:
the editor associated with the model

getSearchDialog

public QueryEditor getSearchDialog(java.lang.Class clazz)
Get an editor associated with a class.

Parameters:
clazz - the class of a specific model
Returns:
the editor associated with the model

putSearchDialog

public void putSearchDialog(java.lang.Class clazz,
                            javax.swing.JFrame parent)
Place a editor into the cache.

Parameters:
clazz - the class to associate
parent - the parent frame

createDomainEditorWithParent

public DomainEditor createDomainEditorWithParent(java.lang.Class clazz,
                                                 javax.swing.JDialog parent,
                                                 javax.swing.JTable callingTable)
                                          throws DomainEditorCreationException
Throws:
DomainEditorCreationException

createDomainEditorWithParent

public DomainEditor createDomainEditorWithParent(java.lang.Class clazz,
                                                 javax.swing.JDialog parent,
                                                 javax.swing.JTable callingTable,
                                                 boolean useParentAsEventListener)
                                          throws DomainEditorCreationException
Throws:
DomainEditorCreationException

createDomainEditorWithParent

public DomainEditor createDomainEditorWithParent(java.lang.Class clazz,
                                                 javax.swing.JDialog parent,
                                                 javax.swing.JTable callingTable,
                                                 DomainObject callingDomainModel)
                                          throws DomainEditorCreationException
Throws:
DomainEditorCreationException

createDomainEditorWithParent

public DomainEditor createDomainEditorWithParent(java.lang.Class clazz,
                                                 javax.swing.JDialog parent,
                                                 boolean useParentAsEventListener)
                                          throws DomainEditorCreationException
Throws:
DomainEditorCreationException

createDomainEditors

public void createDomainEditors()

updateDomainEditors

public void updateDomainEditors()