Package space.maxus.flare.ui.compose
Interface Checkbox.Builder
- All Superinterfaces:
ComposableLike
- Enclosing interface:
- Checkbox
-
Method Summary
Modifier and TypeMethodDescriptiondefault ComposableConverts self to a composablebuild()Builds the componentcheckedItem(@Nullable ItemProvider checkedItem) Sets the checked item provider for this checkboxisChecked(boolean isChecked) Sets whether the checkbox is toggledisDisabled(boolean isDisabled) Sets whether the checkbox is disableduncheckedItem(@Nullable ItemProvider uncheckedItem) Sets the unchecked item provider for this checkboxMethods inherited from interface space.maxus.flare.ui.ComposableLike
inside
-
Method Details
-
checkedItem
Sets the checked item provider for this checkbox- Parameters:
checkedItem- The item provider- Returns:
- This builder
-
uncheckedItem
Sets the unchecked item provider for this checkbox- Parameters:
uncheckedItem- The item provider- Returns:
- This builder
-
isChecked
Sets whether the checkbox is toggled- Parameters:
isChecked- Whether the checkbox is toggled- Returns:
- This builder
-
isDisabled
Sets whether the checkbox is disabled- Parameters:
isDisabled- Whether the checkbox is disabled- Returns:
- This builder
-
build
Checkbox build()Builds the component- Returns:
- The component
-
asComposable
Description copied from interface:ComposableLikeConverts self to a composable- Specified by:
asComposablein interfaceComposableLike- Returns:
- The composable
-