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