public class Observation_ID_Dialog
extends javax.swing.JDialog
implements java.awt.event.ActionListener, javax.swing.event.ChangeListener, java.awt.event.FocusListener, java.beans.PropertyChangeListener
Observation_ID
.
To use this, first instantiate it. Then use the showDialog methods to display it. Their return value will indicate how it was dismissed.
Observation_ID
,
Serialized Formjavax.swing.JDialog.AccessibleJDialog
java.awt.Dialog.AccessibleAWTDialog, java.awt.Dialog.ModalExclusionType, java.awt.Dialog.ModalityType
java.awt.Window.AccessibleAWTWindow, java.awt.Window.Type
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_TITLE
The default title for the dialog window.
|
static java.lang.String |
ID
Class identification name with source code version and date.
|
accessibleContext, rootPane, rootPaneCheckingEnabled
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
Constructor and Description |
---|
Observation_ID_Dialog()
Creates a modal Observation_ID_Dialog.
|
Observation_ID_Dialog(java.awt.Component component)
Creates a modal Observation_ID_Dialog with an owner frame derived
from the indicated component.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent event)
Receives
ActionEvent s. |
void |
focusGained(java.awt.event.FocusEvent event)
Receives
FocusEvent s. |
void |
focusLost(java.awt.event.FocusEvent event)
Receives
FocusEvent s. |
static void |
main(java.lang.String[] args)
Invokes a standalone test stub of the observation ID dialog in its own
thread.
|
void |
propertyChange(java.beans.PropertyChangeEvent event) |
java.lang.String |
showDialog(java.awt.Component location_component,
java.lang.String observation_id)
Displays the Observation_ID_Dialog with the specified location
component and initial observation ID.
|
java.lang.String |
showDialog(java.awt.Component location_component,
java.lang.String title,
java.lang.String observation_id)
Displays the Observation_ID_Dialog with the specified location
component, title, and initial observation ID.
|
java.lang.String |
showDialog(java.lang.String observation_id)
Displays the Observation_ID_Dialog with the specified initial
observation ID.
|
java.lang.String |
showDialog(java.lang.String title,
java.lang.String observation_id)
Displays the Observation_ID_Dialog with the specified title
and initial observation ID.
|
void |
stateChanged(javax.swing.event.ChangeEvent event)
Receives
ChangeEvent s. |
addImpl, createRootPane, dialogInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update
addNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setBackground, setModal, setModalityType, setOpacity, setResizable, setShape, setTitle, setUndecorated, setVisible, show, toBack
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeNotify, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImage, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, toFront
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTree
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, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, 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, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, 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, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public static final java.lang.String ID
public static final java.lang.String DEFAULT_TITLE
public Observation_ID_Dialog(java.awt.Component component)
If component is null, a shared, hidden frame is set as the owner of the dialog.
component
- the component that identifies the owner frame of this
Observation_ID_Dialog.public Observation_ID_Dialog()
public void actionPerformed(java.awt.event.ActionEvent event)
ActionEvent
s. This method is invoked when an action occurs
within this Observation_ID_Dialog object. This method invokes
additional methods appropriate to the source of the action event.actionPerformed
in interface java.awt.event.ActionListener
event
- the action event that invoked this method.public void stateChanged(javax.swing.event.ChangeEvent event)
ChangeEvent
s. This method is invoked when an interface
component's state is changed. If the component whose state changed is the
time setting spinner text field, the observation ID value is updated with
the new information contained in that field. If the component is the tabbed
pane, the value of the observation ID is updated.stateChanged
in interface javax.swing.event.ChangeListener
event
- the change event that invoked this method.public void focusGained(java.awt.event.FocusEvent event)
FocusEvent
s. This method is invoked when an interface
component gains the focus. This method is a do-nothing method, in that the
Observation_ID_Dialog is not interested in components gaining
focus. It is required by the FocusListener
interface, however,
regardless.focusGained
in interface java.awt.event.FocusListener
event
- the focus event that invoked this method.public void focusLost(java.awt.event.FocusEvent event)
FocusEvent
s. This method is invoked when an interface
component loses the focus. If the component that loses focus is the orbit
number text field or the target text field, the observation ID value is
updated with the new information contained in the field that lost focus.focusLost
in interface java.awt.event.FocusListener
event
- the focus event that invoked this method.public void propertyChange(java.beans.PropertyChangeEvent event)
propertyChange
in interface java.beans.PropertyChangeListener
public java.lang.String showDialog(java.awt.Component location_component, java.lang.String title, java.lang.String observation_id)
If location_component is null, the dialog is centered on
the screen. If title is null, DEFAULT_TITLE
is
used. If observation_id is null, the empty string ("") is
used.
location_component
- the component in relation to which the dialog's
location is determined.title
- the dialog's title.observation_id
- the initial observation ID.public java.lang.String showDialog(java.awt.Component location_component, java.lang.String observation_id)
DEFAULT_TITLE
is used for the
dialog's title.
If location_component is null, the dialog is centered on the screen. If observation_id is null, the empty string ("") is used.
location_component
- the component in relation to which the dialog's
location is determined.observation_id
- the initial observation ID.public java.lang.String showDialog(java.lang.String title, java.lang.String observation_id)
If title is null, DEFAULT_TITLE
is used. If
observation_id is null, the empty string ("") is used.
title
- the dialog's title.observation_id
- the initial observation ID.public java.lang.String showDialog(java.lang.String observation_id)
DEFAULT_TITLE
is used for the dialog's title.
If observation_id is null, the empty string ("") is used.
observation_id
- the initial observation ID.public static void main(java.lang.String[] args)
Observation_ID_Dialog
args
- the command-line arguments, which are unused.Copyright \ (C) Arizona Board of Regents on behalf of the \ Planetary Image Research Laboratory, Lunar and \ Planetary Laboratory at the University of Arizona