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

Method Index

 o addTimeSlices(Vector)
Adds the given time slices to the database.
 o closeDatabase()
Closes the database.
 o getMarkers()
Gets the markers from the database and sets them to the calendar panel.
 o getTimeGrid()
Returns the time grid.
 o getTimeSlices(long, long)
Gets time slices from the database and sets them to the calendar panel.
 o openDatabase()
Asks user identification and opens the database.
 o removeTimeSlices(Vector)
Removes the given time slices from the database.
 o reopenDatabase()
Reopens the database.
 o setStatus(String)
Sets the status string for the client by using the status bar of the calendar panel.
 o updateAccountOptions(AccountOptionsMessage)
Updates the account options to database.
 o updateMarkers(Vector)
Updates the markers to database.

Methods

 o 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.
 o closeDatabase
 public abstract void closeDatabase()
Closes the database.

 o getMarkers
 public abstract boolean getMarkers()
Gets the markers from the database and sets them to the calendar panel.

Returns:
true on success.
 o getTimeGrid
 public abstract TimeGrid getTimeGrid()
Returns the time grid.

 o 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.
 o openDatabase
 public abstract void openDatabase()
Asks user identification and opens the database.

 o 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.
 o reopenDatabase
 public abstract void reopenDatabase()
Reopens the database.

 o setStatus
 public abstract void setStatus(String txt)
Sets the status string for the client by using the status bar of the calendar panel.

 o updateAccountOptions
 public abstract boolean updateAccountOptions(AccountOptionsMessage options)
Updates the account options to database.

Parameters:
options - The new options.
Returns:
true on success.
 o 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