Package org.daisy.dotify.api.formatter
Class StringField
- java.lang.Object
-
- org.daisy.dotify.api.formatter.StringField
-
-
Constructor Summary
Constructors Constructor Description StringField(Object obj)
Creates a new string field using the specified object.StringField(Object obj, String textStyle)
Creates a new string field using the specified object and text style.StringField(String str)
Creates a new string field using the specified string.StringField(String str, String textStyle)
Creates a new string field using the specified object and text style.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getTextStyle()
The text style of the field, or null if no special style is used.String
toString()
-
-
-
Constructor Detail
-
StringField
public StringField(Object obj)
Creates a new string field using the specified object. The instance's toString method will return the same value as the toString method of the supplied object.- Parameters:
obj
- the object to use for this field
-
StringField
public StringField(String str)
Creates a new string field using the specified string.- Parameters:
str
- the object to use for this field
-
StringField
public StringField(Object obj, String textStyle)
Creates a new string field using the specified object and text style.- Parameters:
obj
- the object to use for this fieldtextStyle
- the text style
-
-
Method Detail
-
getTextStyle
public String getTextStyle()
Description copied from interface:Field
The text style of the field, or null if no special style is used.- Specified by:
getTextStyle
in interfaceField
- Returns:
- the text style
-
-