org.bidib.wizard.api.model.event.ConsoleMessageEvent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bidibwizard-api Show documentation
Show all versions of bidibwizard-api Show documentation
jBiDiB BiDiB Wizard API POM
package org.bidib.wizard.api.model.event;
import org.bidib.wizard.api.service.console.ConsoleColor;
public class ConsoleMessageEvent {
private final ConsoleColor consoleColor;
private final String consoleMessage;
private final boolean ensureConsoleVisible;
public ConsoleMessageEvent(final ConsoleColor consoleColor, final String consoleMessage) {
this(consoleColor, consoleMessage, true);
}
public ConsoleMessageEvent(final ConsoleColor consoleColor, final String consoleMessage,
final boolean ensureConsoleVisible) {
this.consoleColor = consoleColor;
this.consoleMessage = consoleMessage;
this.ensureConsoleVisible = ensureConsoleVisible;
}
public ConsoleColor getConsoleColor() {
return consoleColor;
}
public String getConsoleMessage() {
return consoleMessage;
}
public boolean isEnsureConsoleVisible() {
return ensureConsoleVisible;
}
@Override
public String toString() {
return "ConsoleMessageEvent[ensureConsoleVisible=" + ensureConsoleVisible + ",consoleColor=" + consoleColor
+ ",consoleMessage=" + consoleMessage + "]";
}
}