Module technology.sola.engine
Class TextInputStyles.Builder<Self extends TextInputStyles.Builder<Self>>
java.lang.Object
technology.sola.engine.graphics.gui.style.BaseStyles.Builder<Self>
technology.sola.engine.graphics.gui.elements.TextStyles.Builder<Self>
technology.sola.engine.graphics.gui.elements.input.TextInputStyles.Builder<Self>
- Type Parameters:
Self
- this builder type
- Enclosing class:
- TextInputStyles
public static class TextInputStyles.Builder<Self extends TextInputStyles.Builder<Self>>
extends TextStyles.Builder<Self>
Builder class for
TextInputStyles
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds a new styles instance based on the builder properties that were set.setPlaceholderColor
(@Nullable Color placeholderColor) Sets theTextInputStyles.placeholderColor()
.Methods inherited from class technology.sola.engine.graphics.gui.elements.TextStyles.Builder
setFontAssetId, setTextAlignment, setTextColor
Methods inherited from class technology.sola.engine.graphics.gui.style.BaseStyles.Builder
setBackgroundColor, setBorderColor, setCrossAxisChildren, setDirection, setGap, setHeight, setHeight, setMainAxisChildren, setPadding, setPadding, setPaddingBottom, setPaddingHorizontal, setPaddingLeft, setPaddingRight, setPaddingTop, setPaddingVertical, setPositionX, setPositionY, setVisibility, setWidth, setWidth
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Description copied from class:BaseStyles.Builder
Builds a new styles instance based on the builder properties that were set.- Overrides:
build
in classTextStyles.Builder<Self extends TextInputStyles.Builder<Self>>
- Returns:
- the new styles instance
-
setPlaceholderColor
Sets theTextInputStyles.placeholderColor()
.- Parameters:
placeholderColor
- theColor
of the placeholder- Returns:
- this
-