Class PropertyConfigurationController
- java.lang.Object
- 
- com.inductiveautomation.ignition.common.config.PropertyConfigurationController
 
- 
- Direct Known Subclasses:
- TagEditController
 
 public class PropertyConfigurationController extends java.lang.ObjectThis 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 SummaryConstructors Constructor Description PropertyConfigurationController(PropertySet target)PropertyConfigurationController(PropertySet target, ConfigurationPropertyModel model)PropertyConfigurationController(PropertySet target, ConfigurationPropertyModel model, boolean isIntersection, boolean isExtension)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcommitChanges()Applies any outstanding changes to the underlying source.voiddiscardChanges()java.lang.String[]getBindables()PropertySetgetContextProperties()Context properties are those that depend on the type of object being edited.ConfigurationPropertyModelgetModel()PropertySetgetTarget()booleanisInherited()Returns whether this tag is inherited from a parent type.booleanisIntersection()Indicates 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.booleansupportsBindings()
 
- 
- 
- 
Constructor Detail- 
PropertyConfigurationControllerpublic PropertyConfigurationController(PropertySet target) 
 - 
PropertyConfigurationControllerpublic PropertyConfigurationController(PropertySet target, ConfigurationPropertyModel model) 
 - 
PropertyConfigurationControllerpublic PropertyConfigurationController(PropertySet target, ConfigurationPropertyModel model, boolean isIntersection, boolean isExtension) 
 
- 
 - 
Method Detail- 
getModelpublic ConfigurationPropertyModel getModel() 
 - 
getTargetpublic PropertySet 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.
 - 
isPropertyInheritedpublic boolean isPropertyInherited(Property<?> prop) 
 - 
isPropertyExtendedpublic boolean isPropertyExtended(Property<?> prop) 
 - 
isPropertyModifiedpublic boolean isPropertyModified(Property<?> prop) Returns whether the property has been modified. Currently only works if target is a PropertySetConfig.
 - 
revertPropertypublic void revertProperty(Property<?> prop) Reverts 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() 
 - 
getBindablespublic java.lang.String[] getBindables() 
 - 
getContextPropertiespublic PropertySet getContextProperties() Context 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.
 
- 
 
-