Class FWMessagePanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, EventListener, Accessible, HyperlinkListener

public final class FWMessagePanel extends JPanel implements HyperlinkListener
Infopanel with support for the different optionpane icons.
Author:
Andreas Enders
See Also:
  • Field Details

    • INFO_ICON

      public static final Icon INFO_ICON
      Icon for InfoDialogs.
    • QUESTION_ICON

      public static final Icon QUESTION_ICON
      Icon for QuestionDialogs.
    • CONFIRM_ICON

      public static final Icon CONFIRM_ICON
      Icon for ConfirmDialogs.
    • WARNING_ICON

      public static final Icon WARNING_ICON
      Icon for WarningDialogs.
    • EXCEPTION_ICON

      public static final Icon EXCEPTION_ICON
      Icon for ExceptionDialogs.
    • INFO

      public static final int INFO
      See Also:
    • QUESTION

      public static final int QUESTION
      See Also:
    • EXCEPTION

      public static final int EXCEPTION
      See Also:
    • WARNING

      public static final int WARNING
      See Also:
    • CONFIRM

      public static final int CONFIRM
      See Also:
  • Constructor Details

    • FWMessagePanel

      public FWMessagePanel(String aInfoText, int aIconID)
      Creates a InfoPanel with the given icon id.
    • FWMessagePanel

      public FWMessagePanel(String aTitle, String aInfoText, int aIconID)
      Creates a InfoPanel with the given icon id.
    • FWMessagePanel

      public FWMessagePanel(String aInfoText, Icon aIcon)
      Creates a InfoPanel with the given icon.
    • FWMessagePanel

      public FWMessagePanel(String aTitle, String aInfoText, Icon aIcon)
      Creates a InfoPanel with the given icon.
    • FWMessagePanel

      public FWMessagePanel(String aTitle, String aInfoText, Icon aIcon, Integer aMaxTextWidth)
      Creates a InfoPanel with the given icon.
    • FWMessagePanel

      public FWMessagePanel(String aTitle, String aInfoText, Icon aIcon, Integer aMaxTextWidth, boolean aAllwaysVisible)
      Creates a InfoPanel with the given icon.
  • Method Details

    • swapInfoPanelVisibility

      public static boolean swapInfoPanelVisibility()
      Inverts the visibility of all instances and returns the new visibility-state.
    • setInfoPanelsVisible

      public static void setInfoPanelsVisible(boolean aVisible)
      Shows or hides all instances.
    • setMinimized

      public void setMinimized(boolean aMinimized)
      Minimizes or maximizes this infopanel
    • getPreferredSize

      public Dimension getPreferredSize()
      Overrides:
      getPreferredSize in class JComponent
    • getInfoPanel

      public static FWMessagePanel getInfoPanel(String aInfoText, int aIconID)
      Return the Panel with the given text and the specified icon.
    • getInfoPanel

      public static FWMessagePanel getInfoPanel(String aTitle, String aInfoText, int aIconID)
      Return the Panel with the given text and the specified icon.
    • getInfoPanel

      public static FWMessagePanel getInfoPanel(String aInfoText, Icon aIcon)
      Return the Panel with the given text and the specified icon.
    • getInfoPanel

      public static FWMessagePanel getInfoPanel(String aTitle, String aInfoText, Icon aIcon)
      Return the Panel with the given text and the specified icon.
    • getInfoPanel

      public static FWMessagePanel getInfoPanel(String aInfoText)
      Return the Panel with the given text.
    • getInfoPanel

      public static FWMessagePanel getInfoPanel(String aTitle, String aInfoText)
      Return the Panel with the given text.
    • setTitle

      public void setTitle(String aTitle)
      Sets the title.
    • setInfoText

      public void setInfoText(String aInfoText)
      Sets the text.
    • hyperlinkUpdate

      public void hyperlinkUpdate(HyperlinkEvent e)
      Specified by:
      hyperlinkUpdate in interface HyperlinkListener