Class LogEvent

java.lang.Object
com.chillycheesy.modulo.events.Event
com.chillycheesy.modulo.event.LogEvent
All Implemented Interfaces:
Cancelable
Direct Known Subclasses:
DebugLogEvent, ErrorLogEvent, InfoLogEvent, WarnLogEvent

public class LogEvent extends Event implements Cancelable
The Subclass of the log events. A log event was emit when a message are going to be emitted.
See Also:
DebugLogEvent, LogEvent, ErrorLogEvent, WarnLogEvent, Cancelable
  • Constructor Details

    • LogEvent

      public LogEvent(String message)
      Create a new LogEvent.
      Parameters:
      message - The message to log.
  • Method Details

    • getMessage

      public String getMessage()
      Getter for the message to load.
      Returns:
      The message to load.
    • setMessage

      public void setMessage(String message)
      Setter for the message to load.
      Parameters:
      message - The message to load.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • isCanceled

      public boolean isCanceled()
      Description copied from interface: Cancelable
      Check if the event was cancel.
      Specified by:
      isCanceled in interface Cancelable
      Returns:
      The cancel status.
    • setCanceled

      public void setCanceled(boolean cancel)
      Description copied from interface: Cancelable
      Setter for the cancel status.
      Specified by:
      setCanceled in interface Cancelable
      Parameters:
      cancel - The new cancel status.
    • setCancelableAction

      public LogEvent setCancelableAction(CancelableAction action)
      Description copied from interface: Cancelable
      Setter for the cancelable action.
      Specified by:
      setCancelableAction in interface Cancelable
      Parameters:
      action - The action to execute.
    • getCancelableAction

      public CancelableAction getCancelableAction()
      Description copied from interface: Cancelable
      Getter for the cancelable action.
      Specified by:
      getCancelableAction in interface Cancelable
      Returns:
      The action to execute.