com.mindbright.terminal.tandem6530
public class Field extends java.lang.Object implements AsciiCodes
Modifier and Type | Field and Description |
---|---|
protected FieldAttributes |
attribs |
protected java.lang.StringBuffer |
buf |
protected int |
cols |
protected DataType |
dataTypeTable |
protected Position |
end |
protected int |
len |
protected FieldVideoAttributeMap |
map |
protected boolean |
mdt |
protected Position |
start |
Constructor and Description |
---|
Field(int cols,
Position start,
Position end,
FieldAttributes attribs,
DataType dataTypeTable) |
Field(Position start,
Position end,
Field master) |
Modifier and Type | Method and Description |
---|---|
protected int |
calcLen() |
protected int |
calcOffset(Position p) |
protected int |
calcOffset(Position p,
boolean writeOnFieldStart) |
void |
clearAt(Position p) |
void |
clearField() |
void |
clearToEnd(Position p) |
void |
deleteChar(Position p) |
int[] |
getAttribs(int row) |
char[] |
getChars(int row) |
java.lang.String |
getContents() |
Position |
getEnd() |
boolean |
getMdt() |
Position |
getStart() |
boolean |
hasAutoTab() |
void |
insertChar(Position p) |
boolean |
isProtected() |
void |
redefine(FieldAttributes attribs) |
void |
resetMdt() |
void |
setAttrib(Position p,
int attrib) |
void |
setEnd(Position p) |
void |
setPosition(Position start,
Position end,
boolean move)
Adjust the fields start position.
|
void |
setStart(Position p,
boolean move) |
java.lang.String |
toString() |
boolean |
writeBufferChar(Position p,
char c) |
boolean |
writeCursorChar(Position p,
char c) |
boolean |
writeCursorChar(Position p,
char c,
boolean insertMode) |
protected Position start
protected Position end
protected FieldAttributes attribs
protected int cols
protected DataType dataTypeTable
protected boolean mdt
protected int len
protected java.lang.StringBuffer buf
protected FieldVideoAttributeMap map
public Field(int cols, Position start, Position end, FieldAttributes attribs, DataType dataTypeTable)
public void redefine(FieldAttributes attribs)
public void setPosition(Position start, Position end, boolean move)
move
- if true the content of the field is moved so that
it remains at the same position relative to the filed start. If
false the content is left at the same screen position.public void setStart(Position p, boolean move)
public Position getStart()
public void setEnd(Position p)
public Position getEnd()
public java.lang.String getContents()
public void resetMdt()
public boolean getMdt()
public boolean isProtected()
public boolean hasAutoTab()
protected int calcOffset(Position p)
protected int calcOffset(Position p, boolean writeOnFieldStart)
public boolean writeCursorChar(Position p, char c)
public boolean writeCursorChar(Position p, char c, boolean insertMode)
public boolean writeBufferChar(Position p, char c)
public void setAttrib(Position p, int attrib)
public void clearField()
public void clearAt(Position p)
public void clearToEnd(Position p)
public char[] getChars(int row)
public int[] getAttribs(int row)
public void insertChar(Position p)
public void deleteChar(Position p)
protected int calcLen()
public java.lang.String toString()
toString
in class java.lang.Object