cz.hdf.cdnavigator.gui
Class PhotoWindow

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.PhotoWindow
All Implemented Interfaces:
cz.hdf.gui.HRelocalize, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible

public class PhotoWindow
extends Window

Photos window, to show photos ...

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 camBorder
          camera tab panel to relocalize
 PhotoCameraPanel cameraPanel
          camera panel
protected  java.awt.event.ActionListener changeSQLKeyListener
          when SQL key is changed
private  cz.hdf.gui.HPanel dtBorder
          data management tab panel to relocalize
static java.lang.String[] KEYS_PHOTO
          keys in where clausule for photos
private  java.util.logging.Logger logger
          Logger.
protected  PhotoEditPanel photoEditPanel
          photo edit panel
protected  PhotoInfoPanel photoInfoPanel
          photo info panel
protected  PhotoSearchPanel photoSearchPanel
          photo search panel
private  cz.hdf.gui.HPanel printBorder
          print tab panel to relocalize
private  cz.hdf.gui.HPanel ptBorder
          photo album tab panel to relocalize
protected  PhotoShowPanel showPhotoPanel
          show photo panel
private  cz.hdf.gui.HPanel stBorder
          search tab panel to relocalize
private  cz.hdf.gui.HPanel swBorder
          show tab panel to relocalize
private  cz.hdf.gui.HPanel webBorder
          web tab panel to relocalize
protected  PhotoWebPanel webPanel
          web panel
 
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
PhotoWindow(ChangerPanel _changer)
          Initialize GUI components.
 
Method Summary
 void activated()
          reread data
protected  void addSearchSQLListers()
          In search panel add listeners to update SQL select.
private  void clearActualPhoto()
           
protected  void clearSQLComponents()
          Clear all SQL GUI components.
protected  java.lang.String createCDComboRecord(int _number, java.lang.String _box, java.lang.String _volume)
          Create record for dtAlbumCDCombo.
protected  void displayActualAlbum()
          Show photo album data in photo tab and dt tab.
protected  void displayActualPhoto()
          Show photo data in photo tab and dt tab.
protected  javax.swing.tree.DefaultMutableTreeNode getNextPhotoNode(javax.swing.tree.DefaultMutableTreeNode _photoNode)
          Look for next photo node in search tree.
protected  javax.swing.tree.DefaultMutableTreeNode getPrevPhotoNode(javax.swing.tree.DefaultMutableTreeNode _photoNode)
          Look for previous photo node in search tree.
protected  Config.Search getSavedSearch()
          Store GUI search settings.
protected  int getWindowType()
          Get window type.
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 showPhotoAlbum(PhotoAlbumData _pad)
          Set data to founded photos and display it
 void showPhotos(PhotoAlbumData _pad, java.util.List _pdList)
          DOCUMENT ME!
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
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

KEYS_PHOTO

public static final java.lang.String[] KEYS_PHOTO
keys in where clausule for photos


ptBorder

private cz.hdf.gui.HPanel ptBorder
photo album 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


swBorder

private cz.hdf.gui.HPanel swBorder
show tab panel to relocalize


camBorder

private cz.hdf.gui.HPanel camBorder
camera tab panel to relocalize


printBorder

private cz.hdf.gui.HPanel printBorder
print tab panel to relocalize


webBorder

private cz.hdf.gui.HPanel webBorder
web tab panel to relocalize


photoInfoPanel

protected PhotoInfoPanel photoInfoPanel
photo info panel


photoSearchPanel

protected PhotoSearchPanel photoSearchPanel
photo search panel


photoEditPanel

protected PhotoEditPanel photoEditPanel
photo edit panel


showPhotoPanel

protected PhotoShowPanel showPhotoPanel
show photo panel


cameraPanel

public PhotoCameraPanel cameraPanel
camera panel


webPanel

protected PhotoWebPanel webPanel
web panel


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

PhotoWindow

public PhotoWindow(ChangerPanel _changer)
Initialize GUI components.

Parameters:
_changer - main window
Method Detail

getPrevPhotoNode

protected javax.swing.tree.DefaultMutableTreeNode getPrevPhotoNode(javax.swing.tree.DefaultMutableTreeNode _photoNode)
Look for previous photo node in search tree.

Parameters:
_photoNode -
Returns:
prevNode or null

getNextPhotoNode

protected javax.swing.tree.DefaultMutableTreeNode getNextPhotoNode(javax.swing.tree.DefaultMutableTreeNode _photoNode)
Look for next photo node in search tree.

Parameters:
_photoNode -
Returns:
nextNode or null

initListeners

protected void initListeners()
Initialize listeners


showPhotos

public void showPhotos(PhotoAlbumData _pad,
                       java.util.List _pdList)
DOCUMENT ME!

Parameters:
_pad -
_pdList -

showPhotoAlbum

public void showPhotoAlbum(PhotoAlbumData _pad)
Set data to founded photos and display it

Parameters:
_pad -

createCDComboRecord

protected java.lang.String createCDComboRecord(int _number,
                                               java.lang.String _box,
                                               java.lang.String _volume)
Create record for dtAlbumCDCombo.

Parameters:
_number -
_box -
_volume -
Returns:

clearActualPhoto

private void clearActualPhoto()

displayActualPhoto

protected void displayActualPhoto()
Show photo data in photo tab and dt tab. For example when founded list selection changed.


displayActualAlbum

protected void displayActualAlbum()
Show photo album data in photo tab and dt tab. For example when founded list selection changed.


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

activated

public void activated()
reread data

Overrides:
activated in class Window

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

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 -

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