com.nqadmin.swingSet
Class SSDBNavImp

java.lang.Object
  extended by com.nqadmin.swingSet.SSDBNavAdapter
      extended by com.nqadmin.swingSet.SSDBNavImp
All Implemented Interfaces:
SSDBNav, java.io.Serializable

public class SSDBNavImp
extends SSDBNavAdapter

SSDBNavImp.java

SwingSet - Open Toolkit For Making Swing Controls Database-Aware

 Custom implementation of SSDBNav that clears/resets the various database-aware
 fields on a screen when the user adds a new record.  To achieve this, special
 implementation of the performPreInsertOps() method is provided.  An instance of
 this class can be created for the container where the fields are to be cleared
 and passed to the data navigator.

 The data navigator will call the performPreInsertOps() method whenever the
 user presses the insert button on the navigator. This fuctions recursively
 clears any JTextFields, JTextAreas, and SSCheckBoxes, and if their are any
 SSComboBoxes or SSDBComboBoxes they will be reset to the first item in the
 list.

 This recursive behavior performed on all the components inside the JPanel or
 JTabbedPane inside the specified container.

Version:
$Revision: 1.14 $
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.nqadmin.swingSet.SSDBNav
NAVIGATION_FIRST, NAVIGATION_LAST, NAVIGATION_NEXT, NAVIGATION_PREVIOUS
 
Constructor Summary
SSDBNavImp(java.awt.Container _container)
          Constructs a SSDBNavImp with the specified container.
 
Method Summary
 void performPreInsertOps()
          Performs pre-insertion operations.
 
Methods inherited from class com.nqadmin.swingSet.SSDBNavAdapter
allowDeletion, allowInsertion, allowUpdate, performCancelOps, performNavigationOps, performPostDeletionOps, performPostInsertOps, performPostUpdateOps, performPreDeletionOps, performRefreshOps
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SSDBNavImp

public SSDBNavImp(java.awt.Container _container)
Constructs a SSDBNavImp with the specified container.

Method Detail

performPreInsertOps

public void performPreInsertOps()
Performs pre-insertion operations.

Specified by:
performPreInsertOps in interface SSDBNav
Overrides:
performPreInsertOps in class SSDBNavAdapter