Edit Time Properties
You can configure the following properties from any of the tabs in the Public Interface Editor:
isHidden
The isHidden property specifies whether the feature should be hidden. This is typically used to hidden an inherited feature that is not valid for the class and its subclasses. A hidden feature is not displayed in the list of features for making connections, and if the feature is an attribute, it is not displayed in the properties table.
isPreferred
The isPreferred property specifies whether the feature is a preferred feature and should be included in the connection menu.
In addition, the following properties are configurable from the Attributes tab:
dependencies
The dependencies property specifies the attribute names on which the attribute is dependent. This is an edit-time-only property setting. If this setting is not specified, the attribute is considered to not have any dependencies.
dependencyChangedSelector
The dependencyChangedSelector property specifies the selector for performing any update necessary of an attribute due to the value of a dependency having changed.
This selector is passed three arguments: value changed data of type AbtValueChangedData, value update data of type AbtValueUpdateData, and property data of type AbtPartPropertyData. The name of the dependency that changed and its old and new values are specified in the value changed data. To change the value of the attribute whose dependency has changed, update #newValue in the value update data and set #doit to true.
displayPolicySelector
The displayPolicySelector property specifies the selector for answering the display policy of the attribute. This is an edit-time-only property setting. If this attribute setting is not specified, the display policy answered by the attribute class will be used.
A display policy is an object that responds to the #ewDraw... protocol. Typically, this is a string representing the specified value. This selector is passed two arguments: value to display and property data of type AbtPartPropertyData.
editPolicySelector
The editPolicySelector property specifies the selector for answering the edit policy of the attribute. This is an edit-time-only property setting. If this attribute setting is not specified, the edit policy answered by the attribute class will be used.
An edit policy is an instance of any subclass of EwEditPolicy. If nil is answered, the attribute is considered read-only in the properties table. This selector is passed two arguments: initial value to display and property data of type AbtPartPropertyData.
isProperty
The isProperty property specifies whether the attribute should be included in the properties of the part. This is an edit-time-only property setting. If this attribute setting is not specified, other values will be used to determine whether the attribute is a property.
isValidValueSelector
The isValidValueSelector property specifies the selector for answering whether a specified value is a valid value for the attribute. This is an edit-time-only property setting. If this attribute setting is not specified, the is valid value answered by the attribute class will be used.
This selector is passed two arguments: new value to validate and property data of type AbtPartPropertyData.
validValuesSelector
The validValuesSelector property specifies the selector for answering the discrete set of valid values of the attribute. The valid values is a dictionary where the dictionary keys are the valid value names (or valid constants) and the dictionary values are the associated valid values. This is an edit-time-only property setting. If this attribute setting is not specified, the attribute is considered to not have a discrete set of valid values.
This selector is passed one argument: property data of type AbtPartPropertyData.
Last modified date: 03/29/2020