Class EnableComponentSupport

java.lang.Object
com.inductiveautomation.ignition.designer.gui.EnableComponentSupport

public class EnableComponentSupport extends Object
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. JLabels will be excluded from having their enable state changed.
  • Constructor Details

    • EnableComponentSupport

      public EnableComponentSupport(JComponent component)
      Parameters:
      component - The component for which all children will be disabled or enabled.
  • Method Details

    • setEnabled

      public void setEnabled(boolean enabled)
    • getAllComponents

      public static List<Component> getAllComponents(JComponent component)