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 Summary
ConstructorsConstructorDescriptionPropertyConfigurationController
(PropertySet target, ConfigurationPropertyModel model) PropertyConfigurationController
(PropertySet target, ConfigurationPropertyModel model, boolean isIntersection, boolean isExtension) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Applies any outstanding changes to the underlying source.void
String[]
Context properties are those that depend on the type of object being edited.getModel()
boolean
Returns whether this tag is inherited from a parent type.boolean
Indicates the target is an intersection of multiple tags.boolean
isPropertyExtended
(Property<?> prop) boolean
isPropertyInherited
(Property<?> prop) boolean
isPropertyModified
(Property<?> prop) Returns whether the property has been modified.void
revertProperty
(Property<?> prop) Reverts the property value.boolean
-
Constructor Details
-
PropertyConfigurationController
-
PropertyConfigurationController
-
PropertyConfigurationController
public PropertyConfigurationController(PropertySet target, ConfigurationPropertyModel model, boolean isIntersection, boolean isExtension)
-
-
Method Details
-
getModel
-
getTarget
-
isIntersection
public boolean isIntersection()Indicates the target is an intersection of multiple tags. -
isInherited
public 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
-
isPropertyModified
Returns whether the property has been modified. Currently only works if target is a PropertySetConfig. -
revertProperty
Reverts the property value. Currently only works if target is a PropertySetConfig. -
commitChanges
public void commitChanges()Applies any outstanding changes to the underlying source. -
discardChanges
public void discardChanges() -
supportsBindings
public boolean supportsBindings() -
getBindables
-
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.
-