Package com.chillycheesy.modulo.event
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
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
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanGetter for the cancelable action.Getter for the message to load.booleanCheck if the event was cancel.setCancelableAction(CancelableAction action)Setter for the cancelable action.voidsetCanceled(boolean cancel)Setter for the cancel status.voidsetMessage(String message)Setter for the message to load.Methods inherited from class com.chillycheesy.modulo.events.Event
getEmitter, setEmitter
-
Constructor Details
-
LogEvent
Create a new LogEvent.- Parameters:
message- The message to log.
-
-
Method Details
-
getMessage
Getter for the message to load.- Returns:
- The message to load.
-
setMessage
Setter for the message to load.- Parameters:
message- The message to load.
-
equals
-
isCanceled
public boolean isCanceled()Description copied from interface:CancelableCheck if the event was cancel.- Specified by:
isCanceledin interfaceCancelable- Returns:
- The cancel status.
-
setCanceled
public void setCanceled(boolean cancel)Description copied from interface:CancelableSetter for the cancel status.- Specified by:
setCanceledin interfaceCancelable- Parameters:
cancel- The new cancel status.
-
setCancelableAction
Description copied from interface:CancelableSetter for the cancelable action.- Specified by:
setCancelableActionin interfaceCancelable- Parameters:
action- The action to execute.
-
getCancelableAction
Description copied from interface:CancelableGetter for the cancelable action.- Specified by:
getCancelableActionin interfaceCancelable- Returns:
- The action to execute.
-