Parkinson Disease Database

spirals.motol.gui
Class VisitPanel

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JPanel
                  extended by spirals.motol.gui.RemovablePanel
                      extended by spirals.motol.gui.VisitPanel
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible

public class VisitPanel
extends RemovablePanel

Panel wit information about visit of pacient

Copyright: Copyright (c) 2005 Jan Dolezel

Company: ÈVUT FEL, Prague

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
 
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
private  MyCombo actionTremorLeft
          option for rest action in left hand
private  MyCombo actionTremorRight
          option for rest action in right hand
private  javax.swing.JList dataList
          list of data for visit
private  javax.swing.JPanel dataPanel
          panel with information about data
private  javax.swing.JEditorPane diagnose
          text box for diagnose
private  javax.swing.JButton editButton
          edit data button
private  java.awt.event.KeyListener changeAction
          listen for key events on form fields
private  javax.swing.JButton changeButton
          change record button
private  javax.swing.JEditorPane memo
          text box for comment
private  MainFrame mf
          main frame
private  javax.swing.JButton newButton
          new data button
private  MyCombo openingLeft
          option for opening of left hand
private  MyCombo openingRight
          option for opening of right hand
private  MyCombo posturalTremorLeft
          option for rest postural in left hand
private  MyCombo posturalTremorRight
          option for rest postural in right hand
private  MyCombo restTremorLeft
          option for rest tremor in left hand
private  MyCombo restTremorRight
          option for rest tremor in right hand
private  javax.swing.JButton showButton
          show data button
private  MyCombo tappingLeft
          option for tapping of left hand
private  MyCombo tappingRight
          option for tapping of right hand
private  javax.swing.JCheckBox valid
          check box for valid diagnose
private  Visit visit
          visit for this panel
private  javax.swing.JFormattedTextField visitDate
          formatted text field for visit date
private  javax.swing.JPanel visitPanel
          panel with information about visit
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
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
VisitPanel(MainFrame frame, Visit visit, boolean changable)
          create VisitPanel for Visit
 
Method Summary
private  void createData()
          create data list panel
private  void createDiagnose()
          create diagnose information panel
private  void install()
          lay out panel
private  void place(int row, javax.swing.JComponent c1, javax.swing.JComponent c2)
          place two components in gridbag layout on main panel
private  void place(int row, javax.swing.JComponent c1, javax.swing.JComponent c2, int space)
          place two components in gridbag layout on main panel with gap above
private  void place(int row, javax.swing.JComponent c1, javax.swing.JComponent c2, javax.swing.JComponent c3)
          place three components in gridbag layout on main panel
protected  void remove()
          called when panel is removed and changed
private  void saveData()
          store visit to disk
private  void setChangable(boolean changable)
          set form fields and button changable
 
Methods inherited from class spirals.motol.gui.RemovablePanel
hasChanged, notifyRemoved, setChanged
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintComponent, paintChildren, paintImmediately, paintImmediately, print, printAll, printBorder, printComponent, printChildren, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, checkImage, checkImage, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, 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

mf

private MainFrame mf
main frame


visit

private Visit visit
visit for this panel


changeAction

private java.awt.event.KeyListener changeAction
listen for key events on form fields


visitPanel

private javax.swing.JPanel visitPanel
panel with information about visit


dataPanel

private javax.swing.JPanel dataPanel
panel with information about data


visitDate

private javax.swing.JFormattedTextField visitDate
formatted text field for visit date


diagnose

private javax.swing.JEditorPane diagnose
text box for diagnose


memo

private javax.swing.JEditorPane memo
text box for comment


valid

private javax.swing.JCheckBox valid
check box for valid diagnose


restTremorLeft

private MyCombo restTremorLeft
option for rest tremor in left hand


restTremorRight

private MyCombo restTremorRight
option for rest tremor in right hand


posturalTremorLeft

private MyCombo posturalTremorLeft
option for rest postural in left hand


posturalTremorRight

private MyCombo posturalTremorRight
option for rest postural in right hand


actionTremorLeft

private MyCombo actionTremorLeft
option for rest action in left hand


actionTremorRight

private MyCombo actionTremorRight
option for rest action in right hand


openingLeft

private MyCombo openingLeft
option for opening of left hand


openingRight

private MyCombo openingRight
option for opening of right hand


tappingLeft

private MyCombo tappingLeft
option for tapping of left hand


tappingRight

private MyCombo tappingRight
option for tapping of right hand


dataList

private javax.swing.JList dataList
list of data for visit


changeButton

private javax.swing.JButton changeButton
change record button


newButton

private javax.swing.JButton newButton
new data button


editButton

private javax.swing.JButton editButton
edit data button


showButton

private javax.swing.JButton showButton
show data button

Constructor Detail

VisitPanel

public VisitPanel(MainFrame frame,
                  Visit visit,
                  boolean changable)
create VisitPanel for Visit

Parameters:
frame - MainFrame
visit - Visit
changable - user can change fields
Method Detail

install

private void install()
lay out panel


createDiagnose

private void createDiagnose()
create diagnose information panel


place

private void place(int row,
                   javax.swing.JComponent c1,
                   javax.swing.JComponent c2)
place two components in gridbag layout on main panel

Parameters:
row - row number in parent component
c1 - first component to place
c2 - second component to place

place

private void place(int row,
                   javax.swing.JComponent c1,
                   javax.swing.JComponent c2,
                   int space)
place two components in gridbag layout on main panel with gap above

Parameters:
row - row number in parent component
c1 - first component to place
c2 - second component to place
space - pixels of gap

place

private void place(int row,
                   javax.swing.JComponent c1,
                   javax.swing.JComponent c2,
                   javax.swing.JComponent c3)
place three components in gridbag layout on main panel

Parameters:
row - row number in parent component
c1 - first component to place
c2 - second component to place
c3 - third component to place

createData

private void createData()
create data list panel


setChangable

private void setChangable(boolean changable)
set form fields and button changable


remove

protected void remove()
called when panel is removed and changed

Specified by:
remove in class RemovablePanel

saveData

private void saveData()
store visit to disk


Parkinson Disease Database