public interface Backend
Modifier and Type | Method and Description |
---|---|
void |
flushScreen()
Classes must provide an implementation that syncs the logical screen
to the physical device.
|
void |
getEvents(java.util.List<TInputEvent> queue)
Classes must provide an implementation to get keyboard, mouse, and
screen resize events.
|
Screen |
getScreen()
Get a Screen, which displays the text cells to the user.
|
SessionInfo |
getSessionInfo()
Get a SessionInfo, which exposes text width/height, language,
username, and other information from the communication stack.
|
boolean |
hasEvents()
Check if there are events in the queue.
|
void |
reloadOptions()
Reload backend options from System properties.
|
void |
setListener(java.lang.Object listener)
Set listener to a different Object.
|
void |
setTitle(java.lang.String title)
Classes must provide an implementation that sets the window title.
|
void |
shutdown()
Classes must provide an implementation that closes sockets, restores
console, etc.
|
SessionInfo getSessionInfo()
Screen getScreen()
void flushScreen()
boolean hasEvents()
void getEvents(java.util.List<TInputEvent> queue)
queue
- list to append new events tovoid shutdown()
void setTitle(java.lang.String title)
title
- the new titlevoid setListener(java.lang.Object listener)
listener
- the new listening object that run() wakes up on new
inputvoid reloadOptions()
Copyright © 2019 Kevin Lamonte. Licensed MIT.