com.mindbright.terminal.tandem6530
public class ProtectBlockMode extends ModeBase
| Modifier and Type | Field and Description |
|---|---|
protected static int |
COLS |
protected DataType |
dataTypeTable |
protected DisplayView |
display |
protected int |
displayPage |
protected FixedFieldAttributeTable |
fixedTable |
protected boolean |
hasSelection |
protected boolean |
insertMode |
protected int |
MAX_PAGES |
protected ProtectedScreen[] |
pages |
protected static int |
ROWS |
protected int |
selectBottomCol |
protected int |
selectBottomRow |
protected int |
selectClickRow |
protected boolean |
selectClickState |
protected int |
selectedPage |
protected int |
selectTopCol |
protected int |
selectTopRow |
protected Terminal6530Callback |
termCallback |
protected VariableFieldAttributeTable |
varTable |
| Constructor and Description |
|---|
ProtectBlockMode(Terminal6530Callback termCallback,
int maxPages) |
| Modifier and Type | Method and Description |
|---|---|
void |
doBackspace() |
void |
doBackTab() |
void |
doCarriageReturn() |
void |
doClearMemoryToSpaces(int startRow,
int startCol,
int endRow,
int endColumn) |
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 |
doDefineFieldAttribute(int row,
int column,
boolean useFixed,
int tableRow) |
void |
doDefineVariableTable(int startIndex,
FieldAttributes[] attribs) |
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 |
doResetModifiedDataTags() |
void |
doResetVariableTable() |
void |
doSelectPage(int n) |
void |
doSetBufferAddress(int row,
int column) |
void |
doSetCursorAddress(boolean displayedPage,
int row,
int column)
Set cursor position.
|
void |
doSetMaxPageNumber(int n) |
void |
doSetVideoAttribute(int attrib) |
void |
doStartField(FieldAttributes attribs) |
void |
doStartFieldExtended(FieldAttributes attribs) |
int[] |
getAttribs(int visTop,
int row) |
int |
getBufferRows() |
char[] |
getChars(int visTop,
int row) |
int |
getCol() |
protected java.lang.String |
getContents(int startRow,
int startCol,
int endRow,
int endCol,
java.lang.String eol) |
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() |
void |
selectAll() |
void |
setDisplay(DisplayView display) |
void |
setSelection(int anchorRow,
int anchorCol,
int endRow,
int endCol) |
void |
switchReset() |
void |
updateCursorPosition(ProtectedScreen screen,
Position cursor) |
void |
updateDirty() |
void |
updateDirty(ProtectedScreen screen,
Position start,
Position end) |
doClearAllTabs, doClearMemoryToSpaces, doClearTab, doDefineEnterKeyFunction, doDisableLocalLineEditing, doPageDown, doPageUp, doReadCursorAddress, doRollDown, doRollUp, doSetDefaultVideoAttribute, doSetTab, doTab, getDisplayCols, getDisplayRows, getVisTop, searchprotected static final int ROWS
protected static final int COLS
protected Terminal6530Callback termCallback
protected ProtectedScreen[] pages
protected int displayPage
protected int selectedPage
protected DataType dataTypeTable
protected VariableFieldAttributeTable varTable
protected FixedFieldAttributeTable fixedTable
protected DisplayView display
protected boolean insertMode
protected int MAX_PAGES
protected int selectTopRow
protected int selectTopCol
protected int selectBottomRow
protected int selectBottomCol
protected boolean hasSelection
protected int selectClickRow
protected boolean selectClickState
public ProtectBlockMode(Terminal6530Callback termCallback, int maxPages)
public void updateCursorPosition(ProtectedScreen screen, Position cursor)
public void updateDirty()
public void updateDirty(ProtectedScreen screen, Position start, Position end)
public void keyHandler(char c,
int virtualKey,
int modifiers)
keyHandler in interface ModekeyHandler in class ModeBasepublic void hostChar(char c)
public int getBufferRows()
getBufferRows in interface ModegetBufferRows in class ModeBasepublic 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 doSetBufferAddress(int row,
int column)
doSetBufferAddress in interface ModedoSetBufferAddress in class ModeBasepublic 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 doDefineFieldAttribute(int row,
int column,
boolean useFixed,
int tableRow)
doDefineFieldAttribute in interface ModedoDefineFieldAttribute in class ModeBasepublic void doStartField(FieldAttributes attribs)
doStartField in interface ModedoStartField in class ModeBasepublic void doStartFieldExtended(FieldAttributes attribs)
doStartFieldExtended in interface ModedoStartFieldExtended in class ModeBasepublic void doBackTab()
public void doSetMaxPageNumber(int n)
doSetMaxPageNumber in interface ModedoSetMaxPageNumber in class ModeBasepublic void doDefineDataTypeTable(int startIndex,
byte[] entries)
doDefineDataTypeTable in interface ModedoDefineDataTypeTable in class ModeBasepublic void doResetVariableTable()
doResetVariableTable in interface ModedoResetVariableTable in class ModeBasepublic void doDefineVariableTable(int startIndex,
FieldAttributes[] attribs)
doDefineVariableTable in interface ModedoDefineVariableTable 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 doSetVideoAttribute(int attrib)
doSetVideoAttribute in interface ModedoSetVideoAttribute 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 void doResetModifiedDataTags()
doResetModifiedDataTags in interface ModedoResetModifiedDataTags 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()
protected void repaint()
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 anchorRow,
int anchorCol,
int endRow,
int endCol)
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 ModeBaseprotected java.lang.String getContents(int startRow,
int startCol,
int endRow,
int endCol,
java.lang.String eol)