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
-
calendar
- The client whose frame this is.
-
calendarPanel
- The calendar panel of this client frame.
-
gridBagLayout
- The layout object of this client frame.
-
password
- The password.
-
passwordDialog
- The username and password dialog.
-
username
- The username.
-
CalendarFrame(Calendar)
- Creates and initilaizes a new frame for the given calendar.
-
askUsernameAndPassword()
- Shows password dialog.
-
getCalendar()
- Returns the client whose frame this is.
-
getCalendarPanel()
- Returns the calendar panel.
-
getPassword()
- Returns the password.
-
getPasswordDialog()
- Returns the username and password dialog.
-
getUsername()
- Returns the username.
-
jbInit()
- Initializes the user interface components.
-
processWindowEvent(WindowEvent)
- On window closing, update account options to database.
-
setCalendar(Calendar)
- Sets the client whose frame this is.
-
setCalendarPanel(CalendarPanel)
- Sets the calendar panel.
-
setPassword(byte[])
- Sets the password.
-
setUsername(String)
- Sets the username.
calendar
private Calendar calendar
- The client whose frame this is.
calendarPanel
private CalendarPanel calendarPanel
- The calendar panel of this client frame.
gridBagLayout
private GridBagLayout gridBagLayout
- The layout object of this client frame.
passwordDialog
private PasswordDialog passwordDialog
- The username and password dialog.
username
private String username
- The username.
password
private byte password[]
- The password.
CalendarFrame
public CalendarFrame(Calendar c)
- Creates and initilaizes a new frame for the given calendar.
- Parameters:
- c - The calendar who owns this frame.
getCalendar
public Calendar getCalendar()
- Returns the client whose frame this is.
- Returns:
- The client whose frame this is.
askUsernameAndPassword
public String askUsernameAndPassword()
- Shows password dialog. Returns the username.
- Returns:
- The username.
getUsername
public String getUsername()
- Returns the username.
getPassword
public byte[] getPassword()
- Returns the password.
- Returns:
- The password.
jbInit
void jbInit() throws Exception
- Initializes the user interface components.
getPasswordDialog
private PasswordDialog getPasswordDialog()
- Returns the username and password dialog.
- Returns:
- The username and password dialog.
getCalendarPanel
public CalendarPanel getCalendarPanel()
- Returns the calendar panel.
- Returns:
- The calendar panel.
processWindowEvent
protected void processWindowEvent(WindowEvent e)
- On window closing, update account options to database.
- Overrides:
- processWindowEvent in class DecoratedFrame
setCalendarPanel
private void setCalendarPanel(CalendarPanel cp)
- Sets the calendar panel.
setCalendar
private void setCalendar(Calendar c)
- Sets the client whose frame this is.
- Parameters:
- c - The client whose frame this is.
setUsername
private void setUsername(String s)
- Sets the username.
- Parameters:
- s - The username.
setPassword
private void setPassword(byte pw[])
- Sets the password.
- Parameters:
- pw - The password.
All Packages Class Hierarchy This Package Previous Next Index