|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deduced.AbstractPropertyCollection<K,V>
org.deduced.FixedPropertyInstanceCollection<java.lang.Object,java.lang.Object>
org.deduced.controller.implementation.PropertyCollectionControllerModelImplementation
org.deduced.controller.implementation.AbstractPropertyCollectionController
org.deduced.controller.implementation.DirectPropertyCollectionController
public class DirectPropertyCollectionController

Title: DirectPropertyController
Description: DirectPropertyController is used to control a property directly making changes in memory.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.deduced.AbstractPropertyCollection |
|---|
AbstractPropertyCollection.CollectionToDeleteMonitor |
| Field Summary | |
|---|---|
private static long |
serialVersionUID
the actual iterator used to browse the list |
| Fields inherited from class org.deduced.controller.implementation.PropertyCollectionControllerModelImplementation |
|---|
KEY_SET |
| Fields inherited from class org.deduced.AbstractPropertyCollection |
|---|
CHECK_DELETE_MODE_AUTOMATIC, CHECK_DELETE_MODE_MANUAL, COLLECTION_TO_DELETE |
| Fields inherited from interface org.deduced.controller.PropertyCollectionControllerModel |
|---|
CHILD_COLLECTION_CONTROLLER_LIST_INSTANCE, CHILD_PROPERTY_CONTROLLER_LIST_INSTANCE, CONTROLLED_COLLECTION_INSTANCE, IS_ADD_AVAILABLE_INSTANCE, IS_DELETE_AVAILABLE_INSTANCE, PROPERTY_COLLECTION_CONTROLLER_MODEL_TYPE |
| Fields inherited from interface org.deduced.NamedPropertyCollection |
|---|
NAME_INSTANCE, NAMED_PROPERTY_COLLECTION_TYPE |
| Fields inherited from interface org.deduced.PropertyCollection |
|---|
PROPERTY_COLLECTION_TYPE |
| Constructor Summary | |
|---|---|
DirectPropertyCollectionController(DeducedControllerLayerExtension setControlLayer)
DirectPropertyCollectionController Constructor |
|
| Method Summary | |
|---|---|
private void |
addCollectionListener()
addCollectionListener |
private void |
buildAllChildControllers()
build All Child Controllers |
private void |
clearChildControllers()
clear all the child controllers |
protected PropertyCollectionController |
createCollectionController(PropertyCollection<?,?> model)
create Collection Controller |
protected PropertyController |
createPropertyController(PropertyCollectionController parentController,
java.lang.Object key)
create Property Controller |
private void |
deleteExistingChildCollectionController(java.lang.Object oldValue)
attempt to delete an Existing Child Collection Controller |
private PropertyCollectionController |
findChildCollectionController(java.lang.Object propertyValue)
find Child Collection Controller |
private PropertyController |
findChildPropertyController(java.lang.Object propertyKey)
find an existing Child Property Controller |
private PropertyCollectionController |
getChildControllerInternal(java.lang.Object key)
get Child Controller Internal |
private ControllerFactory |
getControllerFactory()
get Controller Factory |
protected PropertyController |
getPropertyControllerInternal(java.lang.Object key)
get Property Controller internally. |
void |
propertyChanged(PropertyChangeEvent<?,?> event)
(non-Javadoc) |
private void |
removeChildPropertyController(java.lang.Object key)
remove Child property Controller |
private void |
removeCollectionListener()
removeCollectionListener |
PropertyCollection |
setControlledCollection(PropertyCollection collection)
(non-Javadoc) |
| Methods inherited from class org.deduced.FixedPropertyInstanceCollection |
|---|
addProperty, areKeysAssignedAutomatically, containsKey, getProperty, iterator, iteratorByValue, removeProperty, removePropertyInstance, removePropertyValue, size |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.deduced.controller.PropertyCollectionController |
|---|
addPropertyToControlledCollection, createAndAddProperty, deleteControlledCollection, isAddValueValid |
| Methods inherited from interface org.deduced.controller.PropertyCollectionControllerModel |
|---|
getChildCollectionControllerList, getChildPropertyControllerList, getControlledCollection, isAddAvailable, isDeleteAvailable, setChildCollectionControllerList, setChildPropertyControllerList, setIsAddAvailable, setIsDeleteAvailable |
| Methods inherited from interface org.deduced.NamedPropertyCollection |
|---|
getName, setName |
| Methods inherited from interface org.deduced.PropertyCollection |
|---|
activate, addListener, addProperty, areKeysAssignedAutomatically, asKeySet, asPropertyList, asPropertyMap, asValueList, asValueMap, clear, clone, containsInstance, containsKey, containsValue, delete, getFixedInstance, getProperty, getPropertyValue, id, instanceKey, invokeAction, isActivated, isEmpty, isListenerRegistered, iterator, iteratorByValue, keyOnParent, parent, removeListener, removeProperty, removePropertyInstance, removePropertyValue, setFixedInstance, setParent, setProperty, size, type, valueKey |
| Field Detail |
|---|
private static final long serialVersionUID
| Constructor Detail |
|---|
public DirectPropertyCollectionController(DeducedControllerLayerExtension setControlLayer)
setControlLayer - the control layer| Method Detail |
|---|
protected PropertyCollectionController createCollectionController(PropertyCollection<?,?> model)
model - the model to control
protected PropertyController createPropertyController(PropertyCollectionController parentController,
java.lang.Object key)
parentController - the parent controllerkey - the key to control
private ControllerFactory getControllerFactory()
private void clearChildControllers()
public PropertyCollection setControlledCollection(PropertyCollection collection)
setControlledCollection in interface PropertyCollectionControllerModelsetControlledCollection in class PropertyCollectionControllerModelImplementationcollection - new controlled collection
PropertyCollectionControllerModel.setControlledCollection(org.deduced.PropertyCollection)private void removeCollectionListener()
private void addCollectionListener()
private PropertyCollectionController getChildControllerInternal(java.lang.Object key)
key - the key to control
private PropertyCollectionController findChildCollectionController(java.lang.Object propertyValue)
propertyValue - the controlled collection
private PropertyController findChildPropertyController(java.lang.Object propertyKey)
propertyKey - the controlled property key
private void buildAllChildControllers()
public void propertyChanged(PropertyChangeEvent<?,?> event)
propertyChanged in interface PropertyListener<java.lang.Object,java.lang.Object>event - the event that was generatedPropertyListener.propertyChanged(org.deduced.PropertyChangeEvent)private void deleteExistingChildCollectionController(java.lang.Object oldValue)
oldValue - the previous child collectionprivate void removeChildPropertyController(java.lang.Object key)
key - the child key to removeprotected PropertyController getPropertyControllerInternal(java.lang.Object key)
key - key being controlled
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||