com.jscape.inet.terminal.events

## Class CellEvent

- java.lang.Object
- - com.jscape.inet.terminal.events.CellEvent

- All Implemented Interfaces:
    TerminalEvent

      public class CellEvent
      extends java.lang.Object
      implements TerminalEvent

  Represents `Terminal` cell event. This event is generated when new character comes. Holds information about cell coordinates.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `CellEvent(int row, int column)` Creates `CellEvent` object giving screen cell coordinates.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `accept(TerminalListener listener)` Calls correct callback method of `TerminalListener` object.
    `int` | `getColumn()` Returns screen cell column number.
    `int` | `getRow()` Returns screen cell row number.

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### CellEvent

          public CellEvent(int row,
                           int column)

      Creates `CellEvent` object giving screen cell coordinates.
      Parameters:
        `row` - row number.
        `column` - column number.

  - ### Method Detail

    - #### getRow

          public int getRow()

      Returns screen cell row number.
      Returns:
        screen cell row number.

    - #### getColumn

          public int getColumn()

      Returns screen cell column number.
      Returns:
        screen cell column number.

    - #### accept

          public void accept(TerminalListener listener)

      Calls correct callback method of `TerminalListener` object.
      Specified by:
        `accept` in interface `TerminalEvent`
      Parameters:
        `listener` - `TerminalListener` object.

Copyright © JSCAPE LLC. 1999-2021. All Rights Reserved