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.16 $
Author:
$Author: prasanth $
See Also:
Serialized Form

Field Summary
protected  java.awt.Container container
          Screen where componets to be cleared are located.
 
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.
protected  void setComponents(java.awt.Container _container)
          Clears all the JTextFields and resets the combo boxes to first item.
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

container

protected java.awt.Container container
Screen where componets to be cleared are located.

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

setComponents

protected void setComponents(java.awt.Container _container)
Clears all the JTextFields and resets the combo boxes to first item. This is done for all SwingSet components, text fields, & text areas, recursively looking in to the JTabbedPanes and JPanels inside the given container as needed.

Parameters:
_container - container in which to recursively initialize components