com.jFormTK
Class TableEdit

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

public class TableEdit
extends java.lang.Object
implements JConstants

This 'jFormTK' Class is designed to contain an "Item" for each 'jFormTK' Group, i.e. Table... NOTE: A 'jFormTK' Table is a "Group" of 'JFormField' instances, e.g. the 'Physians' Group of the PCS Survivors List 'jFormTK' Application... Kernel Usage: 1) An instance of this class is created during the 'jFormTK' Application load phase and hosted by the 'jFormTK.AppDB' Class... 2) An entry is made to this instance whenever the 'jFormTK' application creates a "Group" in a 'JFormForm' Sub-Class via the 'JFormInfo.addGroupControls' method...

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

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

Field Summary
static java.util.Vector items
           
 
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
TableEdit()
           
 
Method Summary
 void addItem(java.lang.String groupName, java.lang.String formID)
           Add a new 'JFormTK' Group by identifying it's "Group Name" [groupName] and the host 'JFormForm' Sub-Class [form]...
static java.lang.String getGroupNamesThisForm(java.lang.String formIDIn)
           Return a String of each Ordered Pairs [Group Name|FormID] for the given Form ID...
static java.lang.String[] getItem(int index)
           This method is designed to return the requested Item as the following Sting: [0] - Group Name, i.e.
static void showGroupNames()
           DEBUG method to display the current Group Names in the 'items' Vector...
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

items

public static java.util.Vector items
Constructor Detail

TableEdit

public TableEdit()
Method Detail

addItem

public void addItem(java.lang.String groupName,
                    java.lang.String formID)
        Add a new 'JFormTK' Group by identifying it's "Group Name" [groupName] and the
        host 'JFormForm' Sub-Class [form]...

        NOTE:
        The add operation shall place the given parameters in order by Group Name
        so that the "Table Edit" Dialog shall display the groups alphabetically...

        Kernel Usage:
        1)      'JFormInfo.addGroupControls' Method when a new Group is added to a
                'JFormForm' Sub-Class instance...
        

Parameters:
groupName - String with the new Group Name...
formID - The 'JFormForm' Sub-Class ID String...

getItem

public static java.lang.String[] getItem(int index)
        This method is designed to return the requested Item as the following Sting:
                [0]     -       Group Name, i.e. the Table Name...
                [1]     -       Form ID...

        NOTE:
        If the JFormForm Sub-Class in the 'items' Vector is Null,
        Then the returning Form ID is the "Null" String...

        Kernel Usage:
        1)      'AddressBook.Type_AnchorDialog' Method to create a String Array of the
                'Quick Edit' List Items.
                NOTE: Currently not being used anywhere???              
        2)      'tableEditDialog.Constructor' to fetch the current
                'Table Names / Form ID' Ordered Pairs. This data is then used to create
                the "Tables" List presented to the End User...
        

Parameters:
index - 'items' Vector Index...
Returns:
String Array with 2 items [tableName, host Form ID]...

getGroupNamesThisForm

public static java.lang.String getGroupNamesThisForm(java.lang.String formIDIn)
        Return a String of each Ordered Pairs [Group Name|FormID] for the given Form ID...
        NOTE:
        If no Group Name Pairs are found
        Then
                the return String shall have a "NONE" annotation. This is r4equired because
                the 'null' String is NOT written to the saved 'JFormForm' Sub-Class file
                properly...
        
Kernel Usage: 1) 'JHDD_IO.writeToFile' to save Group Name Pairs iff there are Groups In this 'JFormForm' Sub-Class...

Parameters:
formIDIn - Form ID to match the Table Edit items to...
Returns:
String of matching Group Names with "Items" Delimiters...

showGroupNames

public static void showGroupNames()
        DEBUG method to display the current Group Names in the 'items' Vector...

        Kernel Usage:
        1)      DEBUG usages...