org.deduced.controller.implementation
Class AbstractControllerFactory

java.lang.Object
  extended by org.deduced.controller.implementation.AbstractControllerFactory
All Implemented Interfaces:
ControllerFactory
Direct Known Subclasses:
DefaultControllerFactory, FlyWheelControllerFactoryImplementation

public abstract class AbstractControllerFactory
extends java.lang.Object
implements ControllerFactory

Default Controller Factory

Author:
Steve McDuff

Field Summary
private  DeducedControllerLayerExtension controlLayer
          the control layer associated with this factory
 
Constructor Summary
AbstractControllerFactory()
          DefaultControllerFactory Constructor
 
Method Summary
 DeducedControllerLayerExtension getControlLayer()
          getControlLayer the control layer associated with this factory
protected  void initializeControlLayer(PropertyCollectionController controller)
          initialize the Control Layer property on a created controller
protected  void initializeListController(PropertyCollection<?,?> model, PropertyCollectionController createdController)
          initialize List Controller
protected  void initializePropertyCollectionController(PropertyCollection<?,?> model, PropertyCollectionController controller)
          initialize Property Collection Controller
protected  void initializePropertyController(PropertyCollection<?,?> controlledCollection, java.lang.Object key, PropertyController controller)
          initialize Property Controller
static boolean isAddRemoveAvailableOnModel(PropertyCollection<?,?> model)
          test if Add and Remove is Available On Model
 void setControlLayer(DeducedControllerLayerExtension setControlLayer)
          setControlLayer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.deduced.controller.ControllerFactory
createController, createPropertyController
 

Field Detail

controlLayer

private DeducedControllerLayerExtension controlLayer
the control layer associated with this factory

Constructor Detail

AbstractControllerFactory

public AbstractControllerFactory()
DefaultControllerFactory Constructor

Method Detail

setControlLayer

public void setControlLayer(DeducedControllerLayerExtension setControlLayer)
setControlLayer

Parameters:
setControlLayer - the control layer associated with this factory

getControlLayer

public DeducedControllerLayerExtension getControlLayer()
getControlLayer the control layer associated with this factory

Returns:
the control layer associated with this factory

initializePropertyController

protected void initializePropertyController(PropertyCollection<?,?> controlledCollection,
                                            java.lang.Object key,
                                            PropertyController controller)
initialize Property Controller

Parameters:
controlledCollection - the controlled collection
key - the controlled key
controller - the controller to initialize

initializePropertyCollectionController

protected void initializePropertyCollectionController(PropertyCollection<?,?> model,
                                                      PropertyCollectionController controller)
initialize Property Collection Controller

Parameters:
model - the model to control
controller - the controller to initialize

initializeControlLayer

protected void initializeControlLayer(PropertyCollectionController controller)
initialize the Control Layer property on a created controller

Parameters:
controller - the controller to initialize

isAddRemoveAvailableOnModel

public static boolean isAddRemoveAvailableOnModel(PropertyCollection<?,?> model)
test if Add and Remove is Available On Model

Parameters:
model - the model to test
Returns:
true if properties can be added or removed to the model

initializeListController

protected void initializeListController(PropertyCollection<?,?> model,
                                        PropertyCollectionController createdController)
initialize List Controller

Parameters:
model - the model to control
createdController - the created controller to initialize