|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.borg.model.Model
net.sf.borg.model.CheckListModel
public class CheckListModel
The CheckList Model manages the CheckList Entities. CheckLists are keyed by a name. CheckLists contain simple text and have stayed simple to be able to sync with the simple checkList functionality of a Palm Pilot.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class net.sf.borg.model.Model |
|---|
Model.ChangeEvent, Model.Listener |
| Method Summary | |
|---|---|
void |
delete(String name,
boolean undo)
Delete a checkList by name |
void |
export(Writer fw)
Export to XML |
CheckList |
getCheckList(String name)
Gets a checkList by name. |
Collection<CheckList> |
getCheckLists()
Gets all checkLists. |
CheckListDB |
getDB()
Gets the dB. |
String |
getExportName()
get the root XML element name for this model's XML representation |
String |
getInfo()
return user readable information about the model |
Collection<String> |
getNames()
Gets all checkList names. |
static CheckListModel |
getReference()
Gets the singleton. |
void |
importXml(InputStream is)
Import xml. |
void |
refresh()
Refresh listeners |
void |
saveCheckList(CheckList checkList)
Save a checkList. |
void |
saveCheckList(CheckList checkList,
boolean undo)
Save a checkList. |
| Methods inherited from class net.sf.borg.model.Model |
|---|
addListener, getExistingModels, refreshListeners, refreshListeners, remove, removeListener, removeListeners, sync, syncModels |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static CheckListModel getReference()
public CheckListDB getDB()
public Collection<CheckList> getCheckLists()
throws Exception
Exception - the exception
public Collection<String> getNames()
throws Exception
Exception - the exception
public void delete(String name,
boolean undo)
name - the checkList nameundo - true if we are executing an undopublic void saveCheckList(CheckList checkList)
checkList - the checkList
public void saveCheckList(CheckList checkList,
boolean undo)
checkList - the checkListundo - true if we are executing an undo
public CheckList getCheckList(String name)
throws Exception
name - the checkList name
Exception - the exception
public void export(Writer fw)
throws Exception
export in class Modelfw - the writer to write XML to
Exception - the exception
public void importXml(InputStream is)
throws Exception
importXml in class Modelis - the input stream containing the XML
Exception - the exceptionpublic void refresh()
public String getExportName()
Model
getExportName in class Model
public String getInfo()
throws Exception
Model
getInfo in class ModelException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||