ColorThemeSelectorBuilder

class ColorThemeSelectorBuilder(width: Int, theme: ColorTheme) : SelectorBuilder<ColorTheme>

Builder for a Selector to change the theme of multiple ColorThemeOverrides or Groups at runtime.

Constructors

ColorThemeSelectorBuilder
Link copied to clipboard
common
fun ColorThemeSelectorBuilder(width: Int, theme: ColorTheme)

Types

Companion
Link copied to clipboard
common
object Companion

Functions

build
Link copied to clipboard
common
open override fun build(): Selector<ColorTheme>
Builds an object of type T.
createCopy
Link copied to clipboard
common
open override fun createCopy(): Builder<Selector<ColorTheme>>
Creates a deep copy of this object.
equals
Link copied to clipboard
common
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open fun hashCode(): Int
toString
Link copied to clipboard
common
open fun toString(): String
withCenteredText
Link copied to clipboard
common
fun withCenteredText(centerText: Boolean): SelectorBuilder<ColorTheme>
Whether the text on the label should be centered.
withClickableLabel
Link copied to clipboard
common
fun withClickableLabel(clickable: Boolean): SelectorBuilder<ColorTheme>
When set to true the center component, showing the text, will be an undecorated button that also invokes the callback (else it is just a simple label).
withDefaultSelected
Link copied to clipboard
common
fun withDefaultSelected(item: ColorTheme): SelectorBuilder<ColorTheme>
withGroups
Link copied to clipboard
common
fun withGroups(vararg groups: Group<out Component>): ColorThemeSelectorBuilder
Sets the given groups to be updated whenever the underlying Selector's Selector.selectedValue changes.
withPosition
Link copied to clipboard
common
override fun withPosition(position: Position): SelectorBuilder<ColorTheme>
Aligns the resulting Component positionally, relative to its parent.
override fun withPosition(x: Int, y: Int): SelectorBuilder<ColorTheme>
Aligns the resulting Component positionally, relative to its parent.
withThemeables
Link copied to clipboard
common
fun withThemeables(vararg themeOverrides: ColorThemeOverride): ColorThemeSelectorBuilder
Sets the given themeOverrides to be updated whenever the underlying Selector's Selector.selectedValue changes.
withThemeOverrides
Link copied to clipboard
common
fun withThemeOverrides(vararg themeOverrides: ColorThemeOverride): ColorThemeSelectorBuilder
Sets the given themeOverrides to be updated whenever the underlying Selector's Selector.selectedValue changes.
withToStringMethod
Link copied to clipboard
common
fun withToStringMethod(function: (ColorTheme) -> String): SelectorBuilder<ColorTheme>
The method to use for the label text if not ::toString

Properties

values
Link copied to clipboard
common
val values: List<ColorTheme>
width
Link copied to clipboard
common
val width: Int

Sources

(source)
Link copied to clipboard