Class EnableComponentSupport
java.lang.Object
com.inductiveautomation.ignition.designer.gui.EnableComponentSupport
In the scenario where you have a
JPanel
or a JComponent
for which you want the
enable state of the children to match those of the parents, you can use this class to achieve that. The typical
use case is you have a components in a JPanel
and you need to disable all the child
components contained in the panel. JLabel
s will be excluded from having their enable state changed.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAllComponents
(JComponent component) void
setEnabled
(boolean enabled)
-
Constructor Details
-
EnableComponentSupport
- Parameters:
component
- The component for which all children will be disabled or enabled.
-
-
Method Details
-
setEnabled
public void setEnabled(boolean enabled) -
getAllComponents
-