com.jFormTK
Class JPerson

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

public class JPerson
extends java.lang.Object
implements JConstants

This jFormTK Class is designed to manage a "Persons" list that is used to enable the 'jFormTK' Kernel Application End User to select a "Person" when processing a "Group of JFormField's in a 'JFormForm' Sub-Class... For example, in the Professional Compuer Solutions [PCS] "Survivors List Plus" Application the JPerson instance is set with the name of the "Registered User" and the name of the "Regitered Users Spouse". When commencing to process a "Group" of a 'JFormForm' Sub-Class, the Application End User is required to select either the "Registered Users" name, the "Spouse" Name or the text String "Both". This selection are used as the "Set Number" for each 'JFormField' of the "Group"... Once the selected person Group parameters are completed the following processing is generally performed: If the JPerson selection was not "Both", Then JPerson shall query the Application End User to select the other's Person Name or to select a "Later" option.

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

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

Nested Class Summary
(package private)  class JPerson.BorderCellRenderer
           
(package private) static class JPerson.JPersonDialog
           
 
Field Summary
static boolean isActive
           
 
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, 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
JPerson()
          Constructors - null parameters...
JPerson(java.lang.String s)
           Constructor with the initial Person String [s]...
JPerson(java.lang.String owner, java.lang.String spouse)
           Constructor with the Owner Name [owner] and the Spouse Name [spouse] provided...
 
Method Summary
static void add(java.lang.String name)
           
 java.lang.String getLastPersonSelected()
           
static java.lang.String[] getList()
           
static java.lang.String getOther(java.lang.String nameIn)
           
static java.lang.String[] getOthers(java.lang.String s)
           
 java.lang.String getPerson(JFormForm form, JFormField jObj)
           
static void remove(java.lang.String s)
           
static void setIsActive(boolean flag)
           
 void setList(java.lang.String[] listIn)
           
 void showJPerson()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

isActive

public static boolean isActive
Constructor Detail

JPerson

public JPerson()
Constructors - null parameters...


JPerson

public JPerson(java.lang.String s)
        Constructor with the initial Person String [s]...
        

Parameters:
s - First item in the JPerson.vector {String]...

JPerson

public JPerson(java.lang.String owner,
               java.lang.String spouse)
        Constructor with the Owner Name [owner] and the Spouse Name [spouse] provided...
        

Parameters:
owner - Name to be displayed in the JPerson Choice list for the Application Owner...
spouse - Name to be displayed in the JPerson Choice list for the Application Spouse...
Method Detail

add

public static void add(java.lang.String name)

getList

public static java.lang.String[] getList()

getOther

public static java.lang.String getOther(java.lang.String nameIn)

getOthers

public static java.lang.String[] getOthers(java.lang.String s)

remove

public static void remove(java.lang.String s)

setIsActive

public static void setIsActive(boolean flag)

getLastPersonSelected

public java.lang.String getLastPersonSelected()

getPerson

public java.lang.String getPerson(JFormForm form,
                                  JFormField jObj)

setList

public void setList(java.lang.String[] listIn)

showJPerson

public void showJPerson()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object