public final class OverpassQueryWizardDialog extends ExtendedDialog
javax.swing.JDialog.AccessibleJDialogjava.awt.Dialog.AccessibleAWTDialog, java.awt.Dialog.ModalExclusionType, java.awt.Dialog.ModalityTypejava.awt.Window.AccessibleAWTWindow, java.awt.Window.Type| Modifier and Type | Field and Description |
|---|---|
private static int |
BUILD_AN_EXECUTE_QUERY |
private static int |
BUILD_QUERY |
private static int |
CANCEL |
private static java.lang.String |
DESCRIPTION_STYLE |
private OverpassWizardRegistration.OverpassWizardCallbacks |
dsPanel |
private static java.lang.String |
HEADLINE_END |
private static java.lang.String |
HEADLINE_START |
private static ListProperty |
OVERPASS_WIZARD_HISTORY |
private OverpassTurboQueryWizard |
overpassQueryBuilder |
private HistoryComboBox |
queryWizard |
private static java.lang.String |
SPAN_END |
private static java.lang.String |
SPAN_START |
private static java.lang.String |
TD_END |
private static java.lang.String |
TD_START |
private static java.lang.String |
TR_END |
private static java.lang.String |
TR_START |
buttons, contentInsets, defaultButton, DialogClosedOtherwiseaccessibleContext, rootPane, rootPaneCheckingEnabledBOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT| Constructor and Description |
|---|
OverpassQueryWizardDialog(OverpassWizardRegistration.OverpassWizardCallbacks callbacks)
Create a new
OverpassQueryWizardDialog |
| Modifier and Type | Method and Description |
|---|---|
private static javax.swing.text.JTextComponent |
buildDescriptionSection() |
private boolean |
buildQueryAction()
Builds an Overpass query out from
queryWizard contents. |
void |
buttonAction(int buttonIndex,
java.awt.event.ActionEvent evt)
This gets performed whenever a button is clicked or activated
|
private static java.lang.String |
getDescriptionContent() |
private void |
saveHistory()
Saves the latest, successfully parsed search term.
|
private java.util.Optional<java.lang.String> |
tryParseSearchTerm(java.lang.String searchTerm)
Tries to process a search term using
OverpassTurboQueryWizard. |
configureContextsensitiveHelp, createButtonAction, findMaxDialogSize, getValue, initWindowGeometry, rememberWindowGeometry, setButtonIcons, setButtonIcons, setCancelButton, setContent, setContent, setContent, setDefaultButton, setFocusOnDefaultButton, setIcon, setIcon, setRememberWindowGeometry, setToolTipTexts, setupDialog, setVisible, showDialog, toggleCheckState, toggleEnable, toggleSaveStateaddImpl, 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, updateaddNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setBackground, setModal, setModalityType, setOpacity, setResizable, setShape, setTitle, setUndecorated, show, toBackaddPropertyChangeListener, 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, toFrontadd, 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, validateTreeaction, 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, transferFocusUpCycleprivate final HistoryComboBox queryWizard
private static final java.lang.String HEADLINE_START
private static final java.lang.String HEADLINE_END
private static final java.lang.String TR_START
private static final java.lang.String TR_END
private static final java.lang.String TD_START
private static final java.lang.String TD_END
private static final java.lang.String SPAN_START
private static final java.lang.String SPAN_END
private static final ListProperty OVERPASS_WIZARD_HISTORY
private final transient OverpassTurboQueryWizard overpassQueryBuilder
private static final int BUILD_QUERY
private static final int BUILD_AN_EXECUTE_QUERY
private static final int CANCEL
private static final java.lang.String DESCRIPTION_STYLE
private final OverpassWizardRegistration.OverpassWizardCallbacks dsPanel
public OverpassQueryWizardDialog(OverpassWizardRegistration.OverpassWizardCallbacks callbacks)
OverpassQueryWizardDialogcallbacks - The Overpass download source panel.public void buttonAction(int buttonIndex, java.awt.event.ActionEvent evt)
ExtendedDialogbuttonAction in class ExtendedDialogbuttonIndex - the button index (first index is 0)evt - the button eventprivate void saveHistory()
private java.util.Optional<java.lang.String> tryParseSearchTerm(java.lang.String searchTerm)
OverpassTurboQueryWizard. If the term cannot
be parsed, the the corresponding dialog is shown.searchTerm - The search term to parse.Optional.empty() if an exception was thrown when parsing, meaning
that the term cannot be processed, or non-empty Optional containing the result
of parsing.private boolean buildQueryAction()
queryWizard contents.true if the query successfully built, false otherwise.private static javax.swing.text.JTextComponent buildDescriptionSection()
private static java.lang.String getDescriptionContent()