|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.connector2.hod.screenable.J2HODFieldAttrInfo
This class represents attribute information for a field. The following attributes information are available:
Name | Type | Default Value | Description | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
modified | boolean | false | specifies whether this field has been modified or not | |||||||||||||||||||||
protd | boolean | false | specifies whether this field is a protected field or not | |||||||||||||||||||||
numeric | boolean | false | specifies whether this field is a numeric only field or not | |||||||||||||||||||||
penDetectable | boolean | false | specifies whether this field is a pen detectable field or not | |||||||||||||||||||||
display | boolean | true | specifies whether this field is displayed or not | |||||||||||||||||||||
highIntensity | boolean | false | specifies whether this field is a high intensity field or not | |||||||||||||||||||||
underline | boolean | false | Not Supported | |||||||||||||||||||||
overline | boolean | false | Not Supported | |||||||||||||||||||||
leftline | boolean | false | Not Supported | |||||||||||||||||||||
rightline | boolean | false | Not Supported | |||||||||||||||||||||
trigger | boolean | false | Not Supported | |||||||||||||||||||||
mandatoryFill | boolean | false | Not Supported | |||||||||||||||||||||
mandatoryEntry | boolean | false | Not Supported | |||||||||||||||||||||
highLight | int | 0x00 (default highlight) | extended highlight attribute
|
|||||||||||||||||||||
trans | int | 0x00 (default transparency) | Not Supported, It contains extended transparency attribute property.
|
|||||||||||||||||||||
foreColor | int | 0xF4 (IExtendedAttributes.green) | foreground text color | |||||||||||||||||||||
backColor | int | 0x00 (blank) | background text color |
Color values are different from what HOD uses from HACL and what Screenable interface uses. The following color table shows the mapping of HACL color to Screenable color values.
HACL | Screenable | HACL | Screenable |
---|---|---|---|
0x0(blank) | 0x00(defaultColor) | 0x1(blue) | 0xF1(blue) |
0x2(green) | 0xF4(green) | 0x3(cyan) | 0xF5(cyan) |
0x4(red) | 0xF2(red) | 0x5(magenta) | 0xFB(purple) |
0x6(yellow) | 0xF6(yellow) | 0x7(white-normal intensity) | 0xFF(white) |
0x8(gray) | 0xFE(gray) | 0x9(light blue) | 0xF5(cyan) |
0xA(light green) | 0xFC(pale green) | 0xB(light cyan) | 0xFD(pale cyan) |
0xC(light red) | 0xF3(pink) | 0xD(light magenta) | 0xF3(pink) |
0xE(yellow) | 0xF6(yellow) | 0xF(white-high intensity) | 0xFF(white) |
Constructor Summary | |
J2HODFieldAttrInfo()
Default Constructor setting default values. |
|
J2HODFieldAttrInfo(boolean isModified,
boolean isProtected,
boolean isNumeric,
boolean isPenDetectable,
boolean isDisplay,
boolean isHighIntens,
boolean isUnderline,
boolean isOverline,
boolean isLeftline,
boolean isRightline,
boolean isTrigger,
boolean isMandatoryFill,
boolean isMandatoryEntry,
int highLight,
int trans,
int foreColor,
int backColor,
int charSet)
Constructs an instance with specified attribute values even with unsupported attributes. |
|
J2HODFieldAttrInfo(boolean isModified,
boolean isProtected,
boolean isNumeric,
boolean isPenDetectable,
boolean isDisplay,
boolean isHighIntens,
int highLight,
int foreColor,
int backColor)
Constructs an instance with specified attribute values (only those that are supported) |
Method Summary | |
java.lang.Object |
clone()
Clones this instance of class and returns it |
boolean |
equals(java.lang.Object obj)
Checks whether this instance is equal to the object that is passed as a parameter. |
int |
getBackGroundColor()
Returns extended background attribute property |
int |
getCharacterSet()
This attribute is not supported. |
int |
getForeGroundColor()
Returns extended foreground attribute property |
int |
getHighLight()
Returns extended highlight attribute property. |
int |
getTransparency()
This attribute is not supported. |
boolean |
isDisplay()
Returns whether this field is displayed or not |
boolean |
isHighIntensity()
Returns whether this field has high intensity attribute or not |
boolean |
isLeftline()
This attribute is not supported. |
boolean |
isMandatoryEntry()
This attribute is not supported. |
boolean |
isMandatoryFill()
This attribute is not supported. |
boolean |
isModified()
Returns whether this field is modified or not |
boolean |
isNumeric()
Returns whether this field is numeric only field or not |
boolean |
isOverline()
This attribute is not supported. |
boolean |
isPenDetectable()
Returns whether this field is pen detectable field or not |
boolean |
isProtected()
Returns whether this field is a protected field or not |
boolean |
isRightline()
This attribute is not supported. |
boolean |
isTrigger()
This attribute is not supported. |
boolean |
isUnderline()
This attribute is not supported. |
void |
setBackGroundColor(int val)
Sets backColor attribute value to a specified value |
void |
setCharSet(int val)
This attribute is not supported. |
void |
setDisplay(boolean flag)
Sets display flag to a specified value |
void |
setForeGroundColor(int val)
Sets foreColor attribute value to a specified value |
void |
setHighIntensity(boolean flag)
Sets highIntensity flag to a specified value |
void |
setHighLight(int val)
Sets highLight attribute value to a specified value |
void |
setLeftline(boolean flag)
This attribute is not supported. |
void |
setMandatoryEntry(boolean flag)
This attribute is not supported. |
void |
setMandatoryFill(boolean flag)
This attribute is not supported. |
void |
setModified(boolean flag)
Method to change the Modified Data tag for a field, ie to indicate it has been modified. |
void |
setNumeric(boolean flag)
Sets numeric flag to a specified value |
void |
setOverline(boolean flag)
This attribute is not supported. |
void |
setPenDetectable(boolean flag)
Sets penDetectable flag to a specified value |
void |
setProtected(boolean flag)
Sets protd flag to a specified value |
void |
setRightline(boolean flag)
This attribute is not supported. |
void |
setTransparency(int val)
This attribute is not supported. |
void |
setTrigger(boolean flag)
This attribute is not supported. |
void |
setUnderline(boolean flag)
This attribute is not supported. |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public J2HODFieldAttrInfo()
public J2HODFieldAttrInfo(boolean isModified, boolean isProtected, boolean isNumeric, boolean isPenDetectable, boolean isDisplay, boolean isHighIntens, int highLight, int foreColor, int backColor)
isModified
- boolean - modified or notisProtected
- boolean - protected or notisNumeric
- boolean - numeric or notisPenDetectable
- boolean - pen detectable or notisDisplay
- boolean - display or notisHighIntens
- boolean - high intensity or nothighLight
- int - highlighting typeforeColor
- int - foreground colorbackColor
- int - background coorpublic J2HODFieldAttrInfo(boolean isModified, boolean isProtected, boolean isNumeric, boolean isPenDetectable, boolean isDisplay, boolean isHighIntens, boolean isUnderline, boolean isOverline, boolean isLeftline, boolean isRightline, boolean isTrigger, boolean isMandatoryFill, boolean isMandatoryEntry, int highLight, int trans, int foreColor, int backColor, int charSet)
isModified
- boolean - modified or notisProtected
- boolean - protected or notisNumeric
- boolean - numeric or notisPenDetectable
- boolean - pen detectable or notisDisplay
- boolean - display or notisHighIntens
- boolean - high intensity or notisUnderline
- boolean - underlined or not (not supported)isOverline
- boolean - overlined or not (not supported)isLeftline
- boolean - leftline or not (not supported)isRightline
- boolean - rightline or not (not supported)isTrigger
- boolean - trigger or not (not supported)isMandatoryFill
- boolean - mandatory fill or not (not supported)isMandatoryEntry
- boolean - mandatory entry or not (not supported)highLight
- int - highlighting typeforeColor
- int - foreground colorbackColor
- int - background coorcharSet
- int - character set (not supported)Method Detail |
public int getBackGroundColor()
getBackGroundColor
in interface com.ibm.connector2.screen.IFieldAttrInfo
public int getForeGroundColor()
getForeGroundColor
in interface com.ibm.connector2.screen.IFieldAttrInfo
public int getHighLight()
getHighLight
in interface com.ibm.connector2.screen.IFieldAttrInfo
public int getTransparency()
getTransparency
in interface com.ibm.connector2.screen.IFieldAttrInfo
public int getCharacterSet()
getCharacterSet
in interface com.ibm.connector2.screen.IFieldAttrInfo
public boolean isMandatoryFill()
isMandatoryFill
in interface com.ibm.connector2.screen.IFieldAttrInfo
public boolean isMandatoryEntry()
isMandatoryEntry
in interface com.ibm.connector2.screen.IFieldAttrInfo
public boolean isTrigger()
isTrigger
in interface com.ibm.connector2.screen.IFieldAttrInfo
public boolean isUnderline()
isUnderline
in interface com.ibm.connector2.screen.IFieldAttrInfo
public boolean isRightline()
isRightline
in interface com.ibm.connector2.screen.IFieldAttrInfo
public boolean isOverline()
isOverline
in interface com.ibm.connector2.screen.IFieldAttrInfo
public boolean isLeftline()
isLeftline
in interface com.ibm.connector2.screen.IFieldAttrInfo
public boolean isDisplay()
isDisplay
in interface com.ibm.connector2.screen.IFieldAttrInfo
public boolean isHighIntensity()
isHighIntensity
in interface com.ibm.connector2.screen.IFieldAttrInfo
public boolean isModified()
isModified
in interface com.ibm.connector2.screen.IFieldAttrInfo
public boolean isNumeric()
isNumeric
in interface com.ibm.connector2.screen.IFieldAttrInfo
public boolean isPenDetectable()
isPenDetectable
in interface com.ibm.connector2.screen.IFieldAttrInfo
public boolean isProtected()
isProtected
in interface com.ibm.connector2.screen.IFieldAttrInfo
public void setModified(boolean flag)
setModified
in interface com.ibm.connector2.screen.IFieldAttrInfo
flag
- boolean - true=modified / false=not modifiedpublic java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in interface com.ibm.connector2.screen.IFieldAttrInfo
java.lang.CloneNotSupportedException
- public boolean equals(java.lang.Object obj)
equals
in interface com.ibm.connector2.screen.IFieldAttrInfo
equals
in class java.lang.Object
obj
- java.io.PrintWriter - logwriter outputpublic void setProtected(boolean flag)
flag
- boolean - true=protected / false=not protectedpublic void setNumeric(boolean flag)
flag
- boolean - true=numeric / false=not numericpublic void setPenDetectable(boolean flag)
flag
- boolean - true=pen detectable / false=not pen detectablepublic void setDisplay(boolean flag)
flag
- boolean - true=display / false=non-displaypublic void setHighIntensity(boolean flag)
flag
- boolean - true=high intensity / false=normal intensitypublic void setUnderline(boolean flag)
flag
- boolean - true=underlined / false=not underlinedpublic void setOverline(boolean flag)
flag
- boolean - true=overlined / false=not overlinedpublic void setLeftline(boolean flag)
flag
- boolean - true=leftlined / false=not leftlinedpublic void setRightline(boolean flag)
flag
- boolean - true=rightlined / false=not rightlinedpublic void setTrigger(boolean flag)
flag
- boolean - true=trigger / false=not triggerpublic void setMandatoryFill(boolean flag)
flag
- boolean - true=mandatory-fill / false=not mandatory-fillpublic void setMandatoryEntry(boolean flag)
flag
- boolean - true=mandatory-entry / false=not mandatory-entrypublic void setHighLight(int val)
val
- int - highlighting type valuepublic void setTransparency(int val)
val
- int - transparency type valuepublic void setForeGroundColor(int val)
val
- int - foreground color valuepublic void setBackGroundColor(int val)
val
- int - background color valuepublic void setCharSet(int val)
val
- int - Character set value
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |