Sapphire already includes a slush bucket and a check box list presentation alternatives for a possible values list.
However, in some cases where the set of possible values is known to always be small, a more compact presentation is desired. The new check box group presentation fills this need.
The check boxes can be arranged either horizontally or vertically.
The presentation will utilize ValueImageService and ValueLabelService, if present on the list entry's value property. The services must be attached to the value property's global service context.
Applicability
- The property is a list property
- The list property has a PossibleValuesService
- There is exactly one possible member type
- The member type has exactly one property and that property is a value property
- The value property has @Unique annotation
Automatic Activation
This presentation does not activate automatically.
Manual Activation
The following style codes will activate this presentation as long as the applicability conditions are met.
- Sapphire.PropertyEditor.CheckBoxGroup - produces horizontal presentation
- Sapphire.PropertyEditor.CheckBoxGroup.Horizontal
- Sapphire.PropertyEditor.CheckBoxGroup.Vertical
<property-editor>
<property>Colors</property>
<style>Sapphire.PropertyEditor.CheckBoxGroup.Vertical</style>
</property-editor>
No comments:
Post a Comment