com.ibm.connector2.hod.screenable
Class J2HODTextAttrInfo

java.lang.Object
  |
  +--com.ibm.connector2.hod.screenable.J2HODTextAttrInfo
All Implemented Interfaces:
java.lang.Cloneable, com.ibm.connector2.screen.ITextAttrInfo, java.io.Serializable

public class J2HODTextAttrInfo
extends java.lang.Object
implements com.ibm.connector2.screen.ITextAttrInfo

This class represents text attribute information of a field. It only supports TN3270 session. The following attributes information are available:

Name Type Default Value Description
textColor char [0] (char)0 text color value for each character in a field
textExtAttrs char [0] (char)0 NOT SUPPORTED: extended text attribute value for each character in a field

See Also:
Serialized Form

Constructor Summary
J2HODTextAttrInfo()
          Create an instance of J2HODTextAttrInfo with default attribute values.
J2HODTextAttrInfo(char[] color, char[] extAttrs)
          Create an instance of J2HODTextAttrInfo with specified attribute values.
 
Method Summary
 java.lang.Object clone()
          Returns a cloned 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.
 char[] getTextColors()
          Returns a character array containing text color attribute values for each character(including white space)
 char[] getTextExtAttrs()
          Returns a character array containing extended text attribute values for each character(including white space) This is not supported and it returns null character array.
 void setTextColors(char[] val)
          Sets text color.
 void setTextExtAttrs(char[] val)
          Sets text extended attribute
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

J2HODTextAttrInfo

public J2HODTextAttrInfo()
Create an instance of J2HODTextAttrInfo with default attribute values.

J2HODTextAttrInfo

public J2HODTextAttrInfo(char[] color,
                         char[] extAttrs)
Create an instance of J2HODTextAttrInfo with specified attribute values.
Method Detail

getTextColors

public char[] getTextColors()
Returns a character array containing text color attribute values for each character(including white space)
Specified by:
getTextColors in interface com.ibm.connector2.screen.ITextAttrInfo
Returns:
char[]
See Also:
setTextColors(char[])

getTextExtAttrs

public char[] getTextExtAttrs()
Returns a character array containing extended text attribute values for each character(including white space) This is not supported and it returns null character array.
Specified by:
getTextExtAttrs in interface com.ibm.connector2.screen.ITextAttrInfo
Returns:
char[]
See Also:
setTextExtAttrs(char[])

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Returns a cloned instance of this class object
Specified by:
clone in interface com.ibm.connector2.screen.ITextAttrInfo
Returns:
J2HODTextAttrInfo
Throws:
java.lang.CloneNotSupportedException -  

equals

public boolean equals(java.lang.Object obj)
Returns whether this instance of this class is equal to the instance of an object passed in.
Specified by:
equals in interface com.ibm.connector2.screen.ITextAttrInfo
Overrides:
equals in class java.lang.Object
Parameters:
obj - Object - an instance of object to compare
Returns:
boolean

setTextColors

public void setTextColors(char[] val)
Sets text color.
Parameters:
val - char[] - text color value
See Also:
getTextColors()

setTextExtAttrs

public void setTextExtAttrs(char[] val)
Sets text extended attribute
Parameters:
val - char[] - extended attribute value
See Also:
getTextExtAttrs()