Class ErrorableContentPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class ErrorableContentPanel extends JPanel
Author: Perry Arellano-Jones Created: 14Apr2015

This class provides a panel that pops up and displays a list of errors supplied to it. There are 4 primary components 1. The SlideOverPane - controls the animation of the sliding panel. Height and direction of slide are configurable. 2. SlidingContentPanel - the 'holder' for the content you wish to animate. It has an actionable icon in the corner to allow minimizing. 3. contentPane - This pane holds the 'primary' content of the panel, and the slider slides over it. 4. The ErrorTablePanel is a convenience panel that has dark title bar and provides a single column data table for presenting errors

See Also:
  • Constructor Details

    • ErrorableContentPanel

      public ErrorableContentPanel(JComponent content)
  • Method Details

    • getContent

      public JComponent getContent()
      Returns the component the pane is holding. Should only ever be a single component added, as the only way to add is via the constructor or the load() method.
    • setBackground

      public void setBackground(Color bg)
      Overrides:
      setBackground in class JComponent
    • replaceContent

      public void replaceContent(JComponent component)
      The primary means of replacing the main content for the Panel. The component set here (usually a Panel) will be be centered in the ErrorableContentPanel and any popups will slide on top of it. The size of the JComponent passed in is used to calculate the width and height of the popup.
    • collapse

      public void collapse()
    • expand

      public void expand()
    • updateAndShowErrors

      public void updateAndShowErrors(List<String> errors)
    • loadAndShowErrors

      public void loadAndShowErrors(JComponent content, List<String> errors)
    • setOpaque

      public void setOpaque(boolean isOpaque)
      Overrides:
      setOpaque in class JComponent