|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.advjavacalendar.data.DataRegistry
public class DataRegistry
Registry class for register all types of data elements which provide access to calendar items
| Constructor Summary | |
|---|---|
protected |
DataRegistry()
Private constructor |
| Method Summary | |
|---|---|
void |
addDataEventListener(DataEventListener listener)
Register a new listener for changes in the data registry |
void |
delete(CalendarItem item)
Removes an element from the registry |
void |
delete(java.lang.String data,
CalendarItem item)
Removes an element from the registry |
protected void |
fireDataInsertedEvent(CalendarItem item)
The given item has been added to the registry, notify all listeners |
protected void |
fireDataReleoadEvent()
Data in the registry has been completeley reloaded. |
static DataRegistry |
getInstance()
Returns the singleton instance of the registry |
java.util.List<CalendarItem> |
getItems()
Retrieves the collected items over all data elements |
void |
init()
Initialize the elements of the registry |
void |
insert(CalendarItem item)
Creates a new element in the registry |
void |
insert(java.lang.String data,
CalendarItem item)
Creates a new element in the given data registry |
void |
removeDataEventListener(DataEventListener listener)
Unregister a new listener for changes in the data registry |
void |
searchItems(java.lang.String searchString)
Searches an element in the registry. |
void |
start()
Starts all elements in the registry. |
void |
stop()
Stops all elements in the registry. |
void |
update(CalendarItem item)
Changes an element in the registry |
void |
update(java.lang.String data,
CalendarItem item)
Changes an element in the given data registry |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected DataRegistry()
| Method Detail |
|---|
public static DataRegistry getInstance()
public java.util.List<CalendarItem> getItems()
public void addDataEventListener(DataEventListener listener)
listener - public void removeDataEventListener(DataEventListener listener)
listener - public void init()
public void stop()
public void start()
public void searchItems(java.lang.String searchString)
throws DataException
searchString -
DataException
public void delete(CalendarItem item)
throws DataException
item -
DataException
public void insert(CalendarItem item)
throws DataException
item -
DataException
public void update(CalendarItem item)
throws DataException
item -
DataException
public void delete(java.lang.String data,
CalendarItem item)
throws DataException
data - item -
DataException
public void insert(java.lang.String data,
CalendarItem item)
throws DataException
data - item -
DataException
public void update(java.lang.String data,
CalendarItem item)
throws DataException
data - item -
DataExceptionprotected void fireDataInsertedEvent(CalendarItem item)
item - protected void fireDataReleoadEvent()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||