borland.jbcl Packages borland.jbcl Class Hierarchy borland.jbcl.dataset
java.util.EventListener +----borland.jbcl.dataset.ColumnChangeListener
Methods
Implemented by ColumnChangeAdapter
This class is used for notification that data has changed in a column. One listener would be written for each column for which you want to be notified of changes. This is the listener to use for checks on field values that should be done before a user leaves the field. One example of when this might be useful is to check that a part number is in stock before the rest of the line item information is entered.
void changed(borland.jbcl.dataset.DataSet dataSet, borland.jbcl.dataset.Column column, borland.jbcl.util.Variant value)Called after all column level validations have been performed and a column value has been successfully posted inside a ReadWriteRow.
Parameters:
void validate(borland.jbcl.dataset.DataSet dataSet, borland.jbcl.dataset.Column column, borland.jbcl.util.Variant value)Called before column level validations like readOnly, min, or max are performed, and before the new value is recorded in a ReadWriteRow. Note that if values are set programmatically, EditMask constraints are not applied. You can change the value stored in value, but it must still pass the column level validations. To prevent the value from being set, throw a VetoException (i.e.,
throw new VetoException()
). If a VetoException is constructed with a String parameter, this String is used in the default error handling displays (i.e., throw new VetoException("My error message")
).
Parameters: