Class Text.TextBuilder
- java.lang.Object
-
- com.linecorp.bot.model.message.flex.component.Text.TextBuilder
-
- Enclosing class:
- Text
public static class Text.TextBuilder extends java.lang.Object
-
-
Method Summary
-
-
-
Method Detail
-
size
public Text.TextBuilder size(FlexFontSize size)
-
size
public Text.TextBuilder size(java.lang.String size)
-
margin
public Text.TextBuilder margin(FlexMarginSize margin)
-
margin
public Text.TextBuilder margin(java.lang.String margin)
-
offsetTop
public Text.TextBuilder offsetTop(FlexOffsetSize offset)
-
offsetTop
public Text.TextBuilder offsetTop(java.lang.String offset)
-
offsetBottom
public Text.TextBuilder offsetBottom(FlexOffsetSize offset)
-
offsetBottom
public Text.TextBuilder offsetBottom(java.lang.String offset)
-
offsetStart
public Text.TextBuilder offsetStart(FlexOffsetSize offset)
-
offsetStart
public Text.TextBuilder offsetStart(java.lang.String offset)
-
offsetEnd
public Text.TextBuilder offsetEnd(FlexOffsetSize offset)
-
offsetEnd
public Text.TextBuilder offsetEnd(java.lang.String offset)
-
flex
public Text.TextBuilder flex(java.lang.Integer flex)
-
text
public Text.TextBuilder text(java.lang.String text)
-
align
public Text.TextBuilder align(FlexAlign align)
-
gravity
public Text.TextBuilder gravity(FlexGravity gravity)
-
color
public Text.TextBuilder color(java.lang.String color)
-
weight
public Text.TextBuilder weight(Text.TextWeight weight)
-
style
public Text.TextBuilder style(Text.TextStyle style)
-
decoration
public Text.TextBuilder decoration(Text.TextDecoration decoration)
-
wrap
public Text.TextBuilder wrap(java.lang.Boolean wrap)
-
lineSpacing
public Text.TextBuilder lineSpacing(java.lang.String lineSpacing)
Line spacing in a wrapping text.Specify a positive integer or decimal number that ends in px. The lineSpacing property doesn't apply to the top of the start line and the bottom of the last line.
- Returns:
this
.- See Also:
- Increase the line spacing in a text
-
position
public Text.TextBuilder position(FlexPosition position)
-
action
public Text.TextBuilder action(Action action)
-
maxLines
public Text.TextBuilder maxLines(java.lang.Integer maxLines)
-
contents
public Text.TextBuilder contents(java.util.List<Span> contents)
-
adjustMode
public Text.TextBuilder adjustMode(FlexAdjustMode adjustMode)
-
build
public Text build()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-