Class SplitPaneToggleVisibilitySupport

java.lang.Object
com.inductiveautomation.ignition.designer.gui.SplitPaneToggleVisibilitySupport
All Implemented Interfaces:
ClientPropertyAware

public class SplitPaneToggleVisibilitySupport extends Object implements ClientPropertyAware
For a SplitPane that you want to have the visibility of one of the two components set in the SplitPane to be toggled between being visible and being not visible, you can use this class to provide that capability.
 
         var support = new SplitPaneToggleVisibilitySupport(
             splitPane, // a SplitPane that already has the left/top and right/bottom component set
             HideOption.LEFT_OR_TOP, // we will hide/show the left/top component
             false, // we will hide the left/top component initially
             0.25 // the default proportional divider position when both components are shown for the first time
         );

         // we toggle between hiding and showing the left/top component
         button.addActionListener(e -> support.toggleVisibility());