Class PropertyConfigurationController
java.lang.Object
com.inductiveautomation.ignition.common.config.PropertyConfigurationController
- Direct Known Subclasses:
- TagEditController
This class combines a mutable property set (the "target"), with a ConfigurationPropertyModel (which dictates what
 changes are allowed to be made) along with particular information about the state of editing- is this an
 intersection? A new propertyset? An inherited property set? All of these things have implications for the editing UI
 that we show, but we don't want to try to figure them out based on the nature of the target.
 
 Also, the target is expected to be a PropertySetConfig. This is a structure that combines the source and an edit,
 that can be applied or not. It supports rolling back edits of single properties, which is necessary for intersection.
- 
Constructor SummaryConstructorsConstructorDescriptionPropertyConfigurationController(PropertySet target, ConfigurationPropertyModel model) PropertyConfigurationController(PropertySet target, ConfigurationPropertyModel model, boolean isIntersection, boolean isExtension) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidApplies any outstanding changes to the underlying source.voidString[]Context properties are those that depend on the type of object being edited.getModel()booleanReturns whether this tag is inherited from a parent type.booleanIndicates the target is an intersection of multiple tags.booleanisPropertyExtended(Property<?> prop) booleanisPropertyInherited(Property<?> prop) booleanisPropertyModified(Property<?> prop) Returns whether the property has been modified.voidrevertProperty(Property<?> prop) Reverts the property value.boolean
- 
Constructor Details- 
PropertyConfigurationController
- 
PropertyConfigurationController
- 
PropertyConfigurationControllerpublic PropertyConfigurationController(PropertySet target, ConfigurationPropertyModel model, boolean isIntersection, boolean isExtension) 
 
- 
- 
Method Details- 
getModel
- 
getTarget
- 
isIntersectionpublic boolean isIntersection()Indicates the target is an intersection of multiple tags.
- 
isInheritedpublic boolean isInherited()Returns whether this tag is inherited from a parent type. This indicates that any settings would be considered overrides, not source values.
- 
isPropertyInherited
- 
isPropertyExtended
- 
isPropertyModifiedReturns whether the property has been modified. Currently only works if target is a PropertySetConfig.
- 
revertPropertyReverts the property value. Currently only works if target is a PropertySetConfig.
- 
commitChangespublic void commitChanges()Applies any outstanding changes to the underlying source.
- 
discardChangespublic void discardChanges()
- 
supportsBindingspublic boolean supportsBindings()
- 
getBindables
- 
getContextPropertiesContext properties are those that depend on the type of object being edited. For example, the path of the tag might be in this, or the UUID of the target object.
 
-