-
- All Implemented Interfaces:
public final class ComponentBuilderA builder that makes components easy to use from Kotlin.
-
-
Constructor Summary
Constructors Constructor Description ComponentBuilder()
-
Method Summary
Modifier and Type Method Description final ComponentBuilderappend(String text)Add text. final ComponentBuilderappend(Component component)Add text. final ComponentBuilderappend(String text, Color color)Adds text with a specified color. final ComponentBuilderappend(String text, TextDecoration decorations)Add text with decoration. final ComponentBuilderappend(String text, Color color, TextDecoration decorations)Adds text with color, decorations final ComponentBuilderappendln()Adds line break. final ComponentBuilderappendln(String text)Adds text with line break. final ComponentBuilderappendln(String text, Color color)Adds colored text with line breaks. final ComponentBuilderappendln(String text, TextDecoration decorations)Adds decorated text with line breaks. final ComponentBuilderappendln(String text, Color color, TextDecoration decorations)Adds decorated colored text with line breaks. final ComponentBuilderappendln(Component component)Adds component with line breaks. final ComponentBuilderbold(String text)Adds bold text. final ComponentBuilderbold(String text, Color color)Adds bold text with color. final ComponentBuilderbold(String text, TextDecoration decorations)Adds bold text with decorations final ComponentBuilderbold(String text, Color color, TextDecoration decorations)Adds bold text with color, decorations final ComponentBuilderboldln(String text)Adds bold text with line breaks. final ComponentBuilderboldln(String text, Color color)Adds colored bold text with line breaks. final ComponentBuilderboldln(String text, TextDecoration decorations)Adds decorated bold text with line breaks. final ComponentBuilderboldln(String text, Color color, TextDecoration decorations)Adds decorated colored text with line breaks. final UnitunaryPlus(String $self)Adds text with unaryPlus final UnitunaryPlus(Component $self)Adds component with unaryPlus final Unitcolor(String $self, Color color)Adds colored text final UnitboldColor(String $self, Color color)Adds colored text with line break final Unitcolorln(String $self, Color color)Adds colored bold text final UnitboldColorln(String $self, Color color)Adds colored bold text wit hline break -
-
Method Detail
-
append
final ComponentBuilder append(String text)
Add text.
-
append
final ComponentBuilder append(Component component)
Add text.
-
append
final ComponentBuilder append(String text, Color color)
Adds text with a specified color.
-
append
final ComponentBuilder append(String text, TextDecoration decorations)
Add text with decoration.
-
append
final ComponentBuilder append(String text, Color color, TextDecoration decorations)
Adds text with color, decorations
-
appendln
final ComponentBuilder appendln()
Adds line break.
-
appendln
final ComponentBuilder appendln(String text)
Adds text with line break.
-
appendln
final ComponentBuilder appendln(String text, Color color)
Adds colored text with line breaks.
-
appendln
final ComponentBuilder appendln(String text, TextDecoration decorations)
Adds decorated text with line breaks.
-
appendln
final ComponentBuilder appendln(String text, Color color, TextDecoration decorations)
Adds decorated colored text with line breaks.
-
appendln
final ComponentBuilder appendln(Component component)
Adds component with line breaks.
-
bold
final ComponentBuilder bold(String text)
Adds bold text.
-
bold
final ComponentBuilder bold(String text, Color color)
Adds bold text with color.
-
bold
final ComponentBuilder bold(String text, TextDecoration decorations)
Adds bold text with decorations
-
bold
final ComponentBuilder bold(String text, Color color, TextDecoration decorations)
Adds bold text with color, decorations
-
boldln
final ComponentBuilder boldln(String text)
Adds bold text with line breaks.
-
boldln
final ComponentBuilder boldln(String text, Color color)
Adds colored bold text with line breaks.
-
boldln
final ComponentBuilder boldln(String text, TextDecoration decorations)
Adds decorated bold text with line breaks.
-
boldln
final ComponentBuilder boldln(String text, Color color, TextDecoration decorations)
Adds decorated colored text with line breaks.
-
boldColorln
final Unit boldColorln(String $self, Color color)
Adds colored bold text wit hline break
-
-
-
-