|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deduced.controller.implementation.AbstractControllerFactory
org.deduced.controller.implementation.DefaultControllerFactory
public class DefaultControllerFactory

Default Controller Factory
| Field Summary | |
|---|---|
private java.util.Map<PropertyCollection<?,?>,java.lang.Class<?>> |
controllerCreationMap
the map between the type of collection to control and the class of the controller to use |
private java.util.Map<PropertyCollection<?,?>,java.lang.Class<?>> |
listControllerCreationMap
the map between the list type of collection to control and the class of the controller to use |
| Constructor Summary | |
|---|---|
DefaultControllerFactory()
DefaultControllerFactory Constructor |
|
| Method Summary | |
|---|---|
void |
addControllerType(java.lang.Class<?> controllerClass,
PropertyCollection<?,?> modelType)
match a controller class type to a controlled collection type |
void |
addListControllerType(java.lang.Class<?> controllerClass,
PropertyCollection<?,?> modelType)
match a list controller class type to a controlled collection type |
PropertyCollectionController |
createController(PropertyCollection<?,?> model)
(non-Javadoc) |
PropertyCollectionController |
createListController(PropertyCollection<?,?> model,
PropertyCollection<?,?> typeInList)
create a List Controller |
PropertyController |
createPropertyController(PropertyCollection<?,?> model,
java.lang.Object key)
(non-Javadoc) |
| Methods inherited from class org.deduced.controller.implementation.AbstractControllerFactory |
|---|
getControlLayer, initializeControlLayer, initializeListController, initializePropertyCollectionController, initializePropertyController, isAddRemoveAvailableOnModel, setControlLayer |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.util.Map<PropertyCollection<?,?>,java.lang.Class<?>> controllerCreationMap
private java.util.Map<PropertyCollection<?,?>,java.lang.Class<?>> listControllerCreationMap
| Constructor Detail |
|---|
public DefaultControllerFactory()
| Method Detail |
|---|
public PropertyController createPropertyController(PropertyCollection<?,?> model,
java.lang.Object key)
model - the model to controlkey - the key to control
ControllerFactory.createPropertyController(org.deduced.PropertyCollection,
java.lang.Object)public PropertyCollectionController createController(PropertyCollection<?,?> model)
model - the model to control
ControllerFactory.createController(org.deduced.PropertyCollection)
public PropertyCollectionController createListController(PropertyCollection<?,?> model,
PropertyCollection<?,?> typeInList)
model - the model to controltypeInList - the type of model in the list
public void addControllerType(java.lang.Class<?> controllerClass,
PropertyCollection<?,?> modelType)
controllerClass - the controller class to matchmodelType - the controlled model type to associate
public void addListControllerType(java.lang.Class<?> controllerClass,
PropertyCollection<?,?> modelType)
controllerClass - the controller class to matchmodelType - the controlled model type in the list to associate
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||