|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.connector2.hod.screenable.J2HODFieldInfo
This class contains information about a field. The following information are available:
Name | Type | Default Value | Description |
---|---|---|---|
name | String | "" | name of this field |
text | String | "" | texts in this field |
startPos | int | 0 | starting position of this field counting from top-left to right and down (counting from 0) |
startRow | int | 1 | starting row number (counting from 1) |
startCol | int | 1 | starting column number (counting from 1) |
screenWidth | int | 80 | current screen width (maximum column number counting from 1) |
Constructor Summary | |
---|---|
J2HODFieldInfo()
Constructs an instance of this class with default values |
|
J2HODFieldInfo(int w,
java.lang.String n,
java.lang.String t,
int p)
Constructs an instance of this class with specified screen width, name, text, and starting position value. |
|
J2HODFieldInfo(int w,
java.lang.String n,
java.lang.String t,
int r,
int c)
Constructs an instance of this class with specified screen width, name, text, start row, and start column. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Creates a clone of current instance of this class object |
boolean |
equals(java.lang.Object obj)
Determines whether this instance of this class contains same properties as other instance of an object passed. |
java.lang.String |
getName()
Returns field name |
int |
getScreenWidth()
Returns current screen width value being used |
int |
getStartCol()
Returns starting column position of this field (counting from 1) |
int |
getStartPos()
Returns starting position of this field. |
int |
getStartRow()
Returns starting row position of this field (counting from 1) |
java.lang.String |
getText()
Returns field text |
void |
setName(java.lang.String val)
Sets field name |
void |
setScreenWidth(int val)
Sets current screen width value being used to calculate start position based on row/column input. |
void |
setStartCol(int val)
Sets field starting column value (counting from 1) Also sets startPos value accordingly. |
void |
setStartPos(int val)
Sets field starting position. |
void |
setStartRow(int val)
Sets field starting row value (counting from 1) Also sets startPos value accordingly. |
void |
setText(java.lang.String val)
Sets field text |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public J2HODFieldInfo()
public J2HODFieldInfo(int w, java.lang.String n, java.lang.String t, int p)
w
- int - screen width (must be greater than 0, otherwise default 80 will be used)n
- String - name of fieldt
- String - text of fieldp
- int - starting position of fieldpublic J2HODFieldInfo(int w, java.lang.String n, java.lang.String t, int r, int c)
w
- int - screen width (must be greater than 0, otherwise default 80 will be used)n
- String - name of fieldt
- String - text of fieldr
- int - starting row position of fieldc
- int - starting column position of fieldMethod Detail |
public java.lang.String getName()
getName
in interface com.ibm.connector2.screen.IFieldInfo
setName(java.lang.String)
public java.lang.String getText()
getText
in interface com.ibm.connector2.screen.IFieldInfo
setText(java.lang.String)
public int getStartPos()
getStartPos
in interface com.ibm.connector2.screen.IFieldInfo
setStartPos(int)
public int getStartRow()
getStartRow
in interface com.ibm.connector2.screen.IFieldInfo
setStartRow(int)
public int getStartCol()
getStartCol
in interface com.ibm.connector2.screen.IFieldInfo
setStartCol(int)
public void setName(java.lang.String val)
val
- String - field namegetName()
public void setText(java.lang.String val)
val
- String - field textgetText()
public void setStartPos(int val)
val
- int - field starting positiongetStartPos()
public void setStartRow(int val)
val
- int - field starting row positiongetStartRow()
public void setStartCol(int val)
val
- int - field starting column positiongetStartCol()
public int getScreenWidth()
setScreenWidth(int)
public void setScreenWidth(int val)
val
- int - screen widthgetScreenWidth()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- Object - an instance of object to comparepublic java.lang.Object clone() throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |