public class HOGG_Dialog
extends javax.swing.JDialog
implements edu.asu.jmars.layer.obs.mro.MroCustomEditor, edu.asu.jmars.layer.obs.mro.MroCustomData
HOGG
interface panel. The HOGG is configured
in dialog (i.e., non-application) mode.
To use this, first instantiate it. Then use the showDialog methods to display it. Their return value will indicate how it was dismissed.
javax.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 |
ALWAYS_RESET_HOGG_LOCATION |
static java.lang.String |
BUTTON_LABEL
The button label for the HOGG button as it appears in the MTT focus panel.
|
static boolean |
DEFAULT_ALWAYS_RESET_HOGG_LOCATION |
static boolean |
DEFAULT_SHOW_TRACKER_ON_STARTUP |
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.
|
static java.lang.String |
SHOW_TRACKER_ON_STARTUP |
accessibleContext, rootPane, rootPaneCheckingEnabled
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
Constructor and Description |
---|
HOGG_Dialog()
Creates a modal HOGG_Dialog.
|
HOGG_Dialog(java.awt.Component component)
Creates a modal HOGG_Dialog with an owner frame derived from the
indicated component.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getLabel()
Gets the button label for the HOGG button as it appears in the MTT focus
panel.
|
java.util.Map<java.lang.String,java.lang.Object> |
getProperties(java.lang.String ptfRecordText)
Retrieves custom properties for the requested PTF observation.
|
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
getProperties(java.lang.String[] ptfRecordTextArray)
Retrieves custom properties for each requested PTF observation.
|
boolean |
isEditable(java.lang.String ptfRecordText)
Returns whether a given PTF record is editable by the HOGG.
|
java.lang.String |
showDialog(java.awt.Component locationComponent,
java.lang.String ptfRecordText)
Displays the HOGG_Dialog with the specified location component,
title, and initial PTF record.
|
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 static final java.lang.String BUTTON_LABEL
getLabel()
,
Constant Field Valuespublic static final java.lang.String ALWAYS_RESET_HOGG_LOCATION
public static final boolean DEFAULT_ALWAYS_RESET_HOGG_LOCATION
public static final java.lang.String SHOW_TRACKER_ON_STARTUP
public static final boolean DEFAULT_SHOW_TRACKER_ON_STARTUP
public HOGG_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
HOGG_Dialog.public HOGG_Dialog()
public java.lang.String getLabel()
getLabel
in interface edu.asu.jmars.layer.obs.mro.MroCustomEditor
MttFocusPanel
public boolean isEditable(java.lang.String ptfRecordText)
PTF_Record.HIR_INSTRUMENT_CODE
.isEditable
in interface edu.asu.jmars.layer.obs.mro.MroCustomEditor
ptfRecordText
- the text form of the PTF record in question.public java.lang.String showDialog(java.awt.Component locationComponent, java.lang.String ptfRecordText)
If locationComponent is null, the dialog is centered on
the screen. If title is null, DEFAULT_TITLE
is
used. If ptfRecordText is null, a new, empty PTF record
will be used.
showDialog
in interface edu.asu.jmars.layer.obs.mro.MroCustomEditor
locationComponent
- the component in relation to which the dialog's
location is determined.ptfRecordText
- the initial PTF record in text format.public java.util.Map<java.lang.String,java.lang.Object> getProperties(java.lang.String ptfRecordText) throws edu.asu.jmars.layer.obs.mro.RestartableException
getProperties
in interface edu.asu.jmars.layer.obs.mro.MroCustomData
ptfRecordText
- an entire PTF record in text format; the team ID
is the usual primary key, but the entire PTF record is passed to
maximize query context.edu.asu.jmars.layer.obs.mro.RestartableException
- if a problem occurs that does not preclude
additional attempts to retrieve the data.HiLiner.getProperties(String)
public java.util.List<java.util.Map<java.lang.String,java.lang.Object>> getProperties(java.lang.String[] ptfRecordTextArray) throws edu.asu.jmars.layer.obs.mro.RestartableException
getProperties
in interface edu.asu.jmars.layer.obs.mro.MroCustomData
ptfRecordTextArray
- an array of PTF records in text format; the
team ID is the usual primary key, but the entire PTF record in the array
to maximize query context.edu.asu.jmars.layer.obs.mro.RestartableException
- if a problem occurs that does not preclude
additional attempts to retrieve the data.HiLiner.getProperties(String[])
Copyright \ (C) Arizona Board of Regents on behalf of the \ Planetary Image Research Laboratory, Lunar and \ Planetary Laboratory at the University of Arizona