|
Parkinson Disease Database | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
spirals.motol.gui.RemovablePanel
spirals.motol.gui.VisitPanel
public class VisitPanel
Panel wit information about visit of pacient
Copyright: Copyright (c) 2005 Jan Dolezel
Company: ÈVUT FEL, Prague
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 |
---|
private MainFrame mf
private Visit visit
private java.awt.event.KeyListener changeAction
private javax.swing.JPanel visitPanel
private javax.swing.JPanel dataPanel
private javax.swing.JFormattedTextField visitDate
private javax.swing.JEditorPane diagnose
private javax.swing.JEditorPane memo
private javax.swing.JCheckBox valid
private MyCombo restTremorLeft
private MyCombo restTremorRight
private MyCombo posturalTremorLeft
private MyCombo posturalTremorRight
private MyCombo actionTremorLeft
private MyCombo actionTremorRight
private MyCombo openingLeft
private MyCombo openingRight
private MyCombo tappingLeft
private MyCombo tappingRight
private javax.swing.JList dataList
private javax.swing.JButton changeButton
private javax.swing.JButton newButton
private javax.swing.JButton editButton
private javax.swing.JButton showButton
Constructor Detail |
---|
public VisitPanel(MainFrame frame, Visit visit, boolean changable)
frame
- MainFramevisit
- Visitchangable
- user can change fieldsMethod Detail |
---|
private void install()
private void createDiagnose()
private void place(int row, javax.swing.JComponent c1, javax.swing.JComponent c2)
row
- row number in parent componentc1
- first component to placec2
- second component to placeprivate void place(int row, javax.swing.JComponent c1, javax.swing.JComponent c2, int space)
row
- row number in parent componentc1
- first component to placec2
- second component to placespace
- pixels of gapprivate void place(int row, javax.swing.JComponent c1, javax.swing.JComponent c2, javax.swing.JComponent c3)
row
- row number in parent componentc1
- first component to placec2
- second component to placec3
- third component to placeprivate void createData()
private void setChangable(boolean changable)
protected void remove()
remove
in class RemovablePanel
private void saveData()
|
Parkinson Disease Database | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |