Class StatusLayeredPanel

All Implemented Interfaces:
ComponentListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible
Direct Known Subclasses:
AsyncPanel

public class StatusLayeredPanel extends JLayeredPane implements ComponentListener
See Also:
  • Field Details

    • DEFAULT_MAIN_LAYER

      protected static int DEFAULT_MAIN_LAYER
    • DEFAULT_STATUS_LAYER

      protected static int DEFAULT_STATUS_LAYER
    • mainLayer

      protected int mainLayer
    • statusLayer

      protected int statusLayer
    • defInsets

      protected Insets defInsets
    • statusMessageLabel

      protected JLabel statusMessageLabel
    • statusButton

      protected JButton statusButton
    • statusButton2

      protected JButton statusButton2
    • statusPanel

      protected JPanel statusPanel
  • Constructor Details

    • StatusLayeredPanel

      public StatusLayeredPanel()
    • StatusLayeredPanel

      public StatusLayeredPanel(int mainLayer, int statusLayer)
  • Method Details

    • setStatusMessage

      public void setStatusMessage(String message)
      Set the status message. This is safe to call from non-Swing thread.
      Parameters:
      message - the message
    • onSetStatusMessage

      public void onSetStatusMessage()
    • setStatusMessageButton

      public void setStatusMessageButton(String message, String buttonLabel, ActionListener actionListener)
      Set the status message with a button. This is safe to call from non-Swing thread.
      Parameters:
      message - the message
      buttonLabel - label for the button
      actionListener - action listener for the button
    • setButton2

      public void setButton2(String buttonLabel, ActionListener actionListener)
    • disableStatusMessage

      public void disableStatusMessage()
      Disable the status message. This is safe to call from non-Swing thread.
    • removeAllComponentsExceptStatusLabel

      public void removeAllComponentsExceptStatusLabel()
    • componentResized

      public void componentResized(ComponentEvent e)
      Specified by:
      componentResized in interface ComponentListener
    • add

      public Component add(Component comp)
      Overrides:
      add in class Container
    • add

      public void add(Component comp, Object constraints)
      Overrides:
      add in class Container
    • componentMoved

      public void componentMoved(ComponentEvent e)
      Specified by:
      componentMoved in interface ComponentListener
    • componentShown

      public void componentShown(ComponentEvent e)
      Specified by:
      componentShown in interface ComponentListener
    • componentHidden

      public void componentHidden(ComponentEvent e)
      Specified by:
      componentHidden in interface ComponentListener