Class ConsoleLogger

  • All Implemented Interfaces:
    IObserver

    public class ConsoleLogger
    extends java.lang.Object
    implements IObserver
    Widget that captures and displays messages in a GUI.
    • Constructor Summary

      Constructors 
      Constructor Description
      ConsoleLogger()  
      ConsoleLogger​(boolean writeDates, boolean useHistorical)
      Initializes the notifications interface.
    • Constructor Detail

      • ConsoleLogger

        public ConsoleLogger()
      • ConsoleLogger

        public ConsoleLogger​(boolean writeDates,
                             boolean useHistorical)
        Initializes the notifications interface.
        Parameters:
        writeDates - Log the date and time.
        useHistorical - Keep logs.
    • Method Detail

      • subscribe

        public void subscribe()
      • unsubscribe

        public void unsubscribe()
      • notify

        public void notify​(Events event,
                           java.lang.Object... data)
        Specified by:
        notify in interface IObserver
      • dispose

        public void dispose()