org.jurvis.swing.form
Class JvFormUtilities

java.lang.Object
  extended by org.jurvis.swing.form.JvFormUtilities

public final class JvFormUtilities
extends Object

Various utilities in support of Forms.

Author:
Neil W. Weber

Constructor Summary
JvFormUtilities()
           
 
Method Summary
static void clearFields(JvForm form)
          Clear the fields within the form.
static void initializeFormChildren(JvForm form)
          Add modification and focus listeners to each child of the specified form as is appropriate to the child.
static void initializeFormChildren(JvForm form, Component comp)
          Add modification and focus listeners to each child of the specified form as is appropriate to the child.
static void populateFields(JvForm form, Object bean)
          Populate the fields within the form with values from the given JavaBean.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JvFormUtilities

public JvFormUtilities()
Method Detail

initializeFormChildren

public static void initializeFormChildren(JvForm form)
Add modification and focus listeners to each child of the specified form as is appropriate to the child. Set the enabled state of the children components to match the form's enabled state.

Parameters:
form - the form being initialized

initializeFormChildren

public static void initializeFormChildren(JvForm form,
                                          Component comp)
Add modification and focus listeners to each child of the specified form as is appropriate to the child. Set the enabled state of the children components to match the form's enabled state.

Parameters:
form - the form being initialized
comp - the root GUI component of the form's children

clearFields

public static void clearFields(JvForm form)
Clear the fields within the form.

Parameters:
form - the form being initialized

populateFields

public static void populateFields(JvForm form,
                                  Object bean)
Populate the fields within the form with values from the given JavaBean.

Parameters:
form - the form being initialized
bean - the JavaBean to get property values from


Copyright © 1999-2004 Neil W. Weber. All Rights Reserved.