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

org.valkyriercp.core.Message Maven / Gradle / Ivy

There is a newer version: 1.3
Show newest version
package org.valkyriercp.core;

import javax.swing.*;

public interface Message {
        /**
         * Timestamp in long format of the message creation.
         */
        long getTimestamp();

        /**
         * The textual representation of the message. This is not necessarily how
         * the message will appear on a GUI component.
         *
         * @return textual message, never null, but possibly an
         * empty string.
         */
        String getMessage();

        /**
         * Return the {@link Severity} of this message, possibly null.
         */
        Severity getSeverity();

        /**
         * Decorate the given component with this message.
         *
         * @param component visual component to decorate.
         */
        void renderMessage(JComponent component);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy