wt.clients.calendar
Class CalendarApplet

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjava.awt.Panel
              extended byjava.applet.Applet
                  extended bywt.clients.calendar.CalendarApplet
All Implemented Interfaces:
Accessible, EventListener, ImageObserver, ItemListener, MenuContainer, Serializable

public class CalendarApplet
extends Applet
implements ItemListener

See Also:
Serialized Form

Nested Class Summary
(package private)  class CalendarApplet.DelegateIndefinitelyThread
          Delegate Indefinitely
(package private)  class CalendarApplet.DelegateThread
          Delegate
(package private)  class CalendarApplet.InitializeThread
          Initialization.
(package private)  class CalendarApplet.MarkNonWorkingThread
          Mark NonWorking
(package private)  class CalendarApplet.MarkWorkingThread
          Mark Working
(package private)  class CalendarApplet.ResetAllThread
          Reset All
(package private)  class CalendarApplet.ResetThread
          Reset
(package private)  class CalendarApplet.SymAction
           
(package private)  class CalendarApplet.SymItem
           
(package private)  class CalendarApplet.SymPropertyChange
           
 
Nested classes inherited from class java.applet.Applet
Applet.AccessibleApplet
 
Nested classes inherited from class java.awt.Panel
Panel.AccessibleAWTPanel
 
Nested classes inherited from class java.awt.Container
Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
Field Summary
(package private)  Panel actionPanel
           
(package private)  boolean calcDefaults
           
(package private)  CalendarBean calendar
           
(package private)  WTPrincipalReference calendarSupervisor
           
(package private)  Panel calenderChooserPanel
           
(package private)  WTPrincipalReference currentCalendarOwner
           
(package private)  WTPrincipalReference currentUser
           
(package private)  Button delegateButton
           
(package private)  Button delegateIndefButton
           
(package private)  boolean foundAdmin
           
(package private)  boolean foundSuper
           
(package private)  CheckboxGroup Group1
           
(package private)  Button helpButton
           
(package private) static HelpSystem helpSystem
           
private static Object initSync
           
(package private)  boolean isAdmin
           
(package private)  boolean isSupervisor
           
(package private)  Checkbox myCalendarRadioButton
           
(package private)  Button nonWorkingButton
           
(package private)  Panel panel1
           
(package private)  PrincipalSelectionPanel participantSelector
           
(package private)  ResourceBundle rb
           
(package private)  Button resetAllButton
           
(package private)  Button resetButton
           
(package private) static String RESOURCE
           
(package private) static long SIX_MONTHS
           
(package private)  CalendarMonth systemCalendar
           
(package private)  WTPrincipalReference systemCalendarOwner
           
(package private)  Checkbox systemCalendarRadioButton
           
(package private)  ThreadGroup threadGroup
           
(package private)  CalendarMonth userCalendar
           
(package private)  Checkbox userCalendarRadioButton
           
(package private)  Button workingButton
           
 
Fields inherited from class java.applet.Applet
 
Fields inherited from class java.awt.Panel
 
Fields inherited from class java.awt.Container
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
CalendarApplet()
           
 
Method Summary
(package private)  void delegateButton_ActionPerformed(ActionEvent event)
           
(package private)  void delegateIndefButton_ActionPerformed(ActionEvent event)
           
 void destroy()
          Called when applet is destroyed.
static void displayException(Component component, Throwable exception)
          Displays and exception.
private  Frame getParentFrame()
           
(package private)  long getSelectedEndTime()
           
(package private)  long getSelectedStartTime()
           
(package private)  void helpButton_ActionPerformed(ActionEvent event)
           
 void init()
           
private  boolean isCurrentUserAdministrator()
           
private  boolean isCurrentUsersCalendar()
           
private  boolean isCurrentUserSupervisor()
           
 void itemStateChanged(ItemEvent event)
           
(package private)  void myCalendarRadioButton_ItemStateChanged(ItemEvent event)
           
(package private)  void nonWorkingButton_ActionPerformed(ActionEvent event)
           
(package private)  void participantSelector_propertyChange(PropertyChangeEvent event)
           
(package private)  void resetAllButton_ActionPerformed(ActionEvent event)
           
(package private)  void resetButton_ActionPerformed(ActionEvent event)
           
private  void setBusy(boolean busy)
          Set the applet as busy.
private  void showHelp()
          Help
 void start()
          Called when applet starts.
 void stop()
          Called when applet stops.
(package private)  void systemCalendarRadioButton_ItemStateChanged(ItemEvent event)
           
private  void updateButtons()
          Updates the buttons given the selected templates.
(package private)  void userCalendarRadioButton_ItemStateChanged(ItemEvent event)
           
(package private)  void workingButton_ActionPerformed(ActionEvent event)
           
 
Methods inherited from class java.applet.Applet
getAccessibleContext, getAppletContext, getAppletInfo, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, getParameterInfo, isActive, newAudioClip, play, play, resize, resize, setStub, showStatus
 
Methods inherited from class java.awt.Panel
addNotify
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, setLayout, transferFocusBackward, transferFocusDownCycle, update, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RESOURCE

static final String RESOURCE
See Also:
Constant Field Values

SIX_MONTHS

static final long SIX_MONTHS
See Also:
Constant Field Values

initSync

private static Object initSync

rb

ResourceBundle rb

threadGroup

ThreadGroup threadGroup

currentUser

WTPrincipalReference currentUser

currentCalendarOwner

WTPrincipalReference currentCalendarOwner

systemCalendarOwner

WTPrincipalReference systemCalendarOwner

calendarSupervisor

WTPrincipalReference calendarSupervisor

userCalendar

CalendarMonth userCalendar

systemCalendar

CalendarMonth systemCalendar

calcDefaults

boolean calcDefaults

helpSystem

static HelpSystem helpSystem

foundAdmin

boolean foundAdmin

isAdmin

boolean isAdmin

foundSuper

boolean foundSuper

isSupervisor

boolean isSupervisor

calenderChooserPanel

Panel calenderChooserPanel

myCalendarRadioButton

Checkbox myCalendarRadioButton

Group1

CheckboxGroup Group1

panel1

Panel panel1

userCalendarRadioButton

Checkbox userCalendarRadioButton

participantSelector

PrincipalSelectionPanel participantSelector

systemCalendarRadioButton

Checkbox systemCalendarRadioButton

calendar

CalendarBean calendar

actionPanel

Panel actionPanel

workingButton

Button workingButton

nonWorkingButton

Button nonWorkingButton

delegateButton

Button delegateButton

delegateIndefButton

Button delegateIndefButton

resetButton

Button resetButton

resetAllButton

Button resetAllButton

helpButton

Button helpButton
Constructor Detail

CalendarApplet

public CalendarApplet()
Method Detail

showHelp

private void showHelp()
Help


getSelectedStartTime

long getSelectedStartTime()

getSelectedEndTime

long getSelectedEndTime()

itemStateChanged

public void itemStateChanged(ItemEvent event)
Specified by:
itemStateChanged in interface ItemListener

isCurrentUserAdministrator

private boolean isCurrentUserAdministrator()

isCurrentUserSupervisor

private boolean isCurrentUserSupervisor()

isCurrentUsersCalendar

private boolean isCurrentUsersCalendar()

updateButtons

private void updateButtons()
Updates the buttons given the selected templates.


setBusy

private void setBusy(boolean busy)
Set the applet as busy.


displayException

public static void displayException(Component component,
                                    Throwable exception)
Displays and exception.


getParentFrame

private Frame getParentFrame()

start

public void start()
Called when applet starts.


stop

public void stop()
Called when applet stops.


destroy

public void destroy()
Called when applet is destroyed.


init

public void init()

workingButton_ActionPerformed

void workingButton_ActionPerformed(ActionEvent event)

nonWorkingButton_ActionPerformed

void nonWorkingButton_ActionPerformed(ActionEvent event)

delegateButton_ActionPerformed

void delegateButton_ActionPerformed(ActionEvent event)

delegateIndefButton_ActionPerformed

void delegateIndefButton_ActionPerformed(ActionEvent event)

resetButton_ActionPerformed

void resetButton_ActionPerformed(ActionEvent event)

resetAllButton_ActionPerformed

void resetAllButton_ActionPerformed(ActionEvent event)

helpButton_ActionPerformed

void helpButton_ActionPerformed(ActionEvent event)

participantSelector_propertyChange

void participantSelector_propertyChange(PropertyChangeEvent event)

myCalendarRadioButton_ItemStateChanged

void myCalendarRadioButton_ItemStateChanged(ItemEvent event)

systemCalendarRadioButton_ItemStateChanged

void systemCalendarRadioButton_ItemStateChanged(ItemEvent event)

userCalendarRadioButton_ItemStateChanged

void userCalendarRadioButton_ItemStateChanged(ItemEvent event)