public class NumeralField extends Object implements Field
Constructor and Description |
---|
NumeralField(NumeralStyle style)
Creates a new numeral field with the supplied style.
|
NumeralField(NumeralStyle style,
String textStyle)
Creates a new numeral field with the supplied numeral and text styles
|
Modifier and Type | Method and Description |
---|---|
NumeralStyle |
getNumeralStyle()
Gets the numeral style.
|
String |
getTextStyle()
The text style of the field, or null if no special style is used.
|
public NumeralField(NumeralStyle style)
style
- the style for this numeralpublic NumeralField(NumeralStyle style, String textStyle)
style
- the numeral styletextStyle
- the text stylepublic NumeralStyle getNumeralStyle()
public String getTextStyle()
Field
getTextStyle
in interface Field