Interface DarkModeSwitcherHandle
- All Superinterfaces:
FormComponentHandle
Handle for the "Dark mode switcher" form component. The Swing widget is a
JButton.
Reach this handle via ScreenHandle.darkModeSwitcher().
-
Method Summary
Modifier and TypeMethodDescriptionclick()Flip the UI between light and dark mode.booleanWhether the UI is currently in dark mode.booleanWhether the active look and feel supports dark-mode switching at all.Methods inherited from interface FormComponentHandle
getId, isEnabled, isVisible
-
Method Details
-
click
Flip the UI between light and dark mode. -
isDarkMode
boolean isDarkMode()Whether the UI is currently in dark mode. -
isDarkModeSwitchingSupported
boolean isDarkModeSwitchingSupported()Whether the active look and feel supports dark-mode switching at all. When this returnsfalse, the form component stays invisible. -
assertEnabled
- Specified by:
assertEnabledin interfaceFormComponentHandle
-
assertDisabled
- Specified by:
assertDisabledin interfaceFormComponentHandle
-
assertVisible
- Specified by:
assertVisiblein interfaceFormComponentHandle
-
assertInvisible
- Specified by:
assertInvisiblein interfaceFormComponentHandle
-