ComponentContainer

interface ComponentContainer : ColorThemeOverride

Represents an object that can contain gui Components and also maintains a theme property that's synchronized between its child Components. Note that a ComponentContainer won't enforce consistency: the child themes can be changed individually, but they will be overwritten whenever the ComponentContainer's theme changes.

See also

Functions

addComponent
Link copied to clipboard
common
open fun addComponent(builder: Builder<Component>): AttachedComponent
Builds a Component using the given component Builder and adds it to this ComponentContainer.
abstract fun addComponent(component: Component): AttachedComponent
Adds a child Component to this ComponentContainer.
addComponents
Link copied to clipboard
common
open fun addComponents(vararg components: Builder<Component>): List<AttachedComponent>
Adds the given Components to this ComponentContainer.
open fun addComponents(vararg components: Component): List<AttachedComponent>
Adds the given Components to this ComponentContainer.
addFragment
Link copied to clipboard
common
open fun addFragment(fragment: Fragment): AttachedComponent
Adds the Fragment.root of the given Fragment to this ComponentContainer.
addFragments
Link copied to clipboard
common
open fun addFragments(vararg fragments: Fragment): List<AttachedComponent>
Adds the Fragment.root of the given Fragment to this ComponentContainer.
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

Properties

theme
Link copied to clipboard
common
abstract override var theme: ColorTheme
The (mutable) ColorTheme.
themeProperty
Link copied to clipboard
common
abstract override val themeProperty: Property<ColorTheme>
A Property that wraps the theme and offers data binding and observability features.

Inheritors

Container
Link copied to clipboard
Screen
Link copied to clipboard
InternalComponentContainer
Link copied to clipboard
DefaultComponentContainer
Link copied to clipboard

Sources

(source)
Link copied to clipboard