public class DatabaseConfigurationPanel
extends javax.swing.JPanel
Modifier and Type | Class and Description |
---|---|
static class |
DatabaseConfigurationPanel.StoredConnection |
javax.swing.JPanel.AccessibleJPanel
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
private javax.swing.JList |
connectionsList |
private javax.swing.JTextField |
conTextField |
private javax.swing.JTextField |
databaseTextField |
private javax.swing.JPanel |
dbConfContainerPanel |
private javax.swing.JComboBox |
dbtypeComboBox |
private javax.swing.JButton |
deleteConnectionButton |
private javax.swing.JTextField |
driverTextField |
private javax.swing.JButton |
editButton |
protected int |
editingIndex |
private javax.swing.JPanel |
generalDBPanel |
static java.lang.String |
GENERIC_TYPE |
private javax.swing.JLabel |
jLabel1 |
private javax.swing.JLabel |
jLabel10 |
private javax.swing.JLabel |
jLabel11 |
private javax.swing.JLabel |
jLabel12 |
private javax.swing.JLabel |
jLabel2 |
private javax.swing.JLabel |
jLabel3 |
private javax.swing.JLabel |
jLabel4 |
private javax.swing.JLabel |
jLabel5 |
private javax.swing.JLabel |
jLabel6 |
private javax.swing.JLabel |
jLabel7 |
private javax.swing.JLabel |
jLabel8 |
private javax.swing.JLabel |
jLabel9 |
private javax.swing.JPanel |
jPanel1 |
private javax.swing.JPanel |
jPanel2 |
private javax.swing.JPanel |
jPanel3 |
private javax.swing.JScrollPane |
jScrollPane1 |
private javax.swing.JScrollPane |
jScrollPane2 |
private javax.swing.JSeparator |
jSeparator1 |
private javax.swing.JPanel |
knownDBPanel |
protected javax.swing.DefaultListModel |
listModel |
private javax.swing.JButton |
loadButton |
private javax.swing.JPanel |
loadButtonsPanel1 |
private javax.swing.JButton |
loadCancelButton |
(package private) boolean |
loadCancelled |
private javax.swing.JPanel |
loadContainerPanel |
private javax.swing.JDialog |
loadDialog |
private javax.swing.JButton |
loadOKButton |
private javax.swing.JPanel |
loadSaveButtonPanel |
private javax.swing.JTextField |
nameGenTextField |
private javax.swing.JTextField |
nameTextField |
private javax.swing.JPanel |
newConButtonsPanel |
private javax.swing.JButton |
newConCancelButton |
protected javax.swing.JDialog |
newConDialog |
private javax.swing.JButton |
newConnectionButton |
private javax.swing.JButton |
newConOKButton |
private javax.swing.JPanel |
newConPanel |
private javax.swing.JTextField |
passwordGenTextField |
private javax.swing.JTextField |
passwordTextField |
private javax.swing.JButton |
saveButton |
private javax.swing.JTextArea |
scriptTextArea |
private javax.swing.JTextField |
serverTextField |
private javax.swing.JTextField |
userGenTextField |
private javax.swing.JTextField |
userTextField |
private Wandora |
wandora |
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
DatabaseConfigurationPanel(Wandora wandora)
Creates new form ConfigurationPanel
|
Modifier and Type | Method and Description |
---|---|
protected void |
clearNewConPanel() |
private void |
dbtypeComboBoxActionPerformed(java.awt.event.ActionEvent evt) |
private void |
deleteConnectionButtonActionPerformed(java.awt.event.ActionEvent evt) |
private void |
editButtonActionPerformed(java.awt.event.ActionEvent evt) |
java.util.Collection<DatabaseConfigurationPanel.StoredConnection> |
getAllConnections() |
static Tuples.T2<java.lang.String,java.lang.String> |
getConnectionDriverAndString(DatabaseConfigurationPanel.StoredConnection sc) |
TopicMapConfigurationPanel |
getEditConfigurationPanel(java.lang.Object params) |
DatabaseConfigurationPanel.StoredConnection |
getSelectedConnection() |
private void |
initComponents()
This method is called from within the constructor to
initialize the form.
|
private void |
initNewConPanel(DatabaseConfigurationPanel.StoredConnection sc) |
private void |
loadButtonActionPerformed(java.awt.event.ActionEvent evt) |
private void |
loadCancelButtonActionPerformed(java.awt.event.ActionEvent evt) |
private void |
loadOKButtonActionPerformed(java.awt.event.ActionEvent evt) |
private DatabaseConfigurationPanel.StoredConnection |
makeNewStoredConnection() |
private void |
newConCancelButtonActionPerformed(java.awt.event.ActionEvent evt) |
private void |
newConnectionButtonActionPerformed(java.awt.event.ActionEvent evt) |
private void |
newConOKButtonActionPerformed(java.awt.event.ActionEvent evt) |
protected void |
openNewConPanel() |
private void |
proposeNameForLayer(java.awt.event.MouseEvent evt) |
private void |
saveButtonActionPerformed(java.awt.event.ActionEvent evt) |
void |
setConnections(java.util.Collection<DatabaseConfigurationPanel.StoredConnection> cs) |
protected void |
setDbConfPanel() |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public static final java.lang.String GENERIC_TYPE
private Wandora wandora
protected javax.swing.JDialog newConDialog
protected javax.swing.DefaultListModel listModel
protected int editingIndex
boolean loadCancelled
private javax.swing.JTextField conTextField
private javax.swing.JList connectionsList
private javax.swing.JTextField databaseTextField
private javax.swing.JPanel dbConfContainerPanel
private javax.swing.JComboBox dbtypeComboBox
private javax.swing.JButton deleteConnectionButton
private javax.swing.JTextField driverTextField
private javax.swing.JButton editButton
private javax.swing.JPanel generalDBPanel
private javax.swing.JLabel jLabel1
private javax.swing.JLabel jLabel10
private javax.swing.JLabel jLabel11
private javax.swing.JLabel jLabel12
private javax.swing.JLabel jLabel2
private javax.swing.JLabel jLabel3
private javax.swing.JLabel jLabel4
private javax.swing.JLabel jLabel5
private javax.swing.JLabel jLabel6
private javax.swing.JLabel jLabel7
private javax.swing.JLabel jLabel8
private javax.swing.JLabel jLabel9
private javax.swing.JPanel jPanel1
private javax.swing.JPanel jPanel2
private javax.swing.JPanel jPanel3
private javax.swing.JScrollPane jScrollPane1
private javax.swing.JScrollPane jScrollPane2
private javax.swing.JSeparator jSeparator1
private javax.swing.JPanel knownDBPanel
private javax.swing.JButton loadButton
private javax.swing.JPanel loadButtonsPanel1
private javax.swing.JButton loadCancelButton
private javax.swing.JPanel loadContainerPanel
private javax.swing.JDialog loadDialog
private javax.swing.JButton loadOKButton
private javax.swing.JPanel loadSaveButtonPanel
private javax.swing.JTextField nameGenTextField
private javax.swing.JTextField nameTextField
private javax.swing.JPanel newConButtonsPanel
private javax.swing.JButton newConCancelButton
private javax.swing.JButton newConOKButton
private javax.swing.JPanel newConPanel
private javax.swing.JButton newConnectionButton
private javax.swing.JTextField passwordGenTextField
private javax.swing.JTextField passwordTextField
private javax.swing.JButton saveButton
private javax.swing.JTextArea scriptTextArea
private javax.swing.JTextField serverTextField
private javax.swing.JTextField userGenTextField
private javax.swing.JTextField userTextField
public DatabaseConfigurationPanel(Wandora wandora)
private void initComponents()
private void deleteConnectionButtonActionPerformed(java.awt.event.ActionEvent evt)
private void proposeNameForLayer(java.awt.event.MouseEvent evt)
private void loadOKButtonActionPerformed(java.awt.event.ActionEvent evt)
private void loadCancelButtonActionPerformed(java.awt.event.ActionEvent evt)
private void saveButtonActionPerformed(java.awt.event.ActionEvent evt)
private void loadButtonActionPerformed(java.awt.event.ActionEvent evt)
public TopicMapConfigurationPanel getEditConfigurationPanel(java.lang.Object params)
private void initNewConPanel(DatabaseConfigurationPanel.StoredConnection sc)
private void editButtonActionPerformed(java.awt.event.ActionEvent evt)
public static Tuples.T2<java.lang.String,java.lang.String> getConnectionDriverAndString(DatabaseConfigurationPanel.StoredConnection sc)
private DatabaseConfigurationPanel.StoredConnection makeNewStoredConnection()
private void newConOKButtonActionPerformed(java.awt.event.ActionEvent evt)
private void newConCancelButtonActionPerformed(java.awt.event.ActionEvent evt)
protected void clearNewConPanel()
protected void openNewConPanel()
private void newConnectionButtonActionPerformed(java.awt.event.ActionEvent evt)
protected void setDbConfPanel()
private void dbtypeComboBoxActionPerformed(java.awt.event.ActionEvent evt)
public DatabaseConfigurationPanel.StoredConnection getSelectedConnection()
public java.util.Collection<DatabaseConfigurationPanel.StoredConnection> getAllConnections()
public void setConnections(java.util.Collection<DatabaseConfigurationPanel.StoredConnection> cs)
Copyright 2004-2015 Wandora Team