Package com.install4j.api.formcomponents
Interface WidgetStyleHandler
public interface WidgetStyleHandler
With the widget style handler, you can apply a widget style to certain Swing components.
This is only required if you create buttons in a custom form component or custom screen.
All methods take a widget style ID. You can pass the empty string for the widget style that has been selected for the current screen style.
If you want the user to select a widget style, you can add a property of type String to your bean with a context of
CONTEXT_WIDGET_STYLE_ID.
The user can also select the inherited style, in which case the property will contain the empty string.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault <T extends JButton>
TapplyWidgetStyle(T button) Apply the default widget style to a button.<T extends JButton>
TapplyWidgetStyle(T button, String widgetStyleId) Apply a widget style to a button.
-
Method Details
-
applyWidgetStyle
Apply a widget style to a button.- Parameters:
button- the buttonwidgetStyleId- the widget style ID. Pass the empty string for the default widget style of the current screen style.- Returns:
- the button, for fluent invocations
-
applyWidgetStyle
Apply a widget style to a text component.- Parameters:
textComponent- the text componentwidgetStyleId- the widget style ID. Pass the empty string for the default widget style of the current screen style.- Returns:
- the text component, for fluent invocations
-
applyWidgetStyle
Apply a widget style to a spinner.- Parameters:
spinner- the spinnerwidgetStyleId- the widget style ID. Pass the empty string for the default widget style of the current screen style.- Returns:
- the spinner, for fluent invocations
-
applyWidgetStyle
Apply a widget style to a combo box.- Parameters:
comboBox- the combo boxwidgetStyleId- the widget style ID. Pass the empty string for the default widget style of the current screen style.- Returns:
- the combo box, for fluent invocations
-
applyWidgetStyle
Apply a widget style to a label.- Parameters:
label- the labelwidgetStyleId- the widget style ID. Pass the empty string for the default widget style of the current screen style.- Returns:
- the label, for fluent invocations
-
applyWidgetStyle
Apply a widget style to a toggle button.- Parameters:
toggleButton- the toggle buttonwidgetStyleId- the widget style ID. Pass the empty string for the default widget style of the current screen style.- Returns:
- the toggle button, for fluent invocations
-
applyWidgetStyle
Apply a widget style to a list.- Parameters:
list- the listwidgetStyleId- the widget style ID. Pass the empty string for the default widget style of the current screen style.- Returns:
- the list, for fluent invocations
-
applyWidgetStyle
Apply a widget style to a tree.- Parameters:
tree- the treewidgetStyleId- the widget style ID. Pass the empty string for the default widget style of the current screen style.- Returns:
- the tree, for fluent invocations
-
applyWidgetStyle
Apply a widget style to a slider.- Parameters:
slider- the sliderwidgetStyleId- the widget style ID. Pass the empty string for the default widget style of the current screen style.- Returns:
- the slider, for fluent invocations
-
applyWidgetStyle
Apply a widget style to a progress bar.- Parameters:
progressBar- the progress barwidgetStyleId- the widget style ID. Pass the empty string for the default widget style of the current screen style.- Returns:
- the progress bar, for fluent invocations
-
applyWidgetStyle
Apply the default widget style to a button.- Parameters:
button- the button- Returns:
- the button, for fluent invocations
- See Also:
-
applyWidgetStyle
Apply the default widget style to a text component.- Parameters:
textComponent- the text component- Returns:
- the text component, for fluent invocations
- See Also:
-
applyWidgetStyle
Apply the default widget style to a spinner.- Parameters:
spinner- the spinner- Returns:
- the spinner, for fluent invocations
- See Also:
-
applyWidgetStyle
Apply the default widget style to a combo box.- Parameters:
comboBox- the combo box- Returns:
- the combo box, for fluent invocations
- See Also:
-
applyWidgetStyle
Apply the default widget style to a label.- Parameters:
label- the label- Returns:
- the label, for fluent invocations
- See Also:
-
applyWidgetStyle
Apply the default widget style to a toggle button.- Parameters:
toggleButton- the toggle button- Returns:
- the toggle button, for fluent invocations
- See Also:
-
applyWidgetStyle
Apply the default widget style to a list.- Parameters:
list- the list- Returns:
- the list, for fluent invocations
- See Also:
-
applyWidgetStyle
Apply the default widget style to a tree.- Parameters:
tree- the tree- Returns:
- the tree, for fluent invocations
- See Also:
-
applyWidgetStyle
Apply the default widget style to a slider.- Parameters:
slider- the slider- Returns:
- the slider, for fluent invocations
- See Also:
-
applyWidgetStyle
Apply the default widget style to a progress bar.- Parameters:
progressBar- the progress bar- Returns:
- the progress bar, for fluent invocations
- See Also:
-