com.wrq.apptrieve.agent
Class InputFieldInfo

java.lang.Object
  extended by com.wrq.apptrieve.agent.InputFieldInfo
All Implemented Interfaces:
com.wrq.rejuv.IInputFieldInfo, java.io.Serializable

public class InputFieldInfo
extends java.lang.Object
implements com.wrq.rejuv.IInputFieldInfo, java.io.Serializable

Encapsulates some basic information about input fields on a terminal screen.

See Also:
Serialized Form

Constructor Summary
InputFieldInfo(java.lang.String text, int length, boolean isNumeric)
          Constructor for internal use only.
 
Method Summary
 boolean equals(java.lang.Object o)
           
 int getLength()
          Get the length of the input field in characters.
 boolean getNumeric()
          Determine if the input field is configured by the host application to be a numeric field.
 java.lang.String getText()
          Get the text that is currently displayed in the input field.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InputFieldInfo

public InputFieldInfo(java.lang.String text,
                      int length,
                      boolean isNumeric)
Constructor for internal use only.

Parameters:
text - text
length - length
isNumeric - isNumeric
Method Detail

getLength

public int getLength()
Get the length of the input field in characters.

Specified by:
getLength in interface com.wrq.rejuv.IInputFieldInfo
Returns:
the length of the field

getText

public java.lang.String getText()
Get the text that is currently displayed in the input field.

Specified by:
getText in interface com.wrq.rejuv.IInputFieldInfo
Returns:
the text of the input field

getNumeric

public boolean getNumeric()
Determine if the input field is configured by the host application to be a numeric field.

Specified by:
getNumeric in interface com.wrq.rejuv.IInputFieldInfo
Returns:
true if the field is numeric

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object