Package com.cosylab.vdct.db
Class DBSheetData
- java.lang.Object
 - 
- com.cosylab.vdct.db.DBSheetData
 
 
- 
- All Implemented Interfaces:
 DsEventListener
public class DBSheetData extends Object implements DsEventListener
- Author:
 - ssah
 
 
- 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(DBSheetView record)Adds a record.DBSheetViewget(String key)Returns the record with the given key, or null if there is no such record.static DBSheetDatagetInstance(Object dsId)IteratorgetRecords()voidonDsAdded(Object id)voidonDsFocused(Object id)voidonDsRemoved(Object id)static voidregisterDsListener()voidremove(String key)Removes the record with the given key. 
 - 
 
- 
- 
Field Detail
- 
instances
protected static HashMap instances
 
 - 
 
- 
Method Detail
- 
getInstance
public static DBSheetData getInstance(Object dsId)
- Parameters:
 dsId- dsId- Returns:
 - something
 
 
- 
add
public void add(DBSheetView record)
Adds a record.- Parameters:
 record- record
 
- 
get
public DBSheetView get(String key)
Returns the record with the given key, or null if there is no such record.- Parameters:
 key- key- Returns:
 - something
 
 
- 
remove
public void remove(String key)
Removes the record with the given key.- Parameters:
 key- key
 
- 
getRecords
public Iterator getRecords()
- Returns:
 - something
 
 
- 
registerDsListener
public static void registerDsListener()
 
- 
onDsAdded
public void onDsAdded(Object id)
- Specified by:
 onDsAddedin interfaceDsEventListener- Parameters:
 id- id
 
- 
onDsRemoved
public void onDsRemoved(Object id)
- Specified by:
 onDsRemovedin interfaceDsEventListener- Parameters:
 id- id
 
- 
onDsFocused
public void onDsFocused(Object id)
- Specified by:
 onDsFocusedin interfaceDsEventListener- Parameters:
 id- id
 
 - 
 
 -