FieldOrMethodDisplayStyle

Description

The settings required to display a field are the same as those for displaying a method, hence the one serves both purposes.

Parameters

Attribute Description Required
name identifier, must be unique Yes

Nested Parameters

Attribute Description Required
nameTextStyle the text style used to display the name of a field or method Yes
typeTextStyle the text style used to display the type of a field or return type, parameters and exceptions of a method Yes
otherTextStyle the text style to use for other text such as brackets, commas or keywords Yes

Examples

<FieldOrMethodDisplayStyle name="blackNormalFieldOrMethodDisplayStyle">
<Name>
<TextStyle bias="NORMAL" color="#000000"/>
</Name>
<Type>
<TextStyle bias="NORMAL" color="#3e3e91" italic="true"/>
</Type>
<Other>
<TextStyle bias="NORMAL" color="#000000"/>
</Other>
</FieldOrMethodDisplayStyle>
Declares a field or method display style which shows types in italic, blue/gray text, and all other text in black.