Class Format.FormatBuilder

  • Enclosing class:
    Format

    public static class Format.FormatBuilder
    extends java.lang.Object
    Builder class for a Format object
    • Constructor Detail

      • FormatBuilder

        public FormatBuilder()
    • Method Detail

      • build

        public Format build()
        Build
      • withFormat

        public Format.FormatBuilder withFormat​(Format value)
        Sets all properties based upon the supplied format
        Parameters:
        value - the value
        Returns:
        the format builder
      • withFontFamily

        public Format.FormatBuilder withFontFamily​(FontFamily value)
        Sets the font family of the format
        Parameters:
        value - the value
        Returns:
        the format builder
      • withFontSize

        public Format.FormatBuilder withFontSize​(FontSize value)
        Sets the font size of the format
        Parameters:
        value - the value
        Returns:
        the format builder
      • withBold

        public Format.FormatBuilder withBold​(Bold value)
        Sets the bold property of the format
        Parameters:
        value - the value
        Returns:
        the format builder
      • withItalic

        public Format.FormatBuilder withItalic​(Italic value)
        Sets the italics property of the format
        Parameters:
        value - the value
        Returns:
        the format builder
      • withUnderline

        public Format.FormatBuilder withUnderline​(Underline value)
        Sets the underline property of the format
        Parameters:
        value - the value
        Returns:
        the format builder
      • withStrikethrough

        public Format.FormatBuilder withStrikethrough​(Strikethrough value)
        Sets the strike through property of the format
        Parameters:
        value - the value
        Returns:
        the format builder
      • withHorizontalAlignment

        public Format.FormatBuilder withHorizontalAlignment​(HorizontalAlignment value)
        Sets the horizontal alignment property of the format
        Parameters:
        value - the value
        Returns:
        the format builder
      • withVerticalAlignment

        public Format.FormatBuilder withVerticalAlignment​(VerticalAlignment value)
        Sets the vertical alignment property of the format
        Parameters:
        value - the value
        Returns:
        the format builder
      • withTextColor

        public Format.FormatBuilder withTextColor​(Color value)
        Sets the text color property of the format
        Parameters:
        value - the value
        Returns:
        the format builder
      • withBackgroundColor

        public Format.FormatBuilder withBackgroundColor​(Color value)
        Sets the background color property of the format
        Parameters:
        value - the value
        Returns:
        the format builder
      • withTaskbarColor

        public Format.FormatBuilder withTaskbarColor​(Color value)
        Sets the taskbar color property of the format
        Parameters:
        value - the value
        Returns:
        the format builder
      • withCurrency

        public Format.FormatBuilder withCurrency​(Currency value)
        Sets the currency of the format
        Parameters:
        value - the value
        Returns:
        the format builder
      • withDecimalCount

        public Format.FormatBuilder withDecimalCount​(DecimalCount value)
        Sets the decimal count of the format
        Parameters:
        value - the value
        Returns:
        the format builder
      • withThousandsSeparator

        public Format.FormatBuilder withThousandsSeparator​(ThousandsSeparator value)
        Sets the thousands separator property of the format
        Parameters:
        value - the value
        Returns:
        the format builder
      • withNumberFormat

        public Format.FormatBuilder withNumberFormat​(NumberFormat value)
        Sets the number format property of the format
        Parameters:
        value - the value
        Returns:
        the format builder
      • withTextWrap

        public Format.FormatBuilder withTextWrap​(TextWrap value)
        Sets the text wrap property of the format
        Parameters:
        value - the value
        Returns:
        the format builder
      • withDateFormat

        public Format.FormatBuilder withDateFormat​(DateFormat value)
        Sets the date format property of the format
        Parameters:
        value - the value
        Returns:
        the format builder