Class ComponentUtilities
java.lang.Object
se.datadosen.component.ComponentUtilities
Keep the enabled state of listed components in sync with a JComboBox selection
or the selected state of an AbstractButton, for instance a JCheckBox
- Since:
- 8.5
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddEnabledVeto(JComponent comp, Object veto) static booleanisEnabledVetoed(JComponent comp) static voidremoveEnabledVeto(JComponent comp, Object veto) static voidwhenEqualsDisable(JComboBox cbox, Object value, JComponent comp) static voidwhenEqualsDisable(JComboBox cbox, Object value, JComponent... comps) static voidwhenEqualsEnable(JComboBox cbox, Object value, JComponent comp) static voidwhenEqualsEnable(JComboBox cbox, Object value, JComponent... comps) static voidwhenSelectedDisable(AbstractButton button, JComponent comp) static voidwhenSelectedDisable(AbstractButton button, JComponent... comps) static voidwhenSelectedEnable(AbstractButton button, JComponent comp) static voidwhenSelectedEnable(AbstractButton button, JComponent... comps)
-
Constructor Details
-
ComponentUtilities
public ComponentUtilities()
-
-
Method Details
-
addEnabledVeto
-
isEnabledVetoed
-
removeEnabledVeto
-
whenSelectedEnable
-
whenSelectedDisable
-
whenSelectedEnable
-
whenSelectedDisable
-
whenEqualsEnable
-
whenEqualsDisable
-
whenEqualsEnable
-
whenEqualsDisable
-