Class EEField

java.lang.Object
com.iizix.term.ee.EEField
All Implemented Interfaces:
Comparable<EEField>

public class EEField extends Object implements Comparable<EEField>
Loads the EE field from the EE screen file.
Author:
Christopher Mindus
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    int
    The host attribute of the field (3270 or 5250 dependent).
    boolean
    Underline flag.
    final int
    The length of the field in the PS.
    final int
    Position of this field in the PS.
  • Constructor Summary

    Constructors
    Constructor
    Description
    EEField(int pos, int len, int attr, boolean ul)
    Creation of a field for an unformatted screen.
    EEField(XFile f, int size)
    Loads the EE field from the EE screen file.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Used for sorting fields.
    boolean
    Checks for equality.
    int
    Gets the hash code.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • position

      public final int position
      Position of this field in the PS.
    • length

      public final int length
      The length of the field in the PS.
    • attribute

      public int attribute
      The host attribute of the field (3270 or 5250 dependent).
    • isUnderlined

      public boolean isUnderlined
      Underline flag.
  • Constructor Details

    • EEField

      public EEField(XFile f, int size) throws IOException
      Loads the EE field from the EE screen file.
      Parameters:
      f - The X-file for reading.
      size - The file size.
      Throws:
      IOException - for file failures.
    • EEField

      public EEField(int pos, int len, int attr, boolean ul)
      Creation of a field for an unformatted screen.
      Parameters:
      pos - Position on screen.
      len - Length of field (wrapping).
      attr - Attribute value.
      ul - Underline flag.
  • Method Details

    • equals

      public boolean equals(Object o)
      Checks for equality.
      Overrides:
      equals in class Object
      Returns:
      The equality flag.
    • hashCode

      public int hashCode()
      Gets the hash code.
      Overrides:
      hashCode in class Object
      Returns:
      The hash code.
    • compareTo

      public int compareTo(EEField f)
      Used for sorting fields.
      Specified by:
      compareTo in interface Comparable<EEField>