gov.lanl.Pids
Class AddEditTraitsFrame

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Window
                    |
                    +--java.awt.Frame
                          |
                          +--javax.swing.JFrame
                                |
                                +--gov.lanl.Pids.AddEditTraitsFrame
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.event.ActionListener, java.util.EventListener, java.awt.image.ImageObserver, java.awt.MenuContainer, javax.swing.RootPaneContainer, java.io.Serializable, javax.swing.WindowConstants

public class AddEditTraitsFrame
extends javax.swing.JFrame
implements java.awt.event.ActionListener

The class AddEditTraitsFrame represent a dialog that allows the user to either add or edit patient data. Whether to use the dialog as an add or edit dialog can be determined at creation time.

Version:
04/07/99 $Id: AddEditTraitsFrame.java,v 1.3 2002/06/08 17:38:35 dwforslund Exp $
Author:
Torsten Staab
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.JFrame
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled
 
Fields inherited from class java.awt.Frame
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface javax.swing.WindowConstants
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
AddEditTraitsFrame(boolean isAddDlg, java.awt.Component parentWnd, java.lang.String imageDirectory, org.omg.PersonIdService.IdentificationComponent theIDComponent, java.lang.String idOfPatient, org.omg.PersonIdService.Trait[] traitsOfPatient, java.lang.String correlationInfo)
          constructs a frame that allows the user to add or edit patient traits
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          event handler that is used to process pushbutton events caused by the "Save" and "Cancel" pushbuttons
 javax.swing.JPanel createContactPanel()
          creates an input panel for contact information (e.g., Street, City, etc.)
 javax.swing.JPanel createCorrelationPanel()
          creates a panel for visualization of information elsewhere by contacting the correlation manager
 javax.swing.JPanel createFooterPanel()
          Creates the panel that is displayed in the bottom (South) area of the add/edit patient frame.
 javax.swing.JPanel createHeaderPanel()
          Creates the panel that is displayed in the upper (North) area of the add/edit patient frame.
 javax.swing.JPanel createPersonalPanel()
          creates an input panel for the personal information (e.g., name, birth date, etc.)
 javax.swing.JTabbedPane createTabbedCenterPane()
          Creates the tabbed panel that is displayed in the center of the add/edit patient frame.
 void insertPatientData(java.lang.String idOfPatient, org.omg.PersonIdService.Trait[] traitsOfPatient, java.lang.String correlationInfo)
          insert data of an existing patient into the dialog window
 
Methods inherited from class javax.swing.JFrame
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update
 
Methods inherited from class java.awt.Frame
addNotify, finalize, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setIconImage, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated
 
Methods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, hide, isActive, isFocusableWindow, isFocusCycleRoot, isFocused, isShowing, pack, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationRelativeTo, show, toBack, toFront
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, transferFocusBackward, transferFocusDownCycle, 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, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.awt.MenuContainer
getFont, postEvent
 

Constructor Detail

AddEditTraitsFrame

public AddEditTraitsFrame(boolean isAddDlg,
                          java.awt.Component parentWnd,
                          java.lang.String imageDirectory,
                          org.omg.PersonIdService.IdentificationComponent theIDComponent,
                          java.lang.String idOfPatient,
                          org.omg.PersonIdService.Trait[] traitsOfPatient,
                          java.lang.String correlationInfo)
constructs a frame that allows the user to add or edit patient traits

Parameters:
isAddDlg - true means add mode; false means edit mode
parentWnd - reference to the parent window
imageDirectory - location of the image files used in the display
theIDComponent - reference to the PIDS identification component
idOfPatient - the identifier of the patient to be edited or null for adding a new patient
traitsOfPatient - the traits of the patient to be edited or null for adding a new patient
correlationInfo - information on correlated IDs //[HL] added
Method Detail

createHeaderPanel

public javax.swing.JPanel createHeaderPanel()
Creates the panel that is displayed in the upper (North) area of the add/edit patient frame. This panel contains a label with instructions for the user.


createFooterPanel

public javax.swing.JPanel createFooterPanel()
Creates the panel that is displayed in the bottom (South) area of the add/edit patient frame. This panel contains the pushbuttons "Save" and "Cancel".


createTabbedCenterPane

public javax.swing.JTabbedPane createTabbedCenterPane()
Creates the tabbed panel that is displayed in the center of the add/edit patient frame. This pane contains two tabs--Personal and Contact.


createPersonalPanel

public javax.swing.JPanel createPersonalPanel()
creates an input panel for the personal information (e.g., name, birth date, etc.)

Returns:
reference to the created personal information panel

createContactPanel

public javax.swing.JPanel createContactPanel()
creates an input panel for contact information (e.g., Street, City, etc.)

Returns:
reference to the created contact information panel

createCorrelationPanel

public javax.swing.JPanel createCorrelationPanel()
creates a panel for visualization of information elsewhere by contacting the correlation manager

Returns:
reference to the created correlation information panel

insertPatientData

public void insertPatientData(java.lang.String idOfPatient,
                              org.omg.PersonIdService.Trait[] traitsOfPatient,
                              java.lang.String correlationInfo)
insert data of an existing patient into the dialog window

Parameters:
idOfPatient - the identifier of the patient
traitsOfPatient - the patient traits

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
event handler that is used to process pushbutton events caused by the "Save" and "Cancel" pushbuttons

Specified by:
actionPerformed in interface java.awt.event.ActionListener
Parameters:
e - the (pushbutton) event to be processed


Copyright © 2000 University of California. All Rights Reserved.