Interface LookAndFeelHandler
- All Superinterfaces:
LookAndFeelEnhancer
A look and feel handler can apply a look and feel.
An implementation of this interface together with its dependencies
can be added on the "Installer->Custom Code & Resources" step and can then be
configured on the "Installer->Look & Feel" step.
The super-interface LookAndFeelEnhancer contains a number of methods with
default implementations that can be overridden in order to customize certain aspects
of creating the UI.
-
Field Summary
Fields inherited from interface LookAndFeelEnhancer
DEFAULT_LIGHT_TITLE_COLOR -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyLookAndFeel(boolean darkDesktop) Called when the installer application is ready to apply the look and feel.default voidsetDark(boolean dark) Switch between dark and light mode.Methods inherited from interface LookAndFeelEnhancer
computeFontScaleFactor, createTriStateCheckBox, disableExtraSelectionPainting, getAlertFont, getCustomScaleFactor, getFileChooserLowerAccessoryInset, getTitleColor, isDark, isDarkModeSwitchingSupported, isPreventTransparency, isWideTreeSelection, prepareWindowModifier and TypeMethodDescriptiondefault floatcomputeFontScaleFactor(Font font) Returns the scale factor of a font with respect to the default font.default JCheckBoxReturns a tri-state checkbox if a specific implementation can be supplied by the look and feeldefault voidAdvises the look and feel UI not to perform any extra drawing for selected nodes in the specified tree.default FontReturns the font for normal text in alert boxes.default floatReturns the custom scale factor for the look and feel.default intSome look and feels provide a file chooser dialog where the lower accessory should have an inset on the left side.default ColorReturns the color for the title in alert boxes.default booleanisDark()Returns if the look and feel displays a dark mode.default booleanReturns if the look and feel supports switching between light and dark mode viaUiUtil.setDarkUi(boolean).default booleanisPreventTransparency(JComponent component) Returns if a component should not be made transparent with a call toJComponent.setOpaque(boolean)when it is contained in a parent container with a non-default background color.default booleanReturns if tree selections extend across the entire width of the tree as opposed to just the label.default voidprepareWindow(Window window) Prepare a window before it is displayable.
-
Method Details
-
applyLookAndFeel
-
setDark
default void setDark(boolean dark) Switch between dark and light mode. This method will be called when user code invokesUiUtil.setDarkUi(boolean), that method will also update the component hierarchy in all windows.By default, this method throws an
UnsupportedOperationException. If it is implemented,LookAndFeelEnhancer.isDarkModeSwitchingSupported()must be overridden to returntrue.- Parameters:
dark-truefor dark mode- See Also:
-