Package space.maxus.flare.ui.compose
Interface Disable
- All Known Subinterfaces:
Button,Checkbox,ContainerSlot,GoBackButton,Modal,Selection<E>,Slideshow,TextInput
public interface Disable
A super interface for composable elements that can be disabled
-
Method Summary
Modifier and TypeMethodDescriptionReturns the reactive disabled state of the elementdefault booleanReturns whether the element is disableddefault booleanReturns whether the element is not disableddefault voidsetDisabled(boolean disabled) Sets whether the element is disabled
-
Method Details
-
isDisabled
default boolean isDisabled()Returns whether the element is disabled- Returns:
- Whether the element is disabled
-
setDisabled
default void setDisabled(boolean disabled) Sets whether the element is disabled- Parameters:
disabled- Whether the element is disabled
-
isNotDisabled
default boolean isNotDisabled()Returns whether the element is not disabled- Returns:
- Whether the element is not disabled
-
disabledState
ReactiveState<Boolean> disabledState()Returns the reactive disabled state of the element- Returns:
- The reactive disabled state of the element
-