All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class tc.application.CalendarFrame

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Window
                           |
                           +----java.awt.Frame
                                   |
                                   +----borland.jbcl.control.DecoratedFrame
                                           |
                                           +----tc.application.CalendarFrame

public class CalendarFrame
extends DecoratedFrame
Calendar's frame, which visualizes the current set of TimeSlices in a CalendarPanel.

Version:
0.10, 1998/02/27
Author:
FRED development team, Jukka Viljamaa
See Also:
CalendarClient, LocalCalendar, CalendarPanel, TimeSlice

Variable Index

 o calendar
The client whose frame this is.
 o calendarPanel
The calendar panel of this client frame.
 o gridBagLayout
The layout object of this client frame.
 o password
The password.
 o passwordDialog
The username and password dialog.
 o username
The username.

Constructor Index

 o CalendarFrame(Calendar)
Creates and initilaizes a new frame for the given calendar.

Method Index

 o askUsernameAndPassword()
Shows password dialog.
 o getCalendar()
Returns the client whose frame this is.
 o getCalendarPanel()
Returns the calendar panel.
 o getPassword()
Returns the password.
 o getPasswordDialog()
Returns the username and password dialog.
 o getUsername()
Returns the username.
 o jbInit()
Initializes the user interface components.
 o processWindowEvent(WindowEvent)
On window closing, update account options to database.
 o setCalendar(Calendar)
Sets the client whose frame this is.
 o setCalendarPanel(CalendarPanel)
Sets the calendar panel.
 o setPassword(byte[])
Sets the password.
 o setUsername(String)
Sets the username.

Variables

 o calendar
 private Calendar calendar
The client whose frame this is.

 o calendarPanel
 private CalendarPanel calendarPanel
The calendar panel of this client frame.

 o gridBagLayout
 private GridBagLayout gridBagLayout
The layout object of this client frame.

 o passwordDialog
 private PasswordDialog passwordDialog
The username and password dialog.

 o username
 private String username
The username.

 o password
 private byte password[]
The password.

Constructors

 o CalendarFrame
 public CalendarFrame(Calendar c)
Creates and initilaizes a new frame for the given calendar.

Parameters:
c - The calendar who owns this frame.

Methods

 o getCalendar
 public Calendar getCalendar()
Returns the client whose frame this is.

Returns:
The client whose frame this is.
 o askUsernameAndPassword
 public String askUsernameAndPassword()
Shows password dialog. Returns the username.

Returns:
The username.
 o getUsername
 public String getUsername()
Returns the username.

 o getPassword
 public byte[] getPassword()
Returns the password.

Returns:
The password.
 o jbInit
 void jbInit() throws Exception
Initializes the user interface components.

 o getPasswordDialog
 private PasswordDialog getPasswordDialog()
Returns the username and password dialog.

Returns:
The username and password dialog.
 o getCalendarPanel
 public CalendarPanel getCalendarPanel()
Returns the calendar panel.

Returns:
The calendar panel.
 o processWindowEvent
 protected void processWindowEvent(WindowEvent e)
On window closing, update account options to database.

Overrides:
processWindowEvent in class DecoratedFrame
 o setCalendarPanel
 private void setCalendarPanel(CalendarPanel cp)
Sets the calendar panel.

 o setCalendar
 private void setCalendar(Calendar c)
Sets the client whose frame this is.

Parameters:
c - The client whose frame this is.
 o setUsername
 private void setUsername(String s)
Sets the username.

Parameters:
s - The username.
 o setPassword
 private void setPassword(byte pw[])
Sets the password.

Parameters:
pw - The password.

All Packages  Class Hierarchy  This Package  Previous  Next  Index