com.jFormTK
Class JValue

java.lang.Object
  extended by com.jFormTK.JValue
All Implemented Interfaces:
JConstants

public class JValue
extends java.lang.Object
implements JConstants

        This class is used by the 'jFormTK.Util' Class when processing a String ID provided 
        in an "Assignment" statement.
        This class is designed as a "holder class" for parameters required to process an 
        "Assignment" as a function of one of the following String ID Types:

        1)      "Reference" to a 'JFormField' using the "Dynamic Referencing" feature.
                For Example:
                        from PCS Test Suite Form1 JFormForm SubClass,
                        Reference to "Cat1.Ping.pingValue...
        2)      Value derived as a function of the "", "", "", "", "" or ""  
                ID Prefix annotation...
        3)      A constant value, e.g. "3.14159265"...     

        The Object fields are as follows:

        JValue.source - the parsed String  of an Assignment Statement used to construct 
                                        *this* 'JValue' instance...
        JValue.JFormField       -       JFormField      =       Reference if the String ID is a "Reference" 
                                                                                        String [1) above]...
                                                = Null if the String ID is a Prefix [2) above] or
                                                                                          a constant [3) above...
        JValue.value            - String                =       "" [null] String if JValue.JFormField is NOT 
                                                                                        Null
                                                                                =       String Value if the JValue.JFormField is null.
        JValue.type        - char               =       ' ' [null] String if JValue.JFormField is NOT 
                                                                                        Null
                                                                                =       String Type, e.g. [_TField], if the 
                                                                                        JValue.JFormField is null OR the reusult of a 
                                                                                        'jFormTK' Utility Reference...
        JValue.numericType - int                =       Numeric Type used by the Util.assignment 
                                                                                        Method  to complete processing of a 
                                                                                        'jFormTK.JValue' instance...
        NOTE: numericType's are as follows:
                         0      -       Amount 
                         1      -       Integer
                         2      -       Date
                         3      -       Float [no '$' prefix]
                         Special Cases for 'assignment' Method usage ONLY...
                         4      -       ""  Common Data Base [AppDB.commonDB] Field...
                         5      -       ""  Branch to Form as a function of a given 'Anchor'...
                         6      -       ""  Utility Class Method Reference...
                         7      -       "" Address Book Reference...
                         8      -       "Show" Request...
                         9      -       "Print" Request...
                        10      -       "  Application Data Base Field...
                        11      -       'JFormTKDB' Reference...
                        12      -       'JMessageTopic' Reference...

        JValue.index-   int     'AppCommonDB' OR 'JAddressBook' index as follows:
                                        =       -1 if 'numericType' is NOT = 4 [] OR NOT = 7 [] 
                                        =       'AppCommonDB' Index iff numericType = 4
                                        =       'JAddressBook' Index iff numericType = 7

Version:
1.00, Aug 19, 2002
Author:
Jim Crowell
Professional Computer Solutions [PCS]
URL: http://jFormTK.com/
E-Mail: JimCrowell@EMail.com

Copyright (c) 2006 by Professional Computer Solutions [PCS]
All Rights Reserved

Field Summary
 int index
           
 JFormField jFormField
           
 int numericType
           
 java.lang.String source
           
 char type
           
 java.lang.String value
           
 
Fields inherited from interface com.jFormTK.JConstants
__, _AB, _AB_, _AField, _B, _BField, _CField, _CIField, _DField, _EU_, _H, _HEIGHT, _HEIGHT_INV, _HField, _I, _IField, _LField, _MField, _NField, _NotRequired, _PField, _PIField, _QField, _Required, _RField, _TAField, _TField, _WIDTH, _WIDTH_INV, _XField, AB, APP_TRACE_FOCUS, APP_TRACE_GET, APP_TRACE_SET, B_, BAR, BAR_, BB, BH, BI, BREAKPOINT_FOCUS, BREAKPOINT_GET, BREAKPOINT_SET, BVB, C_QUOTE, CLOSE, CLOSE_BRACKET, COLORS_DELIMITER, COMMA_, D_ELEMENT, D_ELEMENT_N, D_ELEMENT_N1, D_ELEMENT_N2, D_ELEMENT_N3, D_FIELDS, D_FIELDS_N, D_FIELDS_N1, D_FIELDS_N2, D_FIELDS_N3, D_ITEMS, DASH, DOT, EOL, EOP, EOS, FIELD_TRACE_FOCUS, FIELD_TRACE_GET, FIELD_TRACE_SET, FONT_DELIMITER, H_, HB, HH, HI, I_, IB, IH, II, JLAF_DELIMITER, LF, LISTBRACKET, NO, OPEN, OPEN_BRACKET, pCheckboxGroup, QUOTE, SPACE_, TAB, YES
 
Constructor Summary
JValue(JFormForm form, JFormField refFld, java.lang.String sourceIn, java.lang.String from)
           
 
Method Summary
 int getIndex()
          Get 'index' parameter...
 JFormField getJFormField()
          Get "JFormField" Reference...
 java.lang.String getJValueDisplay()
          Get a String the displays the current *this* parameters...
 int getNumericType()
          Get 'numericType'
 java.lang.String getSource()
          Get the 'source' String that the *this* parameters were constructed from...
 char getType()
           Get the current 'type' String for *this* 'JValue' instance...
 java.lang.String getValue()
           Get the current 'value' String for *this* 'JValue' instance...
 void setType(char c)
           Set the *this* type char.
 void showJValue(java.lang.String fieldName, java.lang.String from)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

index

public int index

jFormField

public JFormField jFormField

numericType

public int numericType

source

public java.lang.String source

type

public char type

value

public java.lang.String value
Constructor Detail

JValue

public JValue(JFormForm form,
              JFormField refFld,
              java.lang.String sourceIn,
              java.lang.String from)
Method Detail

getIndex

public int getIndex()
Get 'index' parameter...

Returns:
Index [int]...

getJFormField

public JFormField getJFormField()
Get "JFormField" Reference...

Returns:
:Reference" to *this* JFormField...

getJValueDisplay

public java.lang.String getJValueDisplay()
Get a String the displays the current *this* parameters...

Returns:
String with current source, referenceID, value, type, numericType and index contenty...

getNumericType

public int getNumericType()
Get 'numericType'

Returns:
Numeric Type int for *this* JValue

getSource

public java.lang.String getSource()
Get the 'source' String that the *this* parameters were constructed from...

Returns:
Source String

getType

public char getType()
        Get the current 'type' String for *this* 'JValue' instance...
        

Returns:
The type char...

getValue

public java.lang.String getValue()
        Get the current 'value' String for *this* 'JValue' instance...
        

Returns:
The value String...

setType

public void setType(char c)
        Set the *this* type char.
        

Parameters:
c - The char to set the *this* type parameter to...

showJValue

public void showJValue(java.lang.String fieldName,
                       java.lang.String from)