Package org.luwrain.controls
Class ConsoleArea<E>
java.lang.Object
org.luwrain.controls.NavigationArea
org.luwrain.controls.ConsoleArea<E>
- All Implemented Interfaces:
ClipboardTranslator.Provider
,EmbeddedEditLines
,RegionTextQueryTranslator.Provider
,Area
,HotPoint
,HotPointControl
,Lines
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
static interface
static interface
static enum
static interface
static class
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
protected final ConsoleArea.Appearance<E>
protected ConsoleArea.ClickHandler<E>
protected ConsoleArea.InputHandler
protected ConsoleArea.Model<E>
protected final EmbeddedEdit
protected String
protected String
protected final ConsoleArea.InputPos
Fields inherited from class org.luwrain.controls.NavigationArea
clipboardTranslator, context, hotPointX, hotPointY, regionPoint, regionTextQueryTranslator
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
announceLine
(int index, String line) getEmbeddedEditLine
(int x, int y) protected int
int
getExistingItemIndexOnLine
(int lineIndex) getLine
(int index) int
int
void
protected boolean
onAltEnd
(InputEvent event) protected boolean
onAltHome
(InputEvent event) boolean
onAreaQuery
(AreaQuery query) protected boolean
boolean
onInputEvent
(InputEvent event) protected boolean
onMoveDown
(InputEvent event) protected boolean
onMoveUp
(InputEvent event) boolean
onSystemEvent
(SystemEvent event) void
refresh()
selected()
void
setConsoleClickHandler
(ConsoleArea.ClickHandler<E> clickHandler) void
setConsoleInputHandler
(ConsoleArea.InputHandler inputHandler) void
setEmbeddedEditLine
(int x, int y, String line) void
void
setInputPrefix
(String prefix) Methods inherited from class org.luwrain.controls.NavigationArea
beginHotPointTrans, defaultLineAnnouncement, endHotPointTrans, getAreaActions, getHotPointX, getHotPointY, getLineNotNull, getNewHotPointX, getNextBlockLine, getPrevBlockLine, getRegionPoint, getValidLineCount, isBlockBoundLine, onAltLeft, onAltRight, onClipboardCopy, onClipboardCopyAll, onDeleteRegion, onEnd, onHome, onMoveLeft, onMoveRight, onPageDown, onPageUp, onRegionTextQuery, redraw, reset, setHotPoint, setHotPointX, setHotPointY
-
Field Details
-
areaName
-
consoleModel
-
consoleAppearance
-
consoleClickHandler
-
consoleInputHandler
-
edit
-
inputPos
-
enteringPrefix
-
enteringText
-
-
Constructor Details
-
ConsoleArea
-
-
Method Details
-
setConsoleClickHandler
-
setConsoleInputHandler
-
moveHotPointToInput
public void moveHotPointToInput() -
setInputPrefix
-
setInput
-
refresh
public void refresh() -
getSelectedIndex
public int getSelectedIndex() -
selected
-
getExistingItemIndexOnLine
public int getExistingItemIndexOnLine(int lineIndex) -
onAltHome
- Overrides:
onAltHome
in classNavigationArea
-
onAltEnd
- Overrides:
onAltEnd
in classNavigationArea
-
getLineCount
public int getLineCount()- Specified by:
getLineCount
in interfaceLines
-
getLine
-
getAreaName
- Specified by:
getAreaName
in interfaceArea
-
onInputEvent
- Specified by:
onInputEvent
in interfaceArea
- Overrides:
onInputEvent
in classNavigationArea
-
onSystemEvent
- Specified by:
onSystemEvent
in interfaceArea
- Overrides:
onSystemEvent
in classNavigationArea
-
onAreaQuery
- Specified by:
onAreaQuery
in interfaceArea
- Overrides:
onAreaQuery
in classNavigationArea
-
onMoveDown
- Overrides:
onMoveDown
in classNavigationArea
-
onMoveUp
- Overrides:
onMoveUp
in classNavigationArea
-
setEmbeddedEditLine
- Specified by:
setEmbeddedEditLine
in interfaceEmbeddedEditLines
-
getEmbeddedEditLine
- Specified by:
getEmbeddedEditLine
in interfaceEmbeddedEditLines
-
announceLine
- Overrides:
announceLine
in classNavigationArea
-
getEnteringLineIndex
protected int getEnteringLineIndex() -
onEnterInEdit
protected boolean onEnterInEdit()
-