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 titleThe title of the error message
* @param messageThe error message contents
*/ void showError(String title, String message); /** * Displays an error to the user as an independent box * * @param messageThe error message contents
*/ void showError(String message); /** * Displays a message to the user as an independent box * * @param titleThe title of the message
* @param messageThe message contents
*/ void showMessage(String title, String message); /** * Displays a message to the user as an independent box * * @param messageThe message contents
*/ void showMessage(String message); /** * Asks the user for a directory as a file object * * @param promptThe prompt to show the user
* @returnThe directory given by the user
*/ File askForDirectory(String prompt); }