Class MessageEvent

    • Field Detail

      • INFORMATION_MESSAGE

        public static final int INFORMATION_MESSAGE
        Information message type.
        See Also:
        Constant Field Values
      • ERROR_MESSAGE

        public static final int ERROR_MESSAGE
        Error messages type.
        See Also:
        Constant Field Values
      • WARNING_MESSAGE

        public static final int WARNING_MESSAGE
        Warning messages type.
        See Also:
        Constant Field Values
      • type

        protected int type
        the event type
      • message

        protected String message
        the message text
    • Constructor Detail

      • MessageEvent

        public MessageEvent​(Object source,
                            int type,
                            String message)
        Construct a MessageEvent object
        Parameters:
        source - the Object that originated the event (typically this)
        type - an int specifying the event
        message - message text
    • Method Detail

      • getType

        public int getType()
        Returns the event type
        Returns:
        an int representing the type value
      • getMessage

        public String getMessage()
        Returns the message text
        Returns:
        the message text