|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.connector2.hod.screenable.J2HODFieldData
This class represents field data information. The following datum information are available: (the default values are null for all)
Name | Type | Default Value | Description |
---|---|---|---|
name | String | "" | name of this field |
text | String | "" | texts in this field |
pos | int | 0 | starting position of this field (counting from top-left to right an down starting with 0) |
row | int | 1 | starting row position of this field (counting from 1) |
col | int | 1 | starting column position of this field (counting from 1) |
maxLength | int | 1 | specifies maximum length of this field |
screenWidth | int | 80 | specifies screen width (maximum column number) - used to calculate row/col from pos |
Constructor Summary | |
---|---|
J2HODFieldData()
Constructs an instance of this class with default values |
|
J2HODFieldData(int width,
java.lang.String name,
java.lang.String text,
int pos,
int maxLength)
Constructs an instance of this class with screen width, name, text, start position and maximum length specified. |
|
J2HODFieldData(int width,
java.lang.String name,
java.lang.String text,
int row,
int col,
int maxLength)
Constructs an instance of this class with screen width, name, text, start row, start column and maximum length specified. |
|
J2HODFieldData(java.lang.String name,
java.lang.String text,
int pos,
int maxLength)
Constructs an instance of this class with name, text, start position and maximum length specified. |
|
J2HODFieldData(java.lang.String name,
java.lang.String text,
int row,
int col,
int maxLength)
Constructs an instance of this class with name, text, start row, start column and maximum length specified. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Clones current instance of this class object and returns it |
boolean |
equals(java.lang.Object obj)
Determines whether this instance of this class has same properties as to the instance of object passed |
int |
getCol()
Returns starting column position of this field (counting from 1) |
int |
getMaxLength()
Returns the maximum length of the field, including any attribute bytes |
java.lang.String |
getName()
Returns Field Name if one exists, null or "" otherwise |
int |
getPos()
Returns starting position of this field. |
int |
getRow()
Returns starting row position of this field (counting from 1) |
int |
getScreenWidth()
Returns current screen width value being used |
java.lang.String |
getText()
Returns the text of this field. |
void |
setCol(int val)
Sets field starting column value (counting from 1) Also sets startPos value accordingly. |
void |
setMaxLength(int val)
Sets maximum length of the field |
void |
setName(java.lang.String val)
Sets field name |
void |
setPos(int val)
Sets field starting position. |
void |
setRow(int val)
Sets field starting row value (counting from 1) Also sets startPos value accordingly. |
void |
setScreenWidth(int val)
Sets screen width |
void |
setText(java.lang.String val)
Sets field text value |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public J2HODFieldData()
public J2HODFieldData(java.lang.String name, java.lang.String text, int pos, int maxLength)
name
- String - name of this fieldtext
- String - texts of this fieldpos
- int - starting position of this fieldmaxLength
- int - maximum length of this field (field length)public J2HODFieldData(int width, java.lang.String name, java.lang.String text, int pos, int maxLength)
width
- int - screen width (number of columns) (must be greater than 0, otherwise default 80 will be used)name
- String - name of this fieldtext
- String - texts of this fieldpos
- int - starting position of this fieldmaxLength
- int - maximum length of this field (field length)public J2HODFieldData(java.lang.String name, java.lang.String text, int row, int col, int maxLength)
name
- String - name of this fieldtext
- String - texts of this fieldrow
- int - starting row position of this fieldcol
- int - starting column position of this fieldmaxLength
- int - maximum length of this field (field length)public J2HODFieldData(int width, java.lang.String name, java.lang.String text, int row, int col, int maxLength)
width
- int - screen width (number of columns) (must be greater than 0, otherwise default 80 will be used)name
- String - name of this fieldtext
- String - texts of this fieldrow
- int - starting row position of this fieldcol
- int - starting column position of this fieldmaxLength
- int - maximum length of this field (field length)Method Detail |
public java.lang.String getName()
getName
in interface com.ibm.connector2.screen.IFieldData
setName(java.lang.String)
public java.lang.String getText()
getText
in interface com.ibm.connector2.screen.IFieldData
setText(java.lang.String)
public int getPos()
getPos
in interface com.ibm.connector2.screen.IFieldData
setPos(int)
public int getRow()
setRow(int)
public int getCol()
setCol(int)
public int getMaxLength()
getMaxLength
in interface com.ibm.connector2.screen.IFieldData
setMaxLength(int)
public int getScreenWidth()
setScreenWidth(int)
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException
- public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- Object - ay instance of an object to compare withpublic void setName(java.lang.String val)
val
- String - field namegetName()
public void setText(java.lang.String val)
val
- String - field textgetText()
public void setPos(int val)
val
- int - field starting positiongetPos()
public void setMaxLength(int val)
val
- int - field maximum lengthgetMaxLength()
public void setScreenWidth(int val)
val
- int - field screen width (must be greater than 0, otherwise default value 80 will be used)getScreenWidth()
public void setRow(int val)
val
- int - field starting row position valuegetRow()
public void setCol(int val)
val
- int - field starting column position valuegetCol()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |