All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.bidib.wizard.api.model.event.ConsoleMessageEvent Maven / Gradle / Ivy

There is a newer version: 2.0.29
Show newest version
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 + "]";
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy