JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.field
Class JCFormUtil

java.lang.Object
  |
  +--com.klg.jclass.field.JCFormUtil

public class JCFormUtil
extends Object

This class contains a collection of methods that look through all the children of a given Container (usually a Form) and return different sets of information based on the JClass Field components found in a Container.


Constructor Summary
JCFormUtil()
           
 
Method Summary
static void clearFieldComponents(Container form)
          Sets all the JCFieldComponent children of the specified Container to null.
static Set getFieldComponents(Container form)
          Recursively gets all the JCFieldComponent children of the specified container.
static Set getInvalidRequiredFieldComponents(Container form)
          Returns the JCFieldComponent children that are "required" but invalid, for the specified form.
static Set getRequiredFieldComponents(Container form)
          Returns the JCFieldComponent children of the form that are considered required (isRequired() == true).
static boolean isFieldComponentContainerComplete(Container form)
          Returns true if all the "required" JCFieldComponent children of the container (isRequired() == true) are valid (getState() == VALID).
static void resetFieldComponents(Container form)
          Resets all the JCFieldComponent children of the specified Container to their default values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JCFormUtil

public JCFormUtil()
Method Detail

getFieldComponents

public static Set getFieldComponents(Container form)
Recursively gets all the JCFieldComponent children of the specified container. All JClass Field components are instances of JCFieldComponent.

Parameters:
form -
Returns:

isFieldComponentContainerComplete

public static boolean isFieldComponentContainerComplete(Container form)
Returns true if all the "required" JCFieldComponent children of the container (isRequired() == true) are valid (getState() == VALID).

Parameters:
form -
Returns:

getRequiredFieldComponents

public static Set getRequiredFieldComponents(Container form)
Returns the JCFieldComponent children of the form that are considered required (isRequired() == true).

Parameters:
form -
Returns:

getInvalidRequiredFieldComponents

public static Set getInvalidRequiredFieldComponents(Container form)
Returns the JCFieldComponent children that are "required" but invalid, for the specified form. Determines which fields are considered required (isRequired() == true), and of those, which are not valid (getState() != VALID).

Parameters:
form -
Returns:

clearFieldComponents

public static void clearFieldComponents(Container form)
Sets all the JCFieldComponent children of the specified Container to null.

Parameters:
form -

resetFieldComponents

public static void resetFieldComponents(Container form)
Resets all the JCFieldComponent children of the specified Container to their default values.

Parameters:
form -

Copyright © 2004 Quest Software Inc..
All rights reserved.