org.deduced.controller.implementation
Class ControllerUtilities

java.lang.Object
  extended by org.deduced.controller.implementation.ControllerUtilities

public class ControllerUtilities
extends java.lang.Object

ControllerUtilities

Author:
Steve McDuff

Constructor Summary
ControllerUtilities()
           
 
Method Summary
static PropertyCollectionController findCollectionControllerControllingModel(PropertyCollection collectionControllerList, PropertyCollection controlledModel)
          find Collection Controller Controlling Model
static PropertyController findPropertyControllerControllingPropertyKey(PropertyCollection propertyControllerList, java.lang.Object controlledKey)
          find Property Controller Controlling Property Key
static void setControllerEnabled(PropertyCollectionController controller, boolean isEnabled)
          Modify a controller and all it's children to enable or disable them.
static void setControllerEnabled(PropertyController controller, boolean isEnabled)
          Modify a property controller to enable or disable it
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ControllerUtilities

public ControllerUtilities()
Method Detail

setControllerEnabled

public static void setControllerEnabled(PropertyCollectionController controller,
                                        boolean isEnabled)
Modify a controller and all it's children to enable or disable them.

Parameters:
controller - the controller to modify
isEnabled - is the controller enabled

setControllerEnabled

public static void setControllerEnabled(PropertyController controller,
                                        boolean isEnabled)
Modify a property controller to enable or disable it

Parameters:
controller - the controller to modify
isEnabled - is the controller enabled or not

findCollectionControllerControllingModel

public static PropertyCollectionController findCollectionControllerControllingModel(PropertyCollection collectionControllerList,
                                                                                    PropertyCollection controlledModel)
find Collection Controller Controlling Model

Parameters:
collectionControllerList - the collection controller list
controlledModel - the controlled model to find
Returns:
the collection controller controlling the specified model

findPropertyControllerControllingPropertyKey

public static PropertyController findPropertyControllerControllingPropertyKey(PropertyCollection propertyControllerList,
                                                                              java.lang.Object controlledKey)
find Property Controller Controlling Property Key

Parameters:
propertyControllerList - the collection controller list
controlledKey - the controlled property key to find
Returns:
the property controller controlling the specified key