|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--org.fopps.ui.DialogFactory
DialogFactory provides property dialogs for entities (e. g. a feature). If no dialog exists for the given class, DialogFactory searches for dialogs for the 'best match', a dialog which accepts a superclass of the entity
hasDialog(Class)| Constructor Summary | |
DialogFactory()
|
|
| Method Summary | |
static javax.swing.JDialog |
getDialogForClass(java.lang.Class pEntityClass,
java.lang.Object[] pArgs)
Returns the (cached) dialog instance for a given entity class. |
static java.lang.reflect.Constructor |
guessConstructor(java.lang.Class c,
java.lang.Class[] parTypes)
Guesses a constructor for given parameter types |
static boolean |
hasDialog(java.lang.Class pEntityClass)
Returns true, if a (property) dialog for given class exists. |
static boolean |
hasDialog(java.lang.Class pEntityClass,
boolean pSearch)
Returns true, if dialog for given class exists. |
static boolean |
instanceExists(java.lang.Class pEntityClass)
Checks, if a dialog instance already exists. |
static void |
registerDialog(java.lang.Class pEntity,
java.lang.Class pDialogClass)
Add a (property) dialog for a given entity |
static void |
setup()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DialogFactory()
| Method Detail |
public static void setup()
public static void registerDialog(java.lang.Class pEntity,
java.lang.Class pDialogClass)
public static boolean hasDialog(java.lang.Class pEntityClass)
pEntityClass - Class to search for a dialog
public static boolean hasDialog(java.lang.Class pEntityClass,
boolean pSearch)
pEntityClass - Class to search for a dialogpSearch - If true, hasDialog searches also for dialogs of superclasses
public static boolean instanceExists(java.lang.Class pEntityClass)
getDialogForClass(Class,Object[])
public static javax.swing.JDialog getDialogForClass(java.lang.Class pEntityClass,
java.lang.Object[] pArgs)
pEntityClass - Class for which a dialog should be createdpArgs - Arguments which should be passed to the dialog constructor
Class,
Constructor
public static java.lang.reflect.Constructor guessConstructor(java.lang.Class c,
java.lang.Class[] parTypes)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||