Package com.smartsheet.api.models.format
Class Format.FormatBuilder
- java.lang.Object
-
- com.smartsheet.api.models.format.Format.FormatBuilder
-
- Enclosing class:
- Format
public static class Format.FormatBuilder extends java.lang.Object
Builder class for a Format object
-
-
Constructor Summary
Constructors Constructor Description FormatBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Format
build()
BuildFormat.FormatBuilder
withBackgroundColor(Color value)
Sets the background color property of the formatFormat.FormatBuilder
withBold(Bold value)
Sets the bold property of the formatFormat.FormatBuilder
withCurrency(Currency value)
Sets the currency of the formatFormat.FormatBuilder
withDateFormat(DateFormat value)
Sets the date format property of the formatFormat.FormatBuilder
withDecimalCount(DecimalCount value)
Sets the decimal count of the formatFormat.FormatBuilder
withFontFamily(FontFamily value)
Sets the font family of the formatFormat.FormatBuilder
withFontSize(FontSize value)
Sets the font size of the formatFormat.FormatBuilder
withFormat(Format value)
Sets all properties based upon the supplied formatFormat.FormatBuilder
withHorizontalAlignment(HorizontalAlignment value)
Sets the horizontal alignment property of the formatFormat.FormatBuilder
withItalic(Italic value)
Sets the italics property of the formatFormat.FormatBuilder
withNumberFormat(NumberFormat value)
Sets the number format property of the formatFormat.FormatBuilder
withStrikethrough(Strikethrough value)
Sets the strike through property of the formatFormat.FormatBuilder
withTaskbarColor(Color value)
Sets the taskbar color property of the formatFormat.FormatBuilder
withTextColor(Color value)
Sets the text color property of the formatFormat.FormatBuilder
withTextWrap(TextWrap value)
Sets the text wrap property of the formatFormat.FormatBuilder
withThousandsSeparator(ThousandsSeparator value)
Sets the thousands separator property of the formatFormat.FormatBuilder
withUnderline(Underline value)
Sets the underline property of the formatFormat.FormatBuilder
withVerticalAlignment(VerticalAlignment value)
Sets the vertical alignment property of the format
-
-
-
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
-
-