public class SqlViewerDialog extends javax.swing.JDialog implements ResultChangedListener
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 |
|---|---|
protected javax.swing.JButton |
m_ButtonCancel
the Cancel button.
|
protected javax.swing.JButton |
m_ButtonOK
the OK button.
|
protected javax.swing.JCheckBox |
m_CheckBoxSparseData
whether to return sparse instances or not.
|
protected javax.swing.JLabel |
m_LabelQuery
displays the current query.
|
protected javax.swing.JPanel |
m_PanelButtons
the panel for the buttons.
|
protected javax.swing.JFrame |
m_Parent
the parent frame.
|
protected java.lang.String |
m_Password
the password that was used to connect to the DB.
|
protected java.lang.String |
m_Query
the currently selected query.
|
protected int |
m_ReturnValue
the return value.
|
protected java.lang.String |
m_URL
the connect string with which the query was run.
|
protected java.lang.String |
m_User
the user that was used to connect to the DB.
|
protected SqlViewer |
m_Viewer
the SQL panel.
|
accessibleContext, rootPane, rootPaneCheckingEnabledBOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT| Constructor and Description |
|---|
SqlViewerDialog(javax.swing.JFrame parent)
initializes the dialog.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
createDialog()
builds the dialog and all its components.
|
boolean |
getGenerateSparseData()
Returns whether sparse data is generated.
|
java.lang.String |
getPassword()
returns the chosen password, if any.
|
java.lang.String |
getQuery()
returns the chosen query, if any.
|
int |
getReturnValue()
returns whether the user clicked OK (JOptionPane.OK_OPTION) or whether he
cancelled the dialog (JOptionPane.CANCEL_OPTION).
|
java.lang.String |
getURL()
returns the chosen URL, if any.
|
java.lang.String |
getUser()
returns the chosen user, if any.
|
static void |
main(java.lang.String[] args)
for testing only.
|
void |
resultChanged(ResultChangedEvent evt)
This method gets called when a query has been executed.
|
void |
setVisible(boolean b)
displays the dialog if TRUE.
|
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, 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, transferFocusUpCycleprotected javax.swing.JFrame m_Parent
protected SqlViewer m_Viewer
protected javax.swing.JPanel m_PanelButtons
protected javax.swing.JButton m_ButtonOK
protected javax.swing.JButton m_ButtonCancel
protected javax.swing.JLabel m_LabelQuery
protected javax.swing.JCheckBox m_CheckBoxSparseData
protected int m_ReturnValue
protected java.lang.String m_URL
protected java.lang.String m_User
protected java.lang.String m_Password
protected java.lang.String m_Query
public SqlViewerDialog(javax.swing.JFrame parent)
parent - the parent frameprotected void createDialog()
public void setVisible(boolean b)
setVisible in class java.awt.Dialogb - if true displaying the dialog, hiding otherwisepublic int getReturnValue()
JOptionPanepublic java.lang.String getURL()
public java.lang.String getUser()
public java.lang.String getPassword()
public java.lang.String getQuery()
public boolean getGenerateSparseData()
public void resultChanged(ResultChangedEvent evt)
resultChanged in interface ResultChangedListenerevt - the eventpublic static void main(java.lang.String[] args)
args - ignored