cz.hdf.cdnavigator.gui
Class CDWindow

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JPanel
                  extended by cz.hdf.gui.HPanel
                      extended by cz.hdf.cdnavigator.gui.Window
                          extended by cz.hdf.cdnavigator.gui.CDWindow
All Implemented Interfaces:
cz.hdf.gui.HRelocalize, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible

public class CDWindow
extends Window

CDs window, to show CDs ...

Author:
hunter
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
 
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
private  cz.hdf.gui.HPanel atBorder
          all data management tab panel to relocalize
 CDCachePanel cdCachePanel
          tab for cache
 CDEditPanel cdEditPanel
          tab for CD edit
protected  CDInfoPanel cdInfoPanel
          tab for CD info
protected  CDSearchPanel cdSearchPanel
          tab for CD search
 CDTempRoastPanel cdTempRoastPanel
          tab for temp and roasting
protected  java.awt.event.ActionListener changeSQLKeyListener
          when SQL key is changed
private  cz.hdf.gui.HPanel ctBorder
          cd tab panel to relocalize
protected  CDDBManagementPanel dbManagementPanel
          tab for DB data management
private  cz.hdf.gui.HPanel dtBorder
          data management tab panel to relocalize
private  cz.hdf.gui.HPanel etBorder
          cache tab panel to relocalize
private  java.util.logging.Logger logger
          Logger.
protected  Scan scan
          scanner for new data
private  cz.hdf.gui.HPanel stBorder
          search tab panel to relocalize
private  cz.hdf.gui.HPanel ttBorder
          temp tab panel to relocalize
 
Fields inherited from class cz.hdf.cdnavigator.gui.Window
areSQLListenersActivate, changer, changeSQLActionListener, changeSQLChangeListener, changeSQLDocumentListener, ratingRenderer, ratingSmallRenderer, stAllRadio, stBottomPanel, stClearButton, stFoundTree, stFoundTreeModel, stFullSearchButton, stFullSearchField, stFullSearchPanel, stGenCheck, stSaveCombo, stSaveRemoveButton, stSaveSaveButton, stSearchButton, stSqlArea, stWhereRadio, tabbedPane
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
CDWindow(ChangerPanel _changer)
          Initialize GUI components.
 
Method Summary
protected  void addSearchSQLListers()
          In search panel add listeners to update SQL select.
protected  void clearSQLComponents()
          Clear all SQL GUI components.
protected  void displayActualCD()
          Show CD data in cd tab and dt tab.
protected  FoundedOtherListRecord[] getOtherListRecordsForCD(int _cdID)
          DOCUMENT ME!
protected  Config.Search getSavedSearch()
          Store GUI search settings.
protected  int getWindowType()
          Get window type.
protected  void initLayout()
          Initialize layout
protected  void initListeners()
          Initialize listeners
 void relocalize()
          Relocalize all GUI components.
protected  void removeSearchSQLListers()
          In search panel remove listeners to update SQL select.
protected  void searchAction()
          Execute search SQL and show result in stFoundTree.
protected  void setFocus()
          Set focus to some window component.
protected  void setSavedSearch(Config.Search _search)
          Load GUI search settings.
 void showCD(CDData _cdd)
          Set data to founded photos and display it
protected  java.lang.String stGenerateSQL()
          Generate whole SQL select.
protected  void tabStatusInfo()
          Show info in status line.
 
Methods inherited from class cz.hdf.cdnavigator.gui.Window
activated, addFieldListener, clearComponent, getSavedSearchType, removeFieldListener, stGenerateWhereClausule, stGenerateWhereTables, stUpdateSQL
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
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, 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
 
Methods inherited from class java.awt.Container
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
 
Methods inherited from class java.awt.Component
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ctBorder

private cz.hdf.gui.HPanel ctBorder
cd tab panel to relocalize


stBorder

private cz.hdf.gui.HPanel stBorder
search tab panel to relocalize


dtBorder

private cz.hdf.gui.HPanel dtBorder
data management tab panel to relocalize


ttBorder

private cz.hdf.gui.HPanel ttBorder
temp tab panel to relocalize


etBorder

private cz.hdf.gui.HPanel etBorder
cache tab panel to relocalize


atBorder

private cz.hdf.gui.HPanel atBorder
all data management tab panel to relocalize


cdInfoPanel

protected CDInfoPanel cdInfoPanel
tab for CD info


cdSearchPanel

protected CDSearchPanel cdSearchPanel
tab for CD search


cdEditPanel

public CDEditPanel cdEditPanel
tab for CD edit


cdTempRoastPanel

public CDTempRoastPanel cdTempRoastPanel
tab for temp and roasting


cdCachePanel

public CDCachePanel cdCachePanel
tab for cache


dbManagementPanel

protected CDDBManagementPanel dbManagementPanel
tab for DB data management


scan

protected Scan scan
scanner for new data


logger

private java.util.logging.Logger logger
Logger. Hierarchy is set to name of this class.


changeSQLKeyListener

protected java.awt.event.ActionListener changeSQLKeyListener
when SQL key is changed

Constructor Detail

CDWindow

public CDWindow(ChangerPanel _changer)
Initialize GUI components.

Parameters:
_changer - main window
Method Detail

initLayout

protected void initLayout()
Initialize layout


initListeners

protected void initListeners()
Initialize listeners


showCD

public void showCD(CDData _cdd)
Set data to founded photos and display it

Parameters:
_pad -

displayActualCD

protected void displayActualCD()
Show CD data in cd tab and dt tab. For example when founded list selection changed.


getOtherListRecordsForCD

protected FoundedOtherListRecord[] getOtherListRecordsForCD(int _cdID)
DOCUMENT ME!

Parameters:
_cdID -
Returns:

stGenerateSQL

protected java.lang.String stGenerateSQL()
                                  throws java.lang.NumberFormatException
Generate whole SQL select.

Specified by:
stGenerateSQL in class Window
Returns:
SQL select
Throws:
java.lang.NumberFormatException - when text value can not be parsed to number

getSavedSearch

protected Config.Search getSavedSearch()
Description copied from class: Window
Store GUI search settings.

Specified by:
getSavedSearch in class Window
Returns:
search settings
See Also:
Window.getSavedSearch()

setSavedSearch

protected void setSavedSearch(Config.Search _search)
Load GUI search settings.

Specified by:
setSavedSearch in class Window
Parameters:
_search -

clearSQLComponents

protected void clearSQLComponents()
Description copied from class: Window
Clear all SQL GUI components.

Specified by:
clearSQLComponents in class Window
See Also:
Window.clearSQLComponents()

addSearchSQLListers

protected void addSearchSQLListers()
Description copied from class: Window
In search panel add listeners to update SQL select.

Specified by:
addSearchSQLListers in class Window
See Also:
Window.addSearchSQLListers()

removeSearchSQLListers

protected void removeSearchSQLListers()
Description copied from class: Window
In search panel remove listeners to update SQL select.

Specified by:
removeSearchSQLListers in class Window
See Also:
Window.removeSearchSQLListers()

getWindowType

protected int getWindowType()
Get window type.

Specified by:
getWindowType in class Window
Returns:
window type
See Also:
ChangerPanel

searchAction

protected void searchAction()
Description copied from class: Window
Execute search SQL and show result in stFoundTree.

Specified by:
searchAction in class Window

relocalize

public void relocalize()
Relocalize all GUI components.

Specified by:
relocalize in interface cz.hdf.gui.HRelocalize
Overrides:
relocalize in class cz.hdf.gui.HPanel

setFocus

protected void setFocus()
Description copied from class: Window
Set focus to some window component.

Specified by:
setFocus in class Window
See Also:
Window.setFocus()

tabStatusInfo

protected void tabStatusInfo()
Description copied from class: Window
Show info in status line.

Specified by:
tabStatusInfo in class Window
See Also:
Window.tabStatusInfo()


CDnavigator JavaDoc, HDF company www.hdf.cz