Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.mindbright.terminal.tandem6530
Class BlockMode

    java.lang.Object
      com.mindbright.terminal.tandem6530.ModeBase
          com.mindbright.terminal.tandem6530.BlockMode

All Implemented Interfaces:
  AsciiCodes, Mode

public class BlockMode
extends ModeBase

Field Summary
`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`
`protected Terminal6530Callback` | `termCallback`

Fields inherited from class com.mindbright.terminal.tandem6530.ModeBase
`COLUMNS`

Fields inherited from interface com.mindbright.terminal.tandem6530.AsciiCodes
`BELL, BS, CR, DC1, DC2, DC3, DC4, ENQ, EOT, ESC, ETX, FS, GS, HT, LF, LRC, NUL, SOH`

Constructor Summary
`BlockMode(Terminal6530Callback termCallback, int maxPages)`

Method Summary
`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()`

Methods inherited from class com.mindbright.terminal.tandem6530.ModeBase
`doClearMemoryToSpaces, doDefineDataTypeTable, doDefineEnterKeyFunction, doDefineFieldAttribute, doDefineVariableTable, doDisableLocalLineEditing, doPageDown, doPageUp, doReadCursorAddress, doResetMoifiedDataTags, doResetVariableTable, doRollDown, doRollUp, doStartFieldExtended, doTab, getBufferRows, getDisplayCols, getDisplayRows, getVisTop`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### ROWS

    protected static final int ROWS

See Also:
  Constant Field Values

### COLS

    protected static final int COLS

See Also:
  Constant Field Values

### termCallback

    protected Terminal6530Callback termCallback

### pages

    protected Screen6530[] pages

### displayPage

    protected int displayPage

### selectedPage

    protected int selectedPage

### insertMode

    protected boolean insertMode

### MAX_PAGES

    protected int MAX_PAGES

### display

    protected DisplayView display

Constructor Detail

### BlockMode

    public BlockMode(Terminal6530Callback termCallback,
                     int maxPages)

Method Detail

### keyHandler

    public void keyHandler(char c,
                           int virtualKey,
                           int modifiers)

  Specified by:
    `keyHandler` in interface `Mode`
  Overrides:
    `keyHandler` in class `ModeBase`

### hostChar

    public void hostChar(char c)

  Specified by:
    `hostChar` in interface `Mode`
  Overrides:
    `hostChar` in class `ModeBase`

### updateDirty

    protected void updateDirty()

### repaint

    protected void repaint()

### setDisplay

    public void setDisplay(DisplayView display)

  Specified by:
    `setDisplay` in interface `Mode`
  Overrides:
    `setDisplay` in class `ModeBase`

### switchReset

    public void switchReset()

  Specified by:
    `switchReset` in interface `Mode`
  Overrides:
    `switchReset` in class `ModeBase`

### doBackspace

    public void doBackspace()

  Specified by:
    `doBackspace` in interface `Mode`
  Overrides:
    `doBackspace` in class `ModeBase`

### doHTab

    public void doHTab()

  Specified by:
    `doHTab` in interface `Mode`
  Overrides:
    `doHTab` in class `ModeBase`

### doLineFeed

    public void doLineFeed()

  Specified by:
    `doLineFeed` in interface `Mode`
  Overrides:
    `doLineFeed` in class `ModeBase`

### doCarriageReturn

    public void doCarriageReturn()

  Specified by:
    `doCarriageReturn` in interface `Mode`
  Overrides:
    `doCarriageReturn` in class `ModeBase`

### doSetTab

    public void doSetTab()

  Specified by:
    `doSetTab` in interface `Mode`
  Overrides:
    `doSetTab` in class `ModeBase`

### doClearTab

    public void doClearTab()

  Specified by:
    `doClearTab` in interface `Mode`
  Overrides:
    `doClearTab` in class `ModeBase`

### doClearAllTabs

    public void doClearAllTabs()

  Specified by:
    `doClearAllTabs` in interface `Mode`
  Overrides:
    `doClearAllTabs` in class `ModeBase`

### doSetVideoAttribute

    public void doSetVideoAttribute(int attrib)

  Specified by:
    `doSetVideoAttribute` in interface `Mode`
  Overrides:
    `doSetVideoAttribute` in class `ModeBase`

### doSetDefaultVideoAttribute

    public void doSetDefaultVideoAttribute(int attrib)

  Specified by:
    `doSetDefaultVideoAttribute` in interface `Mode`
  Overrides:
    `doSetDefaultVideoAttribute` in class `ModeBase`

### doSetBufferAddress

    public void doSetBufferAddress(int row,
                                   int column)

  Specified by:
    `doSetBufferAddress` in interface `Mode`
  Overrides:
    `doSetBufferAddress` in class `ModeBase`

### doSetCursorAddress

    public void doSetCursorAddress(int row,
                                   int column)

### doSetCursorAddress

    public void doSetCursorAddress(boolean displayedPage,
                                   int row,
                                   int column)

  Description copied from class: `ModeBase`
  Set cursor position. See 2-6, 3-14.

  Specified by:
    `doSetCursorAddress` in interface `Mode`
  Overrides:
    `doSetCursorAddress` in class `ModeBase`
  Parameters:
    `displayedPage` - true to set cursor position in displayed page
    `row` - row number, starting from 1
    `column` - column number, starting from 1

### doStartField

    public void doStartField(FieldAttributes attribs)

  Specified by:
    `doStartField` in interface `Mode`
  Overrides:
    `doStartField` in class `ModeBase`

### doBackTab

    public void doBackTab()

  Specified by:
    `doBackTab` in interface `Mode`
  Overrides:
    `doBackTab` in class `ModeBase`

### doSetMaxPageNumber

    public void doSetMaxPageNumber(int n)

  Specified by:
    `doSetMaxPageNumber` in interface `Mode`
  Overrides:
    `doSetMaxPageNumber` in class `ModeBase`

### doCursorUp

    public void doCursorUp()

  Specified by:
    `doCursorUp` in interface `Mode`
  Overrides:
    `doCursorUp` in class `ModeBase`

### doCursorRight

    public void doCursorRight()

  Specified by:
    `doCursorRight` in interface `Mode`
  Overrides:
    `doCursorRight` in class `ModeBase`

### doCursorHomeDown

    public void doCursorHomeDown()

  Specified by:
    `doCursorHomeDown` in interface `Mode`
  Overrides:
    `doCursorHomeDown` in class `ModeBase`

### doCursorHome

    public void doCursorHome()

  Specified by:
    `doCursorHome` in interface `Mode`
  Overrides:
    `doCursorHome` in class `ModeBase`

### doClearMemoryToSpaces

    public void doClearMemoryToSpaces(int startRow,
                                      int startCol,
                                      int endRow,
                                      int endColumn)

  Specified by:
    `doClearMemoryToSpaces` in interface `Mode`
  Overrides:
    `doClearMemoryToSpaces` in class `ModeBase`

### doEraseToEndOfPageOrMemory

    public void doEraseToEndOfPageOrMemory()

  Specified by:
    `doEraseToEndOfPageOrMemory` in interface `Mode`
  Overrides:
    `doEraseToEndOfPageOrMemory` in class `ModeBase`

### doEraseToEndOfLineOrField

    public void doEraseToEndOfLineOrField()

  Specified by:
    `doEraseToEndOfLineOrField` in interface `Mode`
  Overrides:
    `doEraseToEndOfLineOrField` in class `ModeBase`

### doReadWithAddress

    public java.lang.String doReadWithAddress(int startRow,
                                              int startCol,
                                              int endRow,
                                              int endCol)

  Specified by:
    `doReadWithAddress` in interface `Mode`
  Overrides:
    `doReadWithAddress` in class `ModeBase`

### doReadWithAddressAll

    public java.lang.String doReadWithAddressAll(int startRow,
                                                 int startCol,
                                                 int endRow,
                                                 int endCol)

  Specified by:
    `doReadWithAddressAll` in interface `Mode`
  Overrides:
    `doReadWithAddressAll` in class `ModeBase`

### doInsertLine

    public void doInsertLine()

  Specified by:
    `doInsertLine` in interface `Mode`
  Overrides:
    `doInsertLine` in class `ModeBase`

### doDeleteLine

    public void doDeleteLine()

  Specified by:
    `doDeleteLine` in interface `Mode`
  Overrides:
    `doDeleteLine` in class `ModeBase`

### doInsertCharacter

    public void doInsertCharacter()

  Specified by:
    `doInsertCharacter` in interface `Mode`
  Overrides:
    `doInsertCharacter` in class `ModeBase`

### doDeleteCharacter

    public void doDeleteCharacter()

  Specified by:
    `doDeleteCharacter` in interface `Mode`
  Overrides:
    `doDeleteCharacter` in class `ModeBase`

### doReadWholePageOrBuffer

    public java.lang.String doReadWholePageOrBuffer()

  Specified by:
    `doReadWholePageOrBuffer` in interface `Mode`
  Overrides:
    `doReadWholePageOrBuffer` in class `ModeBase`

### doDisplayPage

    public void doDisplayPage(int n)

  Specified by:
    `doDisplayPage` in interface `Mode`
  Overrides:
    `doDisplayPage` in class `ModeBase`

### doSelectPage

    public void doSelectPage(int n)

  Specified by:
    `doSelectPage` in interface `Mode`
  Overrides:
    `doSelectPage` in class `ModeBase`

### getRow

    public int getRow()

  Specified by:
    `getRow` in interface `Mode`
  Specified by:
    `getRow` in class `ModeBase`
  Returns:
    row number, starting at 1

### getCol

    public int getCol()

  Specified by:
    `getCol` in interface `Mode`
  Specified by:
    `getCol` in class `ModeBase`
  Returns:
    column number, starting at 1

### getPage

    public int getPage()

  Specified by:
    `getPage` in interface `Mode`
  Specified by:
    `getPage` in class `ModeBase`
  Returns:
    page number, starting at 1

### getChars

    public char[] getChars(int visTop,
                           int row)

  Specified by:
    `getChars` in interface `Mode`
  Overrides:
    `getChars` in class `ModeBase`

### getAttribs

    public int[] getAttribs(int visTop,
                            int row)

  Specified by:
    `getAttribs` in interface `Mode`
  Overrides:
    `getAttribs` in class `ModeBase`

### doClickSelect

    public void doClickSelect(int row,
                              int col,
                              java.lang.String selectDelims)

  Specified by:
    `doClickSelect` in interface `Mode`
  Overrides:
    `doClickSelect` in class `ModeBase`

### resetClickSelect

    public void resetClickSelect()

  Specified by:
    `resetClickSelect` in interface `Mode`
  Overrides:
    `resetClickSelect` in class `ModeBase`

### setSelection

    public void setSelection(int row1,
                             int col1,
                             int row2,
                             int col2)

  Specified by:
    `setSelection` in interface `Mode`
  Overrides:
    `setSelection` in class `ModeBase`

### selectAll

    public void selectAll()

  Specified by:
    `selectAll` in interface `Mode`
  Overrides:
    `selectAll` in class `ModeBase`

### resetSelection

    public void resetSelection()

  Specified by:
    `resetSelection` in interface `Mode`
  Overrides:
    `resetSelection` in class `ModeBase`

### getSelection

    public java.lang.String getSelection(java.lang.String eol)

  Specified by:
    `getSelection` in interface `Mode`
  Overrides:
    `getSelection` in class `ModeBase`

### search

    public SearchContext search(SearchContext lastContext,
                                java.lang.String key,
                                boolean reverse,
                                boolean caseSens)

  Specified by:
    `search` in interface `Mode`
  Overrides:
    `search` in class `ModeBase`

### setBuffer

    public void setBuffer(Screen6530Buffer buf)

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD