X-Git-Url: http://git.nikiroo.be/?p=jvcard.git;a=blobdiff_plain;f=src%2Fcom%2Fgooglecode%2Flanterna%2Fgui2%2FAsynchronousTextGUIThread.java;fp=src%2Fcom%2Fgooglecode%2Flanterna%2Fgui2%2FAsynchronousTextGUIThread.java;h=0000000000000000000000000000000000000000;hp=67efa01a682a0731a7cfb07314e211f07f8be30e;hb=f06c81000632cfb5f525ca458f719338f55f9f66;hpb=a73a906356c971b080c36368e71a15d87e8b8d31 diff --git a/src/com/googlecode/lanterna/gui2/AsynchronousTextGUIThread.java b/src/com/googlecode/lanterna/gui2/AsynchronousTextGUIThread.java deleted file mode 100644 index 67efa01..0000000 --- a/src/com/googlecode/lanterna/gui2/AsynchronousTextGUIThread.java +++ /dev/null @@ -1,54 +0,0 @@ -package com.googlecode.lanterna.gui2; - -/** - * Extended interface of TextGUIThread for implementations that uses a separate thread for all GUI event processing and - * updating. - * - * @author Martin - */ -public interface AsynchronousTextGUIThread extends TextGUIThread { - /** - * Starts the AsynchronousTextGUIThread, typically meaning that the event processing loop will start. - */ - void start(); - - /** - * Requests that the AsynchronousTextGUIThread stops, typically meaning that the event processing loop will exit - */ - void stop(); - - /** - * Blocks until the GUI loop has stopped - * @throws InterruptedException In case this thread was interrupted while waiting for the GUI thread to exit - */ - void waitForStop() throws InterruptedException; - - /** - * Returns the current status of this GUI thread - * @return Current status of the GUI thread - */ - State getState(); - - /** - * Enum representing the states of the GUI thread life-cycle - */ - enum State { - /** - * The instance has been created but not yet started - */ - CREATED, - /** - * The thread has started an is running - */ - STARTED, - /** - * The thread is trying to stop but is still running - */ - STOPPING, - /** - * The thread has stopped - */ - STOPPED, - ; - } -}