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 void
add(DBSheetView record)
Adds a record.DBSheetView
get(String key)
Returns the record with the given key, or null if there is no such record.static DBSheetData
getInstance(Object dsId)
Iterator
getRecords()
void
onDsAdded(Object id)
void
onDsFocused(Object id)
void
onDsRemoved(Object id)
static void
registerDsListener()
void
remove(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:
onDsAdded
in interfaceDsEventListener
- Parameters:
id
- id
-
onDsRemoved
public void onDsRemoved(Object id)
- Specified by:
onDsRemoved
in interfaceDsEventListener
- Parameters:
id
- id
-
onDsFocused
public void onDsFocused(Object id)
- Specified by:
onDsFocused
in interfaceDsEventListener
- Parameters:
id
- id
-
-