|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.connector2.hod.screenable.J2HODScreenInfo
This class represents screen information. It implements IScreenInfo interface. It contains the following attributes:
Name | Type | Default Value | Description |
---|---|---|---|
depth | int | 24 | Screen depth (number of rows) - counting from 1 |
width | int | 80 | Screen width (number of columns) - counting from 1 |
fieldCount | int | 0 | Total number of fields in a screen record |
suportHighlight | boolean | true | Supports extended highlighting or not |
defForegColor | int | 0xF4 (IExtendedAttributes.green) | Default foreground color |
defBackgColor | int | 0x00 | Default background color |
defCharSet | int | 0x00 | Default Character Set (not supported) |
Constructor Summary | |
---|---|
J2HODScreenInfo()
Create an instance of J2HODScreenInfo with default attribute values. |
|
J2HODScreenInfo(int depth,
int width,
int fieldCount)
Create an instance of J2HODScreenInfo with specified attribute values. |
|
J2HODScreenInfo(int depth,
int width,
int fieldCount,
boolean highlight,
int foreC,
int backC,
int charSet)
Create an instance of J2HODScreenInfo with specified attribute values. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Returns a clone instance of this class object |
boolean |
equals(java.lang.Object obj)
Returns whether this instance of this class is equal to the instance of an object passed in. |
int |
getDefaultBackgroundColor()
returns the default color for fields on the screen |
int |
getDefaultCharSet()
returns the default character set for fields on the screen |
int |
getDefaultForegroundColor()
returns the default color for fields on the screen |
int |
getDepth()
Returns The Number of Rows The Screen has |
int |
getFieldCount()
Returns the number of fields on the screen |
int |
getWidth()
Returns the number of columns the screen has |
void |
setDefaultBackgroundColor(int val)
Sets the default background color of a screen |
void |
setDefaultCharSet(int val)
This attribute is not supported. |
void |
setDefaultForegroundColor(int val)
Sets the default foreground color of a screen |
void |
setDepth(int val)
Sets The Number of Rows The Screen has |
void |
setFieldCount(int val)
Sets the number of fields on the screen |
void |
setSupportsHighlighting(boolean val)
Sets whether a screen supports extended highlighting or not |
void |
setWidth(int val)
Sets the number of columns the screen has |
boolean |
supportsHighlighting()
returns whether a screen supports extended highlighting |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public J2HODScreenInfo()
public J2HODScreenInfo(int depth, int width, int fieldCount)
public J2HODScreenInfo(int depth, int width, int fieldCount, boolean highlight, int foreC, int backC, int charSet)
Method Detail |
public int getDepth()
getDepth
in interface com.ibm.connector2.screen.IScreenInfo
setDepth(int)
public int getWidth()
getWidth
in interface com.ibm.connector2.screen.IScreenInfo
setWidth(int)
public int getFieldCount()
getFieldCount
in interface com.ibm.connector2.screen.IScreenInfo
setFieldCount(int)
public boolean supportsHighlighting()
supportsHighlighting
in interface com.ibm.connector2.screen.IScreenInfo
setSupportsHighlighting(boolean)
public int getDefaultForegroundColor()
getDefaultForegroundColor
in interface com.ibm.connector2.screen.IScreenInfo
setDefaultForegroundColor(int)
public int getDefaultBackgroundColor()
getDefaultBackgroundColor
in interface com.ibm.connector2.screen.IScreenInfo
setDefaultBackgroundColor(int)
public int getDefaultCharSet()
getDefaultCharSet
in interface com.ibm.connector2.screen.IScreenInfo
setDefaultCharSet(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 - an instance of object to comparepublic void setDepth(int val)
val
- int - screen depth (number of row)getDepth()
public void setWidth(int val)
val
- int - screen width (number of columns)getWidth()
public void setFieldCount(int val)
val
- int - number of fieldsgetFieldCount()
public void setSupportsHighlighting(boolean val)
val
- boolean - highlighting support or notsupportsHighlighting()
public void setDefaultForegroundColor(int val)
val
- int - foreground color valuegetDefaultForegroundColor()
public void setDefaultBackgroundColor(int val)
val
- int - background color valuegetDefaultBackgroundColor()
public void setDefaultCharSet(int val)
val
- int - character set valuegetDefaultCharSet()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |