org.jurvis.swing.form
Class JvFieldUtilities

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

public final class JvFieldUtilities
extends Object

Various utilities in support of Fields.

Author:
Neil W. Weber

Constructor Summary
JvFieldUtilities()
           
 
Method Summary
static void addAutoCommitter(JvForm form, JvField field)
          Add a modification listener to a field's component that will auto-commit any change to a form's model.
static void addAutoCommitter(JvForm form, JvField field, String propertyName)
          Add a modification listener to a field's component that will auto-commit any change to a form's model.
static void addModificationListener(Component comp, JvFieldModificationListener listener)
          Add a modification listener to a field's component.
static void addModificationListener(JvField field, JvFieldModificationListener listener)
          Add a modification listener to a field.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JvFieldUtilities

public JvFieldUtilities()
Method Detail

addModificationListener

public static void addModificationListener(JvField field,
                                           JvFieldModificationListener listener)
Add a modification listener to a field.

Parameters:
field - the field being listened to
listener - the field modification listener

addModificationListener

public static void addModificationListener(Component comp,
                                           JvFieldModificationListener listener)
Add a modification listener to a field's component.

Parameters:
comp - the field's component
listener - the field modification listener

addAutoCommitter

public static void addAutoCommitter(JvForm form,
                                    JvField field)
Add a modification listener to a field's component that will auto-commit any change to a form's model. The name of the property being edited by the field is expected to be the same as the name of the field.

Parameters:
form - the form whose model is being edited
field - a field within the form whose changes are to be auto committed

addAutoCommitter

public static void addAutoCommitter(JvForm form,
                                    JvField field,
                                    String propertyName)
Add a modification listener to a field's component that will auto-commit any change to a form's model.

Parameters:
form - the form whose model is being edited
field - a field within the form whose changes are to be auto committed
propertyName - the name of the property whose data is being edited by field


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