com.jFormTK
Class JFormFieldLAFS

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

public class JFormFieldLAFS
extends java.lang.Object
implements JConstants

        This 'jFormTK ' Class is designed to hold a set of JLAF instances that may be used to
        override the following JLAF controls within a 'JFormField':
                        jLAF                    JFormFieldLAF JLAF...
                        fieldLabelLAF   JLAF for the 'jFormFieldLabel instance...
                        componentLAF    Java Component LAF...
                        labelLAF                JLAF for the 'jFormField' _LField Type...
                        listLAF                 JLAF used by JTKComboBox, etc. if NOT Null...
                                                        Set to Non-Null value iff 'highliteControls' is Active...
                        hintButtonLAF   JLAF for the 'hintButton' iff 'hint' is true...
                        groupPanelLAF   Used to set the Group Panel LAF iff the current
                                                        "To Be Highlited" is in a Group and this LAF is Non-Null...

        The 'JLAF' instances are managed by a Java Collection [SortedMap]...

        There shall be an instance of this class in each 'JFormInfo.highliteControl' instance...

        Kernel Usage:
        1)      The 'JFormField.setJLAF(JFormFieldLAF) method applies the hosted 'JLAF'
                instances to the host 'JFormField' Java components...
        

Version:
1.00, 21 Aug 2006
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
static java.lang.String CLOSE_REF
           
(package private)  java.lang.String[] elementNames
           
static java.lang.String OPEN_REF
           
 
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
JFormFieldLAFS()
          Constructor [1] to build a 'JFormFieldLAF' instance with ALL null JLAF's Kernel Usage: 1) tbd
JFormFieldLAFS(JLAF laf)
          Constructor [2] to build a 'JFormFieldLAF' instance with ALL JLAF's derived from a given JLAF instance [laf]...
JFormFieldLAFS(java.lang.String encodedJFormFieldLAF)
          Constructor [3] to build a 'JFormFieldLAF' instance as a function of an encoded String that identifies the JLAF content for each of the 'elementNames' JLAF's in the constructed 'JFormFieldLAF' instance...
 
Method Summary
 JLAF get(java.lang.String element)
           Get the specified Element Name from the host 'HashMap'...
 JLAF getJLAF(int index)
           Return the 'JLAF' instance indicated by the given index into the 'elementNames' String Array...
 boolean isNull()
           
 void set(java.lang.String element, JLAF laf)
           
 void show(char type, java.lang.String from)
           
 void show(java.lang.String from)
           
 void showLAFs()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

elementNames

java.lang.String[] elementNames

OPEN_REF

public static final java.lang.String OPEN_REF
See Also:
Constant Field Values

CLOSE_REF

public static final java.lang.String CLOSE_REF
See Also:
Constant Field Values
Constructor Detail

JFormFieldLAFS

public JFormFieldLAFS()
Constructor [1] to build a 'JFormFieldLAF' instance with ALL null JLAF's Kernel Usage: 1) tbd


JFormFieldLAFS

public JFormFieldLAFS(JLAF laf)
Constructor [2] to build a 'JFormFieldLAF' instance with ALL JLAF's derived from a given JLAF instance [laf]... Kernel Usage: 1) tbd

Parameters:
laf - Base 'JLAF' instance to seed the 'JFormFieldLAF' instance...

JFormFieldLAFS

public JFormFieldLAFS(java.lang.String encodedJFormFieldLAF)
Constructor [3] to build a 'JFormFieldLAF' instance as a function of an encoded String that identifies the JLAF content for each of the 'elementNames' JLAF's in the constructed 'JFormFieldLAF' instance... This String ['encodedJFormFieldLAF'] is constructed as follows: 1) By the '*this*.toString' Method... 2) By the 'jFormTK' Application developer to control the Look & Feel of a "Highlite" Set... The Format of the 'encodedJFormFieldLAF' is as follows: 1) An encoded JLAF String for each JLAF of the 'elementNames' array delimited with the 'JFormTKDB.fieldsDelimiter' String... NOTE: The order of the Encoded JLAF controls are as follows: "jLAF", "fieldLabelLAF", "componentLAF", "labelLAF", "listLAF", "hintButtonLAF", "groupPanelLAF". 2) If an "EncodedJLAF" contains the "Reference Brackets", i.e. "[]" Then within the parens the following controls may be used: a) If an 'encodedJLAF' equals "Null" {Case insensitive} OR a Null String [""], Then a Java 'Null' is set in the associated 'elementNames' location. b) If a numeric index, use the same JLAF in the associated 'elementNames' location. For Example the following String would yield the same as the [2] Constructor above: "cBlack_cYellow_(appFont)`[0]`[0]`[0]`[0]`[0]" OR "cBlack_cYellow_(appFont)`[0]`[1]`[2]`[3]`[4]" where "`" is the Fields Delimiter... c) If an 'elementNames' reference index is preceeded by an r, Then the Background / Foreground Colors are reversed in the target JLAF instance. Following is an 'encodedString' using this feature and the resultant 'encodedString': i) Example: "cRed_cGray`[r0]`[r1]`[r2]`[r3]`[r4]" YIELDS --> "cRed_cGray`cGray_cRed`cRed_cGray`cGray_cRed`cRed_cGray`cGray_cRed`" where "`" is the Fields Delimiter... ii) Example: "cRed_cGray`[r0]`[r0]`[r0]`[r0]`Null" YIELDS --> "cRed_cGray`cGray_cRed`cGray_cRed`cGray_cRed`cGray_cRed`Null" where "`" is the Fields Delimiter... 3) If the number of 'encodedLAF' Strings in the given 'encodedLAFs' String is less that the number of elements in the 'elementNames' control String array, Then the remainder of the JLAF instances are defaulted to the cooresponding JLAF instance of a 'JFormFieldLAFS' instance created using the single JLAF instance Constructor [2]...

Parameters:
encodedJFormFieldLAF - String of 'encodedJLAF' elements... Kernel Usage: 1) 'Util.setHighliteLAF' method to set a Highlite Control instance item...
Method Detail

get

public JLAF get(java.lang.String element)
        Get the specified Element Name from the host 'HashMap'...

        Kernel Usage:
        1)      'JFormField.setJLAF' when setting a 'JFormField' instance as a function of
                a given 'JFormFieldLAFS' instance...
        

Parameters:
element - JLAF Element Name [String] to be returned...
Returns:
The retrienved 'JLAF' instance...

getJLAF

public JLAF getJLAF(int index)
        Return the 'JLAF' instance indicated by the given index into the
        'elementNames' String Array...

        Kernel Usage:
        1)      '*this*.Constructor[3]' Method when the EncodedJLAFS references a 'null'...
        

Parameters:
index - Index [int] into the Element Names String Array to be returned...
Returns:
JLAF as taken from the host 'JFormFieldsLANs' Sorted Map...

isNull

public boolean isNull()

set

public void set(java.lang.String element,
                JLAF laf)

show

public void show(java.lang.String from)

show

public void show(char type,
                 java.lang.String from)

showLAFs

public void showLAFs()

toString

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