Class TextInputProperties
-
- All Implemented Interfaces:
-
kotlin.Cloneable
public class TextInputProperties extends Properties
-
-
Field Summary
Fields Modifier and Type Field Description public final static TextInputPropertiesfloatingNumberpublic final static TextInputPropertiesintegralNumberprivate final Animation.TypecaretAnimationprivate final LongcaretAnimationDurationprivate final ColorcaretColorprivate final ColorplaceholderColorprivate final Colors.Palettepaletteprivate final UnitlateralPaddingprivate final UnitverticalPaddingprivate final FloatArraycornerRadiiprivate final ColoroutlineColorprivate final UnitoutlineThicknessprivate final TextPropertiestextprivate final transient Function1<String, Boolean>sanitizationFunctionprivate transient Colorscolorsprivate transient FontFamilyfontsprivate final Vec2<Unit>sizeprivate final transient HashMap<Event, Function2<Component, Event, Boolean>>eventHandlersprivate final Booleaninitialized
-
Constructor Summary
Constructors Constructor Description TextInputProperties(TextProperties text, Function1<String, Boolean> sanitizationFunction)
-
Method Summary
Modifier and Type Method Description Animation.TypegetCaretAnimation()LonggetCaretAnimationDuration()ColorgetCaretColor()final ColorgetPlaceholderColor()Colors.PalettegetPalette()UnitgetLateralPadding()UnitgetVerticalPadding()FloatArraygetCornerRadii()ColorgetOutlineColor()UnitgetOutlineThickness()TextPropertiesgetText()Function1<String, Boolean>getSanitizationFunction()final static TextInputPropertiesfloatingNumber(Float min, Float max)final static TextInputPropertiesintegralNumber(Integer min, Integer max)final static TextInputPropertiesnumberProperties(Boolean floating, Float min, Float max)final static TextInputPropertiesnumberProperties(Boolean floating)-
Methods inherited from class org.polyfrost.polyui.property.Properties
addEventHandler, getColors, getEventHandlers, getFonts, getInitialized, getSize, init, setColors, setFonts -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
TextInputProperties
TextInputProperties(TextProperties text, Function1<String, Boolean> sanitizationFunction)
- Parameters:
sanitizationFunction- A function that will be called every time the text is changed.
-
-
Method Detail
-
getCaretAnimation
Animation.Type getCaretAnimation()
-
getCaretAnimationDuration
Long getCaretAnimationDuration()
-
getCaretColor
Color getCaretColor()
-
getPlaceholderColor
final Color getPlaceholderColor()
-
getPalette
Colors.Palette getPalette()
-
getLateralPadding
Unit getLateralPadding()
-
getVerticalPadding
Unit getVerticalPadding()
-
getCornerRadii
FloatArray getCornerRadii()
-
getOutlineColor
Color getOutlineColor()
-
getOutlineThickness
Unit getOutlineThickness()
-
getText
TextProperties getText()
-
getSanitizationFunction
Function1<String, Boolean> getSanitizationFunction()
-
floatingNumber
final static TextInputProperties floatingNumber(Float min, Float max)
-
integralNumber
final static TextInputProperties integralNumber(Integer min, Integer max)
-
numberProperties
final static TextInputProperties numberProperties(Boolean floating, Float min, Float max)
-
numberProperties
final static TextInputProperties numberProperties(Boolean floating)
-
-
-
-