package net.knarcraft.minecraftserverlauncher.userinterface; import java.io.File; /** * Describes a generic GUI */ public interface GUI { /** * Displays a message to the user in the GUI message field * * @param message

The message contents

*/ void setStatus(String message); /** * Displays an error to the user as an independent box * * @param title

The title of the error message

* @param message

The error message contents

*/ void showError(String title, String message); /** * Displays an error to the user as an independent box * * @param message

The error message contents

*/ void showError(String message); /** * Displays a message to the user as an independent box * * @param title

The title of the message

* @param message

The message contents

*/ void showMessage(String title, String message); /** * Displays a message to the user as an independent box * * @param message

The message contents

*/ void showMessage(String message); /** * Logs a message to the logfile * * @param message

The message to log

*/ void logMessage(String message); /** * Logs an error to the logfile * * @param error

The error to log

*/ void logError(String error); /** * Asks the user for a directory as a file object * * @param prompt

The prompt to show the user

* @return

The directory given by the user

*/ File askForDirectory(String prompt); }