org.ferris.journal.gui.model
Interface Model

All Known Implementing Classes:
ModelForApplication, ModelForVisualEditor

public interface Model


Method Summary
 Model deleteJournal(Journal deleteMe)
          User wants to remove data of an existing journal
 Model deleteJournalEntry(JournalEntry j)
          Delete JournalEntry
 Model editJournal(Journal editMe)
          User wants to edit data of an existing journal
 Model editJournalEntry(JournalEntry entry)
          Edit this journal entry
 Account getAccount()
          Get the account logged in, null if not logged in or if login failed.
 List<Journal> getActiveJournals()
          Get all the active journals for the account
 List<Journal> getAllJournals()
          Get all the journals for the account
 Model insertJournal(Journal j)
          Add Journal to the list
 Model insertJournalEntry(JournalEntry je)
          Created JournalEntry
 Model newJournal()
          User wants to enter data for a new journal
 Model newJournalEntry()
          New JournalEntry
 Model performingOperation(String description)
          Application is performing these operations which the model can log, store, etc., and notify it's observers.
 Model registerObserver(JournalEntryObserver observer)
          Register JournalEntryObserver
 Model registerObserver(JournalEntrySearchObserver observer)
          Register JournalEntrySearchObserver
 Model registerObserver(JournalObserver observer)
          Register JournalObserver
 Model registerObserver(OperationObserver observer)
          Register OperationObserver
 Model registerObserver(ReleaseObserver observer)
          Register ReleaseObserver
 Model release()
          Model will no longer be used, typically this is done when the program is exited.
 JournalEntryObserver removeObserver(JournalEntryObserver observer)
          Remove JournalEntryObserver
 JournalEntrySearchObserver removeObserver(JournalEntrySearchObserver observer)
          Remove JournalEntrySearchObserver
 JournalObserver removeObserver(JournalObserver observer)
          Remove JournalObserver
 OperationObserver removeObserver(OperationObserver observer)
          Remove OperationObserver
 ReleaseObserver removeObserver(ReleaseObserver observer)
          Remove ReleaseObserver
 Model setAccount(Account iAmLoggedIn)
          Store the account
 Model setJournalEntrySearchResults(List<JournalEntry> searchResults)
          Journal entries matching search criteria are found.
 Model setJournals(List<Journal> allJournals)
          Store list of all journals
 Model updateJournal(Journal j)
          Update Journal in the list
 Model updateJournalEntry(JournalEntry je)
          Updated JournalEntry
 

Method Detail

release

Model release()
Model will no longer be used, typically this is done when the program is exited.

Returns:
Reference to this instance.

performingOperation

Model performingOperation(String description)
Application is performing these operations which the model can log, store, etc., and notify it's observers.


setAccount

Model setAccount(Account iAmLoggedIn)
Store the account


getAccount

Account getAccount()
Get the account logged in, null if not logged in or if login failed.


getAllJournals

List<Journal> getAllJournals()
Get all the journals for the account


getActiveJournals

List<Journal> getActiveJournals()
Get all the active journals for the account


setJournals

Model setJournals(List<Journal> allJournals)
Store list of all journals


insertJournal

Model insertJournal(Journal j)
Add Journal to the list


updateJournal

Model updateJournal(Journal j)
Update Journal in the list


newJournal

Model newJournal()
User wants to enter data for a new journal


editJournal

Model editJournal(Journal editMe)
User wants to edit data of an existing journal


deleteJournal

Model deleteJournal(Journal deleteMe)
User wants to remove data of an existing journal


insertJournalEntry

Model insertJournalEntry(JournalEntry je)
Created JournalEntry


updateJournalEntry

Model updateJournalEntry(JournalEntry je)
Updated JournalEntry


newJournalEntry

Model newJournalEntry()
New JournalEntry


deleteJournalEntry

Model deleteJournalEntry(JournalEntry j)
Delete JournalEntry


setJournalEntrySearchResults

Model setJournalEntrySearchResults(List<JournalEntry> searchResults)
Journal entries matching search criteria are found.


editJournalEntry

Model editJournalEntry(JournalEntry entry)
Edit this journal entry


registerObserver

Model registerObserver(ReleaseObserver observer)
Register ReleaseObserver

Returns:
Reference to this instance.

removeObserver

ReleaseObserver removeObserver(ReleaseObserver observer)
Remove ReleaseObserver

Returns:
Reference to observer removed or null if observer not registered

registerObserver

Model registerObserver(OperationObserver observer)
Register OperationObserver

Returns:
Reference to this instance.

removeObserver

OperationObserver removeObserver(OperationObserver observer)
Remove OperationObserver

Returns:
Reference to observer removed or null if observer not registered

registerObserver

Model registerObserver(JournalObserver observer)
Register JournalObserver

Returns:
Reference to this instance.

removeObserver

JournalObserver removeObserver(JournalObserver observer)
Remove JournalObserver

Returns:
Reference to observer removed or null if observer not registered

registerObserver

Model registerObserver(JournalEntryObserver observer)
Register JournalEntryObserver

Returns:
Reference to this instance.

removeObserver

JournalEntryObserver removeObserver(JournalEntryObserver observer)
Remove JournalEntryObserver

Returns:
Reference to observer removed or null if observer not registered

registerObserver

Model registerObserver(JournalEntrySearchObserver observer)
Register JournalEntrySearchObserver

Returns:
Reference to this instance.

removeObserver

JournalEntrySearchObserver removeObserver(JournalEntrySearchObserver observer)
Remove JournalEntrySearchObserver

Returns:
Reference to observer removed or null if observer not registered


Copyright © March 15, 2008-2011 The Ferris Foundation. All Rights Reserved.