Class StringField

  • All Implemented Interfaces:
    Field

    public class StringField
    extends Object
    implements Field
    Provides a static string field.
    • 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 field
        textStyle - the text style
      • StringField

        public StringField​(String str,
                           String textStyle)
        Creates a new string field using the specified object and text style.
        Parameters:
        str - the object to use for this field
        textStyle - 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 interface Field
        Returns:
        the text style