Class Text
- java.lang.Object
-
- com.linecorp.bot.model.message.flex.component.Text
-
- All Implemented Interfaces:
FlexComponent
public final class Text extends java.lang.Object implements FlexComponent
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Text.TextBuilder
static class
Text.TextDecoration
static class
Text.TextStyle
static class
Text.TextWeight
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Text.TextBuilder
builder()
boolean
equals(java.lang.Object o)
Action
getAction()
FlexAdjustMode
getAdjustMode()
FlexAlign
getAlign()
java.lang.String
getColor()
java.util.List<Span>
getContents()
Text.TextDecoration
getDecoration()
java.lang.Integer
getFlex()
FlexGravity
getGravity()
java.lang.String
getLineSpacing()
Line spacing in a wrapping text.java.lang.String
getMargin()
java.lang.Integer
getMaxLines()
java.lang.String
getOffsetBottom()
java.lang.String
getOffsetEnd()
java.lang.String
getOffsetStart()
java.lang.String
getOffsetTop()
FlexPosition
getPosition()
java.lang.String
getSize()
Text.TextStyle
getStyle()
java.lang.String
getText()
Text.TextWeight
getWeight()
java.lang.Boolean
getWrap()
int
hashCode()
Text.TextBuilder
toBuilder()
java.lang.String
toString()
-
-
-
Method Detail
-
builder
public static Text.TextBuilder builder()
-
toBuilder
public Text.TextBuilder toBuilder()
-
getFlex
public java.lang.Integer getFlex()
-
getText
public java.lang.String getText()
-
getSize
public java.lang.String getSize()
-
getAlign
public FlexAlign getAlign()
-
getGravity
public FlexGravity getGravity()
-
getColor
public java.lang.String getColor()
-
getWeight
public Text.TextWeight getWeight()
-
getStyle
public Text.TextStyle getStyle()
-
getDecoration
public Text.TextDecoration getDecoration()
-
getWrap
public java.lang.Boolean getWrap()
-
getLineSpacing
public java.lang.String getLineSpacing()
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.
- See Also:
- Increase the line spacing in a text
-
getMargin
public java.lang.String getMargin()
-
getPosition
public FlexPosition getPosition()
-
getOffsetTop
public java.lang.String getOffsetTop()
-
getOffsetBottom
public java.lang.String getOffsetBottom()
-
getOffsetStart
public java.lang.String getOffsetStart()
-
getOffsetEnd
public java.lang.String getOffsetEnd()
-
getAction
public Action getAction()
-
getMaxLines
public java.lang.Integer getMaxLines()
-
getContents
public java.util.List<Span> getContents()
-
getAdjustMode
public FlexAdjustMode getAdjustMode()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-