Class ControlStackPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class ControlStackPanel extends JPanel
Panel which displays a list of control summaries in a list on one side, and an area for showing the control interaction areas on the other side. When one of the items in the summary list is selected, the detail panel is filled from the content of the relevant control.
Since:
13 Mar 2013
Author:
Mark Taylor
See Also:
  • Constructor Details

    • ControlStackPanel

      public ControlStackPanel(ControlStack stack, JToolBar stackToolbar)
      Constructor.
      Parameters:
      stack - stack in which controls can be added and moved around
      stackToolbar - toolbar for stack controls, or null
  • Method Details

    • addFixedControl

      public void addFixedControl(Control control)
      Add a control to the fixed part of the stack. These controls cannot be reordered or (de)activated under user control.
      Parameters:
      control - control to add
    • removeFixedControl

      public void removeFixedControl(Control control)
      Removes a control from the fixed part of the stack.
      Parameters:
      control - control previously added
    • configureLike

      public static void configureLike(Control c0, Control c1)
      Configure one control to a similar state as another, where possible. This is done when changing selections to reduce visual jumpiness in the GUI.
      Parameters:
      c0 - template control
      c1 - control whose state may be altered