com.mindbright.terminal.tandem6530
public abstract class ModeBase extends java.lang.Object implements Mode, AsciiCodes
Modifier and Type | Field and Description |
---|---|
protected static int |
COLUMNS |
protected static int |
ROWS |
Constructor and Description |
---|
ModeBase() |
Modifier and Type | Method and Description |
---|---|
void |
doBackspace() |
void |
doBackTab() |
void |
doCarriageReturn() |
void |
doClearAllTabs() |
void |
doClearMemoryToSpaces() |
void |
doClearMemoryToSpaces(int startRow,
int startCol,
int endRow,
int endColumn) |
void |
doClearTab() |
void |
doClickSelect(int row,
int col,
java.lang.String selectDelims) |
void |
doCursorHome() |
void |
doCursorHomeDown() |
void |
doCursorRight() |
void |
doCursorUp() |
void |
doDefineDataTypeTable(int startIndex,
byte[] entries) |
void |
doDefineEnterKeyFunction(char[] str) |
void |
doDefineFieldAttribute(int row,
int column,
boolean useFixed,
int tableRow) |
void |
doDefineVariableTable(int startIndex,
FieldAttributes[] attribs) |
void |
doDeleteCharacter() |
void |
doDeleteLine() |
void |
doDisableLocalLineEditing() |
void |
doDisplayPage(int n) |
void |
doEraseToEndOfLineOrField() |
void |
doEraseToEndOfPageOrMemory() |
void |
doHTab() |
void |
doInsertCharacter() |
void |
doInsertLine() |
void |
doLineFeed() |
void |
doPageDown() |
void |
doPageUp() |
java.lang.String |
doReadCursorAddress() |
java.lang.String |
doReadWholePageOrBuffer() |
java.lang.String |
doReadWithAddress(int startRow,
int startCol,
int endRow,
int endColumn) |
java.lang.String |
doReadWithAddressAll(int startRow,
int startCol,
int endRow,
int endColumn) |
void |
doResetModifiedDataTags() |
void |
doResetVariableTable() |
void |
doRollDown() |
void |
doRollUp() |
void |
doSelectPage(int n) |
void |
doSetBufferAddress(int row,
int column) |
void |
doSetCursorAddress(boolean displayedPage,
int row,
int column)
Set cursor position.
|
void |
doSetDefaultVideoAttribute(int attrib) |
void |
doSetMaxPageNumber(int n) |
void |
doSetTab() |
void |
doSetVideoAttribute(int attrib) |
void |
doStartField(FieldAttributes attribs) |
void |
doStartFieldExtended(FieldAttributes attribs) |
void |
doTab() |
int[] |
getAttribs(int visTop,
int row) |
int |
getBufferRows() |
char[] |
getChars(int visTop,
int row) |
abstract int |
getCol() |
int |
getDisplayCols() |
int |
getDisplayRows() |
abstract int |
getPage() |
abstract int |
getRow() |
java.lang.String |
getSelection(java.lang.String eol) |
int |
getVisTop() |
void |
hostChar(char c) |
void |
keyHandler(char c,
int virtualKey,
int modifiers) |
void |
resetClickSelect() |
void |
resetSelection() |
SearchContext |
search(SearchContext lastContext,
java.lang.String key,
boolean reverse,
boolean caseSens) |
void |
selectAll() |
void |
setDisplay(DisplayView display) |
void |
setSelection(int row1,
int col1,
int row2,
int col2) |
void |
switchReset() |
protected static final int ROWS
protected static final int COLUMNS
public void keyHandler(char c, int virtualKey, int modifiers)
keyHandler
in interface Mode
public void setDisplay(DisplayView display)
setDisplay
in interface Mode
public void switchReset()
switchReset
in interface Mode
public void doBackspace()
doBackspace
in interface Mode
public void doLineFeed()
doLineFeed
in interface Mode
public void doCarriageReturn()
doCarriageReturn
in interface Mode
public void doSetBufferAddress(int row, int column)
doSetBufferAddress
in interface Mode
public void doSetCursorAddress(boolean displayedPage, int row, int column)
doSetCursorAddress
in interface Mode
displayedPage
- true to set cursor position in displayed pagerow
- row number, starting from 1column
- column number, starting from 1public void doDefineFieldAttribute(int row, int column, boolean useFixed, int tableRow)
doDefineFieldAttribute
in interface Mode
public void doStartField(FieldAttributes attribs)
doStartField
in interface Mode
public void doClearTab()
doClearTab
in interface Mode
public void doClearAllTabs()
doClearAllTabs
in interface Mode
public void doSetVideoAttribute(int attrib)
doSetVideoAttribute
in interface Mode
public void doSetDefaultVideoAttribute(int attrib)
doSetDefaultVideoAttribute
in interface Mode
public java.lang.String doReadCursorAddress()
doReadCursorAddress
in interface Mode
public void doSetMaxPageNumber(int n)
doSetMaxPageNumber
in interface Mode
public void doDefineDataTypeTable(int startIndex, byte[] entries)
doDefineDataTypeTable
in interface Mode
public void doResetVariableTable()
doResetVariableTable
in interface Mode
public void doDefineVariableTable(int startIndex, FieldAttributes[] attribs)
doDefineVariableTable
in interface Mode
public void doDefineEnterKeyFunction(char[] str)
doDefineEnterKeyFunction
in interface Mode
public void doCursorUp()
doCursorUp
in interface Mode
public void doCursorRight()
doCursorRight
in interface Mode
public void doCursorHomeDown()
doCursorHomeDown
in interface Mode
public void doCursorHome()
doCursorHome
in interface Mode
public void doRollDown()
doRollDown
in interface Mode
public void doPageDown()
doPageDown
in interface Mode
public void doClearMemoryToSpaces()
doClearMemoryToSpaces
in interface Mode
public void doClearMemoryToSpaces(int startRow, int startCol, int endRow, int endColumn)
doClearMemoryToSpaces
in interface Mode
public void doEraseToEndOfPageOrMemory()
doEraseToEndOfPageOrMemory
in interface Mode
public java.lang.String doReadWithAddress(int startRow, int startCol, int endRow, int endColumn)
doReadWithAddress
in interface Mode
public void doEraseToEndOfLineOrField()
doEraseToEndOfLineOrField
in interface Mode
public java.lang.String doReadWithAddressAll(int startRow, int startCol, int endRow, int endColumn)
doReadWithAddressAll
in interface Mode
public void doInsertLine()
doInsertLine
in interface Mode
public void doDeleteLine()
doDeleteLine
in interface Mode
public void doDisableLocalLineEditing()
doDisableLocalLineEditing
in interface Mode
public void doInsertCharacter()
doInsertCharacter
in interface Mode
public void doDeleteCharacter()
doDeleteCharacter
in interface Mode
public void doResetModifiedDataTags()
doResetModifiedDataTags
in interface Mode
public java.lang.String doReadWholePageOrBuffer()
doReadWholePageOrBuffer
in interface Mode
public void doDisplayPage(int n)
doDisplayPage
in interface Mode
public void doSelectPage(int n)
doSelectPage
in interface Mode
public void doStartFieldExtended(FieldAttributes attribs)
doStartFieldExtended
in interface Mode
public int[] getAttribs(int visTop, int row)
getAttribs
in interface Mode
public int getDisplayRows()
public int getDisplayCols()
public int getBufferRows()
getBufferRows
in interface Mode
public void doClickSelect(int row, int col, java.lang.String selectDelims)
doClickSelect
in interface Mode
public void resetClickSelect()
resetClickSelect
in interface Mode
public void setSelection(int row1, int col1, int row2, int col2)
setSelection
in interface Mode
public void resetSelection()
resetSelection
in interface Mode
public java.lang.String getSelection(java.lang.String eol)
getSelection
in interface Mode
public SearchContext search(SearchContext lastContext, java.lang.String key, boolean reverse, boolean caseSens)
public abstract int getRow()
public abstract int getCol()