|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.cics.server.Cursor
This class represents the cursor on a 3270 terminal.
Notably, it presents a set of methods for manipulating a cursor object that is passed to the various Terminal related methods to set the cursor location.
Whilst the cursor class is an abstract representation, it should be noted that the row and column as defined by this class a '1' based values.
Constructor Summary | |
Cursor(int width,
int height)
Construct a cursor object for a given sized display, |
|
Cursor(int width,
int height,
int column,
int row)
Construct a cursor object for a given sized display, specifying the cursor position. |
Method Summary | |
void |
decrement()
Decrement the cursor position. |
void |
decrement(int num)
Decrement the cursor position by num character locations. |
void |
increment()
Increment the cursor position |
void |
increment(int num)
Increment the cursor position by num character locations. |
void |
incrementRow()
Move the cursor down 1 row. |
void |
setColumn(int column)
Set the specific column for the cursor. |
void |
setRow(int row)
Set the specific row for the cursor. |
int |
toBinary()
Get a binary representation of the cursor. |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public Cursor(int width, int height)
width
- The number of columns of the display. (Typically 80 for
a model 2 terminal)height
- The number of rows of the display. (Typically 24 for a
model 2 terminal)public Cursor(int width, int height, int column, int row)
width
- The number of columns of the display. (Typically 80 for
a model 2 terminal)height
- The number of rows of the display. (Typically 24 for a
model 2 terminal)column
- The column position for the cursor.row
- The row position for the cursor.Method Detail |
public void increment()
public void increment(int num)
num
- The number of character locations by which to increment the
cursor. If num is negative, the cursor is decremented.public void incrementRow()
public void decrement()
public void decrement(int num)
num
- The number of character locations by which to decrement the
cursor. If num is negative, the cursor is incremented.public void setColumn(int column)
column
- The new column.public void setRow(int row)
row
- The new row.public int toBinary()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |