com.nqadmin.swingSet.utils
Class SSSyncManager

java.lang.Object
  extended by com.nqadmin.swingSet.utils.SSSyncManager

public class SSSyncManager
extends java.lang.Object

SSSyncManager.java

SwingSet - Open Toolkit For Making Swing Controls Database-Aware

 Used to synchronize a data navigator and a navigation combo box.

Version:
$Revision: 1.7 $
Author:
$Author: prasanth $

Field Summary
protected  java.lang.String columnName
          SSRowSet column used as basis for synchronization.
protected  SSDBComboBox comboBox
          SSDBComboBox used for record navigation.
protected  SSDataNavigator dataNavigator
          SSDataNavigator to be synchronized with navigation combo box.
protected  SSRowSet rowset
          SSRowSet navigated with data navigator and combo box.
 
Constructor Summary
SSSyncManager(SSDBComboBox _comboBox, SSDataNavigator _dataNavigator)
          Creates a SSSyncManager with the specified combo box and data navigator.
 
Method Summary
protected  void adjustValue()
          Method to update combo box based on rowset.
 void async()
          Stop synchronization between navigation components.
 void setColumnName(java.lang.String _columnName)
          Sets column to be used as basis for synchronization.
 void setComboBox(SSDBComboBox _comboBox)
          Sets combo box to be synchronized.
 void setDataNavigator(SSDataNavigator _dataNavigator)
          Sets data navigator to be synchronized.
 void sync()
          Start synchronization between navigation components.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

comboBox

protected SSDBComboBox comboBox
SSDBComboBox used for record navigation.


dataNavigator

protected SSDataNavigator dataNavigator
SSDataNavigator to be synchronized with navigation combo box.


rowset

protected SSRowSet rowset
SSRowSet navigated with data navigator and combo box.


columnName

protected java.lang.String columnName
SSRowSet column used as basis for synchronization.

Constructor Detail

SSSyncManager

public SSSyncManager(SSDBComboBox _comboBox,
                     SSDataNavigator _dataNavigator)
Creates a SSSyncManager with the specified combo box and data navigator.

Parameters:
_comboBox - SSDBComboBox used for record navigation
_dataNavigator - SSDataNavigator to be synchronized with navigation combo box
Method Detail

setColumnName

public void setColumnName(java.lang.String _columnName)
Sets column to be used as basis for synchronization.

Parameters:
_columnName - SSRowSet column used as basis for synchronization.

setDataNavigator

public void setDataNavigator(SSDataNavigator _dataNavigator)
Sets data navigator to be synchronized.

Parameters:
_dataNavigator - data navigator to be synchronized

setComboBox

public void setComboBox(SSDBComboBox _comboBox)
Sets combo box to be synchronized.

Parameters:
_comboBox - combo box to be synchronized

sync

public void sync()
Start synchronization between navigation components.


async

public void async()
Stop synchronization between navigation components.


adjustValue

protected void adjustValue()
Method to update combo box based on rowset.