public class DatabaseSessionWindow extends TabbedWindow
DatabaseManager
can be used
to integrate databases on an abstract level. The only possible tab instances to be integrated
here must be of the type SessionTab
.
javax.swing.JPanel.AccessibleJPanel
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
protected DatabaseSessionController |
controller
Instance processing the GUI callbacks (MVC controller).
|
protected CollapsibleOptionsView |
filterOptions
The optional component with filter options.
|
protected java.util.Date |
lastRun
The timestamp when the update task was executed.
|
protected TableSearchOptionsView |
searchOptions
The optional component with search options.
|
protected java.util.Vector<java.lang.Runnable> |
tasks
Additional task to be executed with the updater task (optional).
|
protected java.lang.Runnable |
updater
The current update task (no thread!).
|
autoHide, cacheTabByID, cacheTabByRenderer, counter, helpID, iconError, maxTitleLength, popupListener, popupMenu, previous, tabbedPane, windowParams
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
DatabaseSessionWindow()
Constructor for the GUI component.
|
DatabaseSessionWindow(java.lang.String title,
java.lang.String tooltip)
Constructor for the GUI component.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
addTab(TabbedWindowTab tab)
Adds a new tab for the tabbed pane (must be of the type
SessionTab ). |
void |
addTask(java.lang.Runnable task)
Adds an additional task to be executed with the updater task (optional)
|
protected void |
finalize()
Cares for proper cleanup after releasing the object.
|
TabbedWindowTab |
findTab(DatabaseConnector connector)
Provides the parental tab for a connector.
|
DatabaseConnector[] |
getAllConnectedConnectors()
Provides all managed connectors currently connected.
|
DatabaseConnector[] |
getAllConnectedUniqueConnectors()
Provides all managed connectors currently connected (only one instance per connection).
|
DatabaseConnector[] |
getAllConnectors()
Provides all managed connectors.
|
DatabaseConnector |
getSelectedConnector()
Provides the tabbed pane selection (connector).
|
void |
removeTask(java.lang.Runnable task)
Removes an existing task to be executed with the updater task (optional)
|
void |
setFilterOptions(CollapsibleOptionsView tab)
Sets the filter options component (options).
|
void |
setSearchOptions(TableSearchOptionsView tab)
Sets the search options component (options).
|
void |
windowBecomesHidden(int location)
Informs the docking window that it will be made invisible by the manager.
|
void |
windowBecomesShown(int location)
Informs the docking window that it will be made visible by the manager.
|
actionPerformed, addTabChangeListener, closeAllTabs, closeOtherTabs, closeSelectedTab, configureUnit, findTab, findTab, findTab, getActionDelegate, getComponent, getDockingManager, getIcon, getID, getMode, getPreferredHeight, getPreferredWidth, getSelectedTab, getSelectedTabID, getSupportedActions, getTabRenderer, getTitle, getToolTip, getWindowHeight, getWindowLocation, getWindowLocationX, getWindowLocationY, getWindowState, getWindowWidth, isAutomatic, isButtonPressed, isButtonVisible, isGrowing, isWindowMode, isWindowVisible, popupMenuCanceled, popupMenuWillBecomeInvisible, popupMenuWillBecomeVisible, processAction, refresh, removeTab, removeTab, removeTabChangeListener, setAutomatic, setButtonPressed, setButtonVisible, setErrorState, setGrowing, setHelpID, setID, setMode, setPreferredHeight, setPreferredWidth, setSelectedTab, setSelectedTab, setToolTipTextForTab, setWindowHeight, setWindowLocationX, setWindowLocationY, setWindowMode, setWindowState, setWindowVisible, setWindowWidth, startControl, stateChanged, stopControl, storeUnit, unitRegistered, unitUnregistered, updateTabIcons, updateTabTexts, updateTabToolTips, windowAdded, windowIsActive, windowIsHiding, windowIsInactive, windowIsShowing, windowRemoved
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, 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, hide, 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
protected java.lang.Runnable updater
protected java.util.Date lastRun
protected TableSearchOptionsView searchOptions
protected CollapsibleOptionsView filterOptions
protected DatabaseSessionController controller
protected java.util.Vector<java.lang.Runnable> tasks
public DatabaseSessionWindow()
public DatabaseSessionWindow(java.lang.String title, java.lang.String tooltip)
title
- The window titletooltip
- The window tooltipprotected void finalize() throws java.lang.Throwable
finalize
in class TabbedWindow
java.lang.Throwable
public java.lang.String addTab(TabbedWindowTab tab)
SessionTab
).
addTab
in class TabbedWindow
tab
- The new tab to be addedjava.lang.NullPointerException
- If parameter is null
java.lang.IllegalArgumentException
- If parameter is invalidpublic void windowBecomesShown(int location)
windowBecomesShown
in interface DockingWindow
windowBecomesShown
in class TabbedWindow
location
- The location (TOP, BOTTOM, LEFT, RIGHT
)public void windowBecomesHidden(int location)
windowBecomesHidden
in interface DockingWindow
windowBecomesHidden
in class TabbedWindow
location
- The location (TOP, BOTTOM, LEFT, RIGHT
)public TabbedWindowTab findTab(DatabaseConnector connector)
connector
- The desired connectornull
if not availablepublic void setSearchOptions(TableSearchOptionsView tab)
tab
- The search options componentpublic void setFilterOptions(CollapsibleOptionsView tab)
tab
- The filter options componentpublic DatabaseConnector getSelectedConnector()
null
if not availablepublic DatabaseConnector[] getAllConnectors()
public DatabaseConnector[] getAllConnectedConnectors()
public DatabaseConnector[] getAllConnectedUniqueConnectors()
public void addTask(java.lang.Runnable task)
task
- The new task to be addedjava.lang.NullPointerException
- If parameter is null
public void removeTask(java.lang.Runnable task)
task
- The task to be removedjava.lang.NullPointerException
- If parameter is null
Copyright © 2005-2013 Leisenfels UG (haftungsbeschränkt). All rights reserved.