1 package com
.googlecode
.lanterna
.gui2
;
4 * Extended interface of TextGUIThread for implementations that uses a separate thread for all GUI event processing and
9 public interface AsynchronousTextGUIThread
extends TextGUIThread
{
11 * Starts the AsynchronousTextGUIThread, typically meaning that the event processing loop will start.
16 * Requests that the AsynchronousTextGUIThread stops, typically meaning that the event processing loop will exit
21 * Blocks until the GUI loop has stopped
22 * @throws InterruptedException In case this thread was interrupted while waiting for the GUI thread to exit
24 void waitForStop() throws InterruptedException
;
27 * Returns the current status of this GUI thread
28 * @return Current status of the GUI thread
33 * Enum representing the states of the GUI thread life-cycle
37 * The instance has been created but not yet started
41 * The thread has started an is running
45 * The thread is trying to stop but is still running
49 * The thread has stopped