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.default <T extends JComboBox>
TapplyWidgetStyle(T comboBox) Apply the default widget style to a combo box.default <T extends JLabel>
TapplyWidgetStyle(T label) Apply the default widget style to a label.default <T extends JList>
TapplyWidgetStyle(T list) Apply the default widget style to a list.default <T extends JProgressBar>
TapplyWidgetStyle(T progressBar) Apply the default widget style to a progress bar.default <T extends JSlider>
TapplyWidgetStyle(T slider) Apply the default widget style to a slider.default <T extends JSpinner>
TapplyWidgetStyle(T spinner) Apply the default widget style to a spinner.default <T extends JToggleButton>
TapplyWidgetStyle(T toggleButton) Apply the default widget style to a toggle button.default <T extends JTree>
TapplyWidgetStyle(T tree) Apply the default widget style to a tree.default <T extends JTextComponent>
TapplyWidgetStyle(T textComponent) Apply the default widget style to a text component.<T extends JButton>
TapplyWidgetStyle(T button, String widgetStyleId) Apply a widget style to a button.<T extends JComboBox>
TapplyWidgetStyle(T comboBox, String widgetStyleId) Apply a widget style to a combo box.<T extends JLabel>
TapplyWidgetStyle(T label, String widgetStyleId) Apply a widget style to a label.<T extends JList>
TapplyWidgetStyle(T list, String widgetStyleId) Apply a widget style to a list.<T extends JProgressBar>
TapplyWidgetStyle(T progressBar, String widgetStyleId) Apply a widget style to a progress bar.<T extends JSlider>
TapplyWidgetStyle(T slider, String widgetStyleId) Apply a widget style to a slider.<T extends JSpinner>
TapplyWidgetStyle(T spinner, String widgetStyleId) Apply a widget style to a spinner.<T extends JToggleButton>
TapplyWidgetStyle(T toggleButton, String widgetStyleId) Apply a widget style to a toggle button.<T extends JTree>
TapplyWidgetStyle(T tree, String widgetStyleId) Apply a widget style to a tree.<T extends JTextComponent>
TapplyWidgetStyle(T textComponent, String widgetStyleId) Apply a widget style to a text component.
-
Method Details
-
applyWidgetStyle
-
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
-
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
-
applyWidgetStyle
-
applyWidgetStyle
-
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:
-