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, getVisTopprotected 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 ModekeyHandler in class ModeBasepublic void hostChar(char c)
protected void updateDirty()
protected void repaint()
public void setDisplay(DisplayView display)
setDisplay in interface ModesetDisplay in class ModeBasepublic void switchReset()
switchReset in interface ModeswitchReset in class ModeBasepublic void doBackspace()
doBackspace in interface ModedoBackspace in class ModeBasepublic void doHTab()
public void doLineFeed()
doLineFeed in interface ModedoLineFeed in class ModeBasepublic void doCarriageReturn()
doCarriageReturn in interface ModedoCarriageReturn in class ModeBasepublic void doSetTab()
public void doClearTab()
doClearTab in interface ModedoClearTab in class ModeBasepublic void doClearAllTabs()
doClearAllTabs in interface ModedoClearAllTabs in class ModeBasepublic void doSetVideoAttribute(int attrib)
doSetVideoAttribute in interface ModedoSetVideoAttribute in class ModeBasepublic void doSetDefaultVideoAttribute(int attrib)
doSetDefaultVideoAttribute in interface ModedoSetDefaultVideoAttribute in class ModeBasepublic void doSetBufferAddress(int row,
int column)
doSetBufferAddress in interface ModedoSetBufferAddress in class ModeBasepublic void doSetCursorAddress(int row,
int column)
public void doSetCursorAddress(boolean displayedPage,
int row,
int column)
ModeBasedoSetCursorAddress in interface ModedoSetCursorAddress in class ModeBasedisplayedPage - 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 ModedoStartField in class ModeBasepublic void doBackTab()
public void doSetMaxPageNumber(int n)
doSetMaxPageNumber in interface ModedoSetMaxPageNumber in class ModeBasepublic void doCursorUp()
doCursorUp in interface ModedoCursorUp in class ModeBasepublic void doCursorRight()
doCursorRight in interface ModedoCursorRight in class ModeBasepublic void doCursorHomeDown()
doCursorHomeDown in interface ModedoCursorHomeDown in class ModeBasepublic void doCursorHome()
doCursorHome in interface ModedoCursorHome in class ModeBasepublic void doClearMemoryToSpaces(int startRow,
int startCol,
int endRow,
int endColumn)
doClearMemoryToSpaces in interface ModedoClearMemoryToSpaces in class ModeBasepublic void doEraseToEndOfPageOrMemory()
doEraseToEndOfPageOrMemory in interface ModedoEraseToEndOfPageOrMemory in class ModeBasepublic void doEraseToEndOfLineOrField()
doEraseToEndOfLineOrField in interface ModedoEraseToEndOfLineOrField in class ModeBasepublic java.lang.String doReadWithAddress(int startRow,
int startCol,
int endRow,
int endCol)
doReadWithAddress in interface ModedoReadWithAddress in class ModeBasepublic java.lang.String doReadWithAddressAll(int startRow,
int startCol,
int endRow,
int endCol)
doReadWithAddressAll in interface ModedoReadWithAddressAll in class ModeBasepublic void doInsertLine()
doInsertLine in interface ModedoInsertLine in class ModeBasepublic void doDeleteLine()
doDeleteLine in interface ModedoDeleteLine in class ModeBasepublic void doInsertCharacter()
doInsertCharacter in interface ModedoInsertCharacter in class ModeBasepublic void doDeleteCharacter()
doDeleteCharacter in interface ModedoDeleteCharacter in class ModeBasepublic java.lang.String doReadWholePageOrBuffer()
doReadWholePageOrBuffer in interface ModedoReadWholePageOrBuffer in class ModeBasepublic void doDisplayPage(int n)
doDisplayPage in interface ModedoDisplayPage in class ModeBasepublic void doSelectPage(int n)
doSelectPage in interface ModedoSelectPage in class ModeBasepublic 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 ModegetAttribs in class ModeBasepublic void doClickSelect(int row,
int col,
java.lang.String selectDelims)
doClickSelect in interface ModedoClickSelect in class ModeBasepublic void resetClickSelect()
resetClickSelect in interface ModeresetClickSelect in class ModeBasepublic void setSelection(int row1,
int col1,
int row2,
int col2)
setSelection in interface ModesetSelection in class ModeBasepublic void selectAll()
public void resetSelection()
resetSelection in interface ModeresetSelection in class ModeBasepublic java.lang.String getSelection(java.lang.String eol)
getSelection in interface ModegetSelection in class ModeBasepublic SearchContext search(SearchContext lastContext, java.lang.String key, boolean reverse, boolean caseSens)
public void setBuffer(Screen6530Buffer buf)