org.rr0.is.presentation.view.report.applet
Class BehaviorPanel

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Panel
                    |
                    +--org.rr0.is.presentation.view.report.applet.BehaviorPanel

public class BehaviorPanel
extends Panel

Author:
Jerôme Beau
Version: 29 janv. 2004 20:19:30

Field Summary
 private UFOControllercontroller
           
 private LabeldayOfWeekLabel
          Maximum allowed year.
 private TextFielddayTextField
           
 private StringfullDate
           
 private TextFieldhourTextField
           
 private ResourceBundlemessagesBundle
           
 private TextFieldminutesTextField
           
 private TextFieldmonthTextField
           
 private PolygonplayShape
           
 private DrawShapeButtonrecordButton
           
 private CircleShaperecordShape
           
 private PolygonButtonrunButton
           
 private TextFieldsecondsTextField
           
 private PolygonButtonstopButton
           
 private PolygonstopShape
           
 private ScrollbartimeCursor
           
 private TextFieldyearTextField
           

Fields inherited from class java.awt.Component
TOP_ALIGNMENT, CENTER_ALIGNMENT, BOTTOM_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT

Constructor Summary
BehaviorPanel(UFOController controller)
           

Method Summary
 private voiddisplayTime(Calendar currentTime)
           
 (package private) voidenableToSetTime(boolean flag)
           
 private PolygongetPlayShape()
           
 private PolygongetStopShape()
           
 private intinputTextField(TextField textfield, int min, int max)
           
 private voidplay(boolean on)
           
 private voidsetTime(GregorianCalendar newCalendar, boolean updateController)
           

Methods inherited from class java.awt.Panel
addNotify, getAccessibleContext

Methods inherited from class java.awt.Container
getComponentCount, countComponents, getComponent, getComponents, getInsets, insets, add, add, add, add, add, addImpl, remove, remove, removeAll, getLayout, setLayout, doLayout, layout, invalidate, validate, validateTree, setFont, getPreferredSize, preferredSize, getMinimumSize, minimumSize, getMaximumSize, getAlignmentX, getAlignmentY, paint, update, print, paintComponents, printComponents, addContainerListener, removeContainerListener, getListeners, processEvent, processContainerEvent, deliverEvent, getComponentAt, locate, getComponentAt, findComponentAt, findComponentAt, removeNotify, isAncestorOf, paramString, list, list

Methods inherited from class java.awt.Component
getName, setName, getParent, getPeer, setDropTarget, getDropTarget, getGraphicsConfiguration, getTreeLock, getToolkit, isValid, isDisplayable, isVisible, isShowing, isEnabled, setEnabled, enable, enable, disable, isDoubleBuffered, enableInputMethods, setVisible, show, show, hide, getForeground, setForeground, getBackground, setBackground, getFont, getLocale, setLocale, getColorModel, getLocation, getLocationOnScreen, location, setLocation, move, setLocation, getSize, size, setSize, resize, setSize, resize, getBounds, bounds, setBounds, reshape, setBounds, getX, getY, getWidth, getHeight, getBounds, getSize, getLocation, isOpaque, isLightweight, getGraphics, getFontMetrics, setCursor, getCursor, paintAll, repaint, repaint, repaint, repaint, printAll, imageUpdate, createImage, createImage, prepareImage, prepareImage, checkImage, checkImage, contains, inside, contains, dispatchEvent, postEvent, addComponentListener, removeComponentListener, addFocusListener, removeFocusListener, addHierarchyListener, removeHierarchyListener, addHierarchyBoundsListener, removeHierarchyBoundsListener, addKeyListener, removeKeyListener, addMouseListener, removeMouseListener, addMouseMotionListener, removeMouseMotionListener, addInputMethodListener, removeInputMethodListener, getInputMethodRequests, getInputContext, enableEvents, disableEvents, coalesceEvents, processComponentEvent, processFocusEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processInputMethodEvent, processHierarchyEvent, processHierarchyBoundsEvent, handleEvent, mouseDown, mouseDrag, mouseUp, mouseMove, mouseEnter, mouseExit, keyDown, keyUp, action, gotFocus, lostFocus, isFocusTraversable, requestFocus, transferFocus, nextFocus, hasFocus, add, remove, toString, list, list, list, addPropertyChangeListener, removePropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, firePropertyChange, setComponentOrientation, getComponentOrientation

Methods inherited from class java.lang.Object
getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize

Field Detail

controller

private UFOController controller

dayOfWeekLabel

private Label dayOfWeekLabel
Maximum allowed year.
Required as we don't allow "future" sightings.

dayTextField

private TextField dayTextField

fullDate

private String fullDate

hourTextField

private TextField hourTextField

messagesBundle

private ResourceBundle messagesBundle

minutesTextField

private TextField minutesTextField

monthTextField

private TextField monthTextField

playShape

private Polygon playShape

recordButton

private DrawShapeButton recordButton

recordShape

private CircleShape recordShape

runButton

private PolygonButton runButton

secondsTextField

private TextField secondsTextField

stopButton

private PolygonButton stopButton

stopShape

private Polygon stopShape

timeCursor

private Scrollbar timeCursor

yearTextField

private TextField yearTextField
Constructor Detail

BehaviorPanel

public BehaviorPanel(UFOController controller)
Method Detail

displayTime

private void displayTime(Calendar currentTime)

enableToSetTime

void enableToSetTime(boolean flag)

getPlayShape

private Polygon getPlayShape()

getStopShape

private Polygon getStopShape()

inputTextField

private int inputTextField(TextField textfield, int min, int max)

play

private void play(boolean on)

setTime

private void setTime(GregorianCalendar newCalendar, boolean updateController)

Association Links

to Class java.util.ResourceBundle

to Class java.awt.TextField

to Class java.awt.TextField

to Class java.awt.TextField

to Class java.awt.TextField

to Class java.awt.TextField

to Class java.awt.TextField

to Class org.rr0.is.presentation.view.report.applet.PolygonButton

to Class java.awt.Scrollbar

to Class java.lang.String

to Class java.awt.Label

Maximum allowed year.
Required as we don't allow "future" sightings.

to Class org.rr0.is.presentation.view.report.applet.ufo.UFOController

to Class java.awt.Polygon

to Class java.awt.Polygon

to Class org.rr0.is.presentation.view.report.applet.ufo.CircleShape

to Class org.rr0.is.presentation.view.report.applet.DrawShapeButton

to Class org.rr0.is.presentation.view.report.applet.PolygonButton