Skip to content

Commit

Permalink
MID-9278 prism display annotation added new values collapsed/expanded
Browse files Browse the repository at this point in the history
  • Loading branch information
1azyman committed Nov 8, 2023
1 parent 6d4ed18 commit 9c9514f
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,30 @@
*/
public enum Display {

/**
* Item shouldn't be visible.
*/
HIDDEN("hidden"),

EMPHASIZED("emphasized");
/**
* Item should be visible, standard visibility behaviour for item.
*/
REGULAR("regular"),

/**
* Item should be visible and emphasized. E.g. it should be displayed in bold.
*/
EMPHASIZED("emphasized"),

/**
* Item should be visible and collapsed. E.g. it should be displayed in collapsed form. Applicable only for containers.
*/
COLLAPSED("collapsed"),

/**
* Item should be visible and expanded. E.g. it should be displayed in expanded form. Applicable only for containers.
*/
EXPANDED("expanded");

final String value;

Expand Down
21 changes: 21 additions & 0 deletions infra/prism-impl/src/main/resources/xml/ns/public/annotation-3.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -190,13 +190,34 @@
</xsd:appinfo>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="regular">
<xsd:annotation>
<xsd:appinfo>
<jaxb:typesafeEnumMember name="REGULAR"/>
</xsd:appinfo>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="emphasized">
<xsd:annotation>
<xsd:appinfo>
<jaxb:typesafeEnumMember name="EMPHASIZED"/>
</xsd:appinfo>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="collapsed">
<xsd:annotation>
<xsd:appinfo>
<jaxb:typesafeEnumMember name="COLLAPSED"/>
</xsd:appinfo>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="expanded">
<xsd:annotation>
<xsd:appinfo>
<jaxb:typesafeEnumMember name="EXPANDED"/>
</xsd:appinfo>
</xsd:annotation>
</xsd:enumeration>
</xsd:restriction>
</xsd:simpleType>

Expand Down

0 comments on commit 9c9514f

Please sign in to comment.