Package jexer
Jexer - Java Text User Interface library
This library is a text-based windowing system loosely reminiscent of Borland's Turbo Vision library. Jexer's goal is to enable people to get up and running with minimum hassle and lots of polish. A very quick "Hello World" application can be created as simply as this:
import jexer.TApplication;
public class MyApplication extends TApplication {
public MyApplication() throws Exception {
super(BackendType.XTERM);
// Create standard menus for Tool, File, and Window.
addToolMenu();
addFileMenu();
addWindowMenu();
}
public static void main(String [] args) throws Exception {
MyApplication app = new MyApplication();
app.run();
}
}
-
Interface Summary Interface Description EditMenuUser EditMenuUser is used by TApplication to enable/disable edit menu items.Scrollable Scrollable provides a public API for horizontal and vertical scrollbars. -
Class Summary Class Description TAction A TAction represents a simple action to perform in response to the user.TApplication TApplication is the main driver class for a full Text User Interface application.TButton TButton implements a simple button.TCalendar TCalendar is a date picker widget.TCheckBox TCheckBox implements an on/off checkbox.TComboBox TComboBox implements a combobox containing a drop-down list and edit field.TCommand This class encapsulates a user command event.TDesktop TDesktop is a special-class window that is drawn underneath everything else.TDirectoryList TDirectoryList shows the files within a directory.TEditColorThemeWindow TEditColorThemeWindow provides an easy UI for users to alter the running color theme.TEditorWidget TEditorWidget displays an editable text document.TEditorWindow TEditorWindow is a basic text file editor.TExceptionDialog TExceptionDialog displays an exception and its stack trace to the user, and provides a means to save a troubleshooting report for support.TField TField implements an editable text field.TFileOpenBox TFileOpenBox is a system-modal dialog for selecting a file to open.THelpWindow THelpWindowTHScroller THScroller implements a simple horizontal scroll bar.TImage TImage renders a piece of a bitmap image on screen.TImageWindow TImageWindow shows an image with scrollbars.TInputBox TInputBox is a system-modal dialog with an OK button and a text input field.TKeypress This class represents keystrokes.TLabel TLabel implements a simple label, with an optional mnemonic hotkey action associated with it.TList TList shows a list of strings, and lets the user select one.TMessageBox TMessageBox is a system-modal dialog with buttons for OK, Cancel, Yes, or No.TPanel TPanel is an empty container for other widgets.TPasswordField TPasswordField implements an editable text field that displays stars/asterisks when it is not active.TProgressBar TProgressBar implements a simple progress bar.TRadioButton TRadioButton implements a selectable radio button.TRadioGroup TRadioGroup is a collection of TRadioButtons with a box and label.TScreenOptionsWindow TScreenOptionsWindow provides an easy UI for users to alter the running screen options such as fonts and images.TScrollableWidget TScrollableWidget is a convenience superclass for widgets that have scrollbars.TScrollableWindow TScrollableWindow is a convenience superclass for windows that have scrollbars.TSpinner TSpinner implements a simple up/down spinner.TSplitPane TSplitPane contains two widgets with a draggable horizontal or vertical bar between them.TStatusBar TStatusBar implements a status line with clickable buttons.TTableWidget TTableWidget is used to display and edit regular two-dimensional tables of cells.TTableWindow TTableWindow is used to display and edit regular two-dimensional tables of cells.TTerminalWidget TTerminalWidget exposes a ECMA-48 / ANSI X3.64 style terminal in a widget.TTerminalWindow TTerminalWindow exposes a ECMA-48 / ANSI X3.64 style terminal in a window.TText TText implements a simple scrollable text area.TTextPicture TTextPicture displays a color-and-text canvas, also called "ANSI Art" or "ASCII Art".TTextPictureWindow TTextPictureWindow shows an ASCII/ANSI art file with scrollbars.TTimer TTimer implements a simple timer.TVScroller TVScroller implements a simple vertical scroll bar.TWidget TWidget is the base class of all objects that can be drawn on screen or handle user input events.TWindow TWindow is the top-level container and drawing surface for other widgets. -
Enum Summary Enum Description TApplication.BackendType Two backend types are available.TFileOpenBox.Type TFileOpenBox can be called for either Open or Save actions.TImage.Scale Selections for fitting the image to the text cells.TMessageBox.Result Message boxes have these possible results.TMessageBox.Type Message boxes have these supported types.TTableWidget.Border Available borders for cells.TText.Justification Available text justifications.