|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PropertyController
Title: PropertyController
Description: PropertyController is used to control a single property in a property collection. It is used to restrict access to the property and validate changes.
Field Summary |
---|
Fields inherited from interface org.deduced.controller.PropertyControllerModel |
---|
CONTROLLED_COLLECTION_INSTANCE, CONTROLLED_PROPERTY_INSTANCE_INSTANCE, CONTROLLED_PROPERTY_VALUE_TYPE_INSTANCE, IS_CHANGEABLE_INSTANCE, IS_REMOVABLE_INSTANCE, PROPERTY_CONTROLLER_MODEL_TYPE, PROPERTY_KEY_INSTANCE, PROPERTY_VALUE_INSTANCE |
Fields inherited from interface org.deduced.NamedPropertyCollection |
---|
NAME_INSTANCE, NAMED_PROPERTY_COLLECTION_TYPE |
Fields inherited from interface org.deduced.PropertyCollection |
---|
PROPERTY_COLLECTION_TYPE |
Method Summary | |
---|---|
Task |
createAndSetControlledProperty(PropertyCollection<?,?> createType,
boolean deletePreviousValue)
create a new object from the factory and set it on our controlled property |
boolean |
isNewValueValid(java.lang.Object newValue,
boolean validateParent)
Verify if a value is valid for this property |
Task |
removeControlledProperty(boolean deleteValue)
remove the property from the collection |
Task |
setControlledProperty(java.lang.Object value,
boolean deletePreviousValue)
set the property |
Methods inherited from interface org.deduced.controller.PropertyControllerModel |
---|
getControlledCollection, getControlledPropertyInstance, getControlledPropertyValueType, getPropertyKey, getPropertyValue, isChangeable, isRemovable, setControlledCollection, setControlledPropertyInstance, setControlledPropertyValueType, setIsChangeable, setIsRemovable, setPropertyKey, setPropertyValue |
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 |
Method Detail |
---|
Task setControlledProperty(java.lang.Object value, boolean deletePreviousValue)
value
- the new valuedeletePreviousValue
- option to delete the previous value in the
property. This option only has effect if the property contains
a property collection and the property isn't a reference. It
will call delete on the previous value.
Task removeControlledProperty(boolean deleteValue)
deleteValue
- option to delete the value in the property. This
option only has effect if the property contains a property
collection and the property isn't a reference. It will call
delete on the previous value.
Task createAndSetControlledProperty(PropertyCollection<?,?> createType, boolean deletePreviousValue)
createType
- the created object typedeletePreviousValue
- option to delete the previous value in the
property. This option only has effect if the property contains
a property collection and the property isn't a reference. It
will call delete on the previous value.
boolean isNewValueValid(java.lang.Object newValue, boolean validateParent)
newValue
- the new valuevalidateParent
- option to validate the parent of the value as well.
If true, then the parent must be null for all properties by
value to be valid. If false, then the parent isn't validated.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |