oracle.jbo.uicli.jui
Class JUPanelValidationAdapter
java.lang.Object
|
+--oracle.jbo.uicli.jui.JUPanelValidationAdapter
- All Implemented Interfaces:
- java.util.EventListener, JUPanelValidationListener
- public class JUPanelValidationAdapter
- extends java.lang.Object
- implements JUPanelValidationListener
Default implementation for JUPanelValidationListener interface.
This implementation simply prints a diagnostic message for each
event it receives. JClient designtime creates a subclass of this
adapter with overridden methods as per an Application's choice
when the Event Inspector is used to generate JUPanelValidationEvent
listener code.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JUPanelValidationAdapter
public JUPanelValidationAdapter()
beforeSetAttribute
public void beforeSetAttribute(JUPanelValidationEvent ev)
- Description copied from interface:
JUPanelValidationListener
- Invoked before a JClient Binding object calls Row.setAttribute()
to update a value from a binding object into the corresponding
Row object.
Applications should perform light-weight attribute-data validation like
say matching a value with a small set of values, or uppercasing all entries
etc. at this level before the value is passed on to BC4J. Note that
such a validation should be duplicated on the BC4J side too as other clients
or apis may modify the same attribute. This duplication is usually necessary
when a client needs immediate feedback of an error rather than going over
to the middle-tier (in a 3/ntier platform) and get any errors.
- Specified by:
beforeSetAttribute
in interface JUPanelValidationListener
beforeCurrencyChange
public void beforeCurrencyChange(JUPanelValidationEvent ev)
- Description copied from interface:
JUPanelValidationListener
- Invoked before a JClient binding object calls a navigation event
to display the next row data in the JClient controls.
Applications should perform light-weight row-data validation like
inter-attribute validation etc. at this level before the value is passed on to BC4J. Note that
such a validation should be duplicated on the BC4J side too as other clients
or apis may modify the same attribute. This duplication is usually necessary
when a client needs immediate feedback of an error rather than going over
to the middle-tier (in a 3/ntier platform) and get any errors.
- Specified by:
beforeCurrencyChange
in interface JUPanelValidationListener
beforeSaveTransaction
public void beforeSaveTransaction(JUPanelValidationEvent ev)
- Description copied from interface:
JUPanelValidationListener
- Invoked before a JClient binding object calls commit() on
the transaction, to save any pending changes into the database.
Applications should perform light-weight panel-level validation like
validating that all desired values are filled in etc. at this level before
the values are passed on to BC4J. Note that
such a validation should be duplicated on the BC4J side too as other clients
or apis may modify the same attribute. This duplication is usually necessary
when a client needs immediate feedback of an error rather than going over
to the middle-tier (in a 3/ntier platform) and get any errors.
- Specified by:
beforeSaveTransaction
in interface JUPanelValidationListener