Class FancyMessage

  • All Implemented Interfaces:
    FancyText

    public class FancyMessage
    extends java.lang.Object
    implements FancyText
    A colored text-message.
    • Constructor Detail

      • FancyMessage

        public FancyMessage​(java.lang.String title,
                            java.lang.String message,
                            FancyColorScheme scheme)
        Allows easy creation of an alternating colored list. TODO: Documentation! Why does CheckStyle just ignore this?
        Parameters:
        title - The title.
        message - The body of the message.
        scheme - The color scheme to use for easy styling.
    • Method Detail

      • setColorMain

        public void setColorMain()
        Makes this FancyMessage use the main-color.
      • setColorAlt

        public void setColorAlt()
        Makes this FancyMessage use the alt-color.
      • getFancyText

        public java.lang.String getFancyText()
        Description copied from interface: FancyText
        Gets the String-representation of this FancyText.
        Specified by:
        getFancyText in interface FancyText
        Returns:
        The String-representation of this FancyText.
      • setAltColor

        public void setAltColor​(boolean altColor)
        Specifies whether this FancyMessage should use the alt-color.
        Parameters:
        altColor - Whether this FancyMessage should use the alt-color.
      • setMainColor

        public void setMainColor​(boolean mainColor)
        Specifies whether this FancyMessage should use the main-color.
        Parameters:
        mainColor - Whether this FancyMessage should use the main-color.