All Packages Class Hierarchy This Package Previous Next Index
Interface tc.application.Calendar
- public interface Calendar
Calendar is the common interface for the calendar logic implementations
(e.g., CalendarClient and LocalCalendar). It defines the interface
for accessing the DatabaseManager.
- Version:
- 0.30, 1998/04/02
- Author:
- FRED development team, Jukka Viljamaa
- See Also:
- CalendarClient, LocalCalendar, DatabaseManager
-
addTimeSlices(Vector)
- Adds the given time slices to the database.
-
closeDatabase()
- Closes the database.
-
getMarkers()
- Gets the markers from the database and sets them to the calendar panel.
-
getTimeGrid()
- Returns the time grid.
-
getTimeSlices(long, long)
- Gets time slices from the database and sets them to the calendar panel.
-
openDatabase()
- Asks user identification and opens the database.
-
removeTimeSlices(Vector)
- Removes the given time slices from the database.
-
reopenDatabase()
- Reopens the database.
-
setStatus(String)
- Sets the status string for the client by using the status bar of the
calendar panel.
-
updateAccountOptions(AccountOptionsMessage)
- Updates the account options to database.
-
updateMarkers(Vector)
- Updates the markers to database.
addTimeSlices
public abstract boolean addTimeSlices(Vector slices)
- Adds the given time slices to the database.
- Parameters:
- slices - A vector of TimeSlice objects.
- Returns:
-
true
on success.
closeDatabase
public abstract void closeDatabase()
- Closes the database.
getMarkers
public abstract boolean getMarkers()
- Gets the markers from the database and sets them to the calendar panel.
- Returns:
-
true
on success.
getTimeGrid
public abstract TimeGrid getTimeGrid()
- Returns the time grid.
getTimeSlices
public abstract boolean getTimeSlices(long start,
long end)
- Gets time slices from the database and sets them to the calendar panel.
- Returns:
-
true
on success.
openDatabase
public abstract void openDatabase()
- Asks user identification and opens the database.
removeTimeSlices
public abstract boolean removeTimeSlices(Vector slices)
- Removes the given time slices from the database.
- Parameters:
- slices - A vector of TimeSlice objects.
- Returns:
-
true
on success.
reopenDatabase
public abstract void reopenDatabase()
- Reopens the database.
setStatus
public abstract void setStatus(String txt)
- Sets the status string for the client by using the status bar of the
calendar panel.
updateAccountOptions
public abstract boolean updateAccountOptions(AccountOptionsMessage options)
- Updates the account options to database.
- Parameters:
- options - The new options.
- Returns:
-
true
on success.
updateMarkers
public abstract boolean updateMarkers(Vector markers)
- Updates the markers to database.
- Parameters:
- options - The new options.
- Returns:
-
true
on success.
All Packages Class Hierarchy This Package Previous Next Index