nl.knowledgeplaza.dh.service.entry
Class EntryForm

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 nl.knowledgeplaza.dh.service.Form
                      extended by nl.knowledgeplaza.dh.service.entry.EntryForm
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible, org.tbee.swing.cardlayout.CardChangedListener, org.tbee.swing.cardlayout.CardChangeListener

public class EntryForm
extends Form
implements org.tbee.swing.cardlayout.CardChangeListener

This is the Form part of the entry screen.

Version:
$Revision: 1.56 $
See Also:
Serialized Form

Nested Class Summary
 class EntryForm.Hour
          Extended Hour entity for use in the table
 class EntryForm.HourTransferHandler
          for drag and drop
 class EntryForm.ProjectTransferHandler
          for drag and drop
 class EntryForm.TemplateTransferHandler
          for drag and drop
 
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
protected  java.lang.String CARDNAME_DAYTOTALS
           
protected  java.lang.String CARDNAME_PROJECTTOTALS
           
protected  java.lang.String CARDNAME_TEMPLATE
           
protected  org.tbee.swing.IconButton iAddRowButton
           
protected  org.tbee.swing.JCalendarPicker iCalendarPicker
           
protected  org.tbee.swing.cardlayout.AnimatedCardLayout iCardLayout
           
protected  javax.swing.JButton iCloseButton
           
protected  org.tbee.swing.IconButton iCopyButton
           
protected  org.tbee.swing.IconButton iCutButton
           
protected  org.tbee.swing.glasspane.RefreshGlasspane iDayTotalRefreshGlasspane
           
protected  org.tbee.swing.table.JTable iDayTotals
           
protected  nl.knowledgeplaza.dh.service.entry.EntryForm.DayTotalsModel iDayTotalsModel
           
protected  org.tbee.swing.IconButton iDeleteRowButton
           
protected  org.tbee.swing.glasspane.RefreshGlasspane iHourRefreshGlasspane
           
protected  org.tbee.swing.table.JTableForEdit iHourTable
           
protected  nl.knowledgeplaza.dh.service.entry.EntryForm.HourTableModel iHourTableModel
           
protected  org.tbee.swing.table.TableSorterForEdit iHourTableSorter
           
protected  org.tbee.swing.IconButton iPasteButton
           
protected  org.tbee.swing.table.JTable iProjectTotals
           
protected  nl.knowledgeplaza.dh.service.entry.EntryForm.ProjectTotalsModel iProjectTotalsModel
           
protected  org.tbee.swing.glasspane.RefreshGlasspane iProjectTotalsRefreshGlasspane
           
protected  org.tbee.swing.JTree iProjectTree
           
protected  nl.knowledgeplaza.dh.service.entry.EntryForm.ProjectTreeModel iProjectTreeModel
           
protected  org.tbee.swing.glasspane.RefreshGlasspane iProjectTreeRefreshGlasspane
           
protected  javax.swing.JButton iReloadButton
           
protected  javax.swing.JButton iReopenButton
           
protected  org.tbee.swing.JComboBox iReportTimeframeJComboBox
           
protected  javax.swing.JButton iStoreButton
           
protected  javax.swing.JButton iStoreNextButton
           
protected  org.tbee.swing.glasspane.RefreshGlasspane iTemplatesRefreshGlasspane
           
protected  org.tbee.swing.JTree iTemplatesTree
           
protected  nl.knowledgeplaza.dh.service.entry.EntryForm.TemplatesTreeModel iTemplatesTreeModel
           
protected  org.tbee.swing.JLabel iUsername
           
protected  java.lang.String REPORTNAME_TEMPLATE
           
static java.lang.String SOURCECODE_VERSION
          Standard variable for determining version of a class file.
 
Fields inherited from class nl.knowledgeplaza.dh.service.Form
cKeepAliveThreadPrefix
 
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
EntryForm()
           
 
Method Summary
 void addRow_click()
          Handle a click on the addRow button
 void calendar_propertyChange(java.beans.PropertyChangeEvent e, java.util.Map v)
          If the calendar changes: - optionally save the current data - load the new data
 void cardChanged(org.tbee.swing.cardlayout.CardChangeEvent e)
          after the change
 void cardChanging(org.tbee.swing.cardlayout.CardChangeEvent e)
          before the change
 void changePassword_click()
          change password
 void close_click()
          Handle a click on the indienen button
 void deleteRow_click()
          Handle a click on the deleteRow button
protected  EntryService getEntryService()
          Get the service.
protected  java.lang.Class getServiceClass()
           
 void hoursCopy_click()
          Handle a click on the hoursCopy button
 void hoursCut_click()
          Handle a click on the hoursCut button
 void hoursPaste_click()
          Handle a click on the hoursPaste button
 void initData()
          Create the layout
 void initGui()
          Create the layout
 void project_mouseDoubleClicked(java.awt.event.MouseEvent e, java.util.Map v)
          React to changes in the selection.
 void reload_click()
          Handle a click on the reload button
 void reopen_click()
          Handle a click on the reload button
 void report_click(java.awt.event.ActionEvent ev, java.util.Map v)
          Handle a click on a report icon
 void reportPopup_click(java.awt.event.ActionEvent e, java.util.Map v)
          handle the click on the table menu
 void store_click()
          Handle a click on the store button
 void storeNext_click()
          Handle a click on the store button
 void template_mouseDoubleClicked(java.awt.event.MouseEvent e, java.util.Map v)
          Catch a double click on the templates by adding the corresponding rows to hours
 
Methods inherited from class nl.knowledgeplaza.dh.service.Form
closing, getFormContext, getService, openDebugWindow, setDisableAll, setFormContext, setService, showStatus, startKeepSessionAliveTimer
 
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, transferFocusBackward, 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, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SOURCECODE_VERSION

public static final java.lang.String SOURCECODE_VERSION
Standard variable for determining version of a class file.

See Also:
Constant Field Values

iUsername

protected org.tbee.swing.JLabel iUsername

iCalendarPicker

protected org.tbee.swing.JCalendarPicker iCalendarPicker

iHourTable

protected org.tbee.swing.table.JTableForEdit iHourTable

iHourRefreshGlasspane

protected org.tbee.swing.glasspane.RefreshGlasspane iHourRefreshGlasspane

iHourTableSorter

protected org.tbee.swing.table.TableSorterForEdit iHourTableSorter

iHourTableModel

protected nl.knowledgeplaza.dh.service.entry.EntryForm.HourTableModel iHourTableModel

iProjectTree

protected org.tbee.swing.JTree iProjectTree

iProjectTreeModel

protected nl.knowledgeplaza.dh.service.entry.EntryForm.ProjectTreeModel iProjectTreeModel

iProjectTreeRefreshGlasspane

protected org.tbee.swing.glasspane.RefreshGlasspane iProjectTreeRefreshGlasspane

iCardLayout

protected org.tbee.swing.cardlayout.AnimatedCardLayout iCardLayout

iDayTotals

protected org.tbee.swing.table.JTable iDayTotals

iDayTotalsModel

protected nl.knowledgeplaza.dh.service.entry.EntryForm.DayTotalsModel iDayTotalsModel

iDayTotalRefreshGlasspane

protected org.tbee.swing.glasspane.RefreshGlasspane iDayTotalRefreshGlasspane

iProjectTotals

protected org.tbee.swing.table.JTable iProjectTotals

iProjectTotalsModel

protected nl.knowledgeplaza.dh.service.entry.EntryForm.ProjectTotalsModel iProjectTotalsModel

iProjectTotalsRefreshGlasspane

protected org.tbee.swing.glasspane.RefreshGlasspane iProjectTotalsRefreshGlasspane

iTemplatesTreeModel

protected nl.knowledgeplaza.dh.service.entry.EntryForm.TemplatesTreeModel iTemplatesTreeModel

iTemplatesTree

protected org.tbee.swing.JTree iTemplatesTree

iTemplatesRefreshGlasspane

protected org.tbee.swing.glasspane.RefreshGlasspane iTemplatesRefreshGlasspane

iAddRowButton

protected org.tbee.swing.IconButton iAddRowButton

iDeleteRowButton

protected org.tbee.swing.IconButton iDeleteRowButton

iCopyButton

protected org.tbee.swing.IconButton iCopyButton

iCutButton

protected org.tbee.swing.IconButton iCutButton

iPasteButton

protected org.tbee.swing.IconButton iPasteButton

iStoreButton

protected javax.swing.JButton iStoreButton

iStoreNextButton

protected javax.swing.JButton iStoreNextButton

iReloadButton

protected javax.swing.JButton iReloadButton

iCloseButton

protected javax.swing.JButton iCloseButton

iReopenButton

protected javax.swing.JButton iReopenButton

iReportTimeframeJComboBox

protected org.tbee.swing.JComboBox iReportTimeframeJComboBox

CARDNAME_DAYTOTALS

protected final java.lang.String CARDNAME_DAYTOTALS
See Also:
Constant Field Values

CARDNAME_PROJECTTOTALS

protected final java.lang.String CARDNAME_PROJECTTOTALS
See Also:
Constant Field Values

CARDNAME_TEMPLATE

protected final java.lang.String CARDNAME_TEMPLATE
See Also:
Constant Field Values

REPORTNAME_TEMPLATE

protected final java.lang.String REPORTNAME_TEMPLATE
See Also:
Constant Field Values
Constructor Detail

EntryForm

public EntryForm()
Method Detail

getEntryService

protected EntryService getEntryService()
Get the service.

Returns:

getServiceClass

protected java.lang.Class getServiceClass()
Specified by:
getServiceClass in class Form

initGui

public void initGui()
Create the layout

Overrides:
initGui in class Form

initData

public void initData()
Create the layout

Overrides:
initData in class Form

calendar_propertyChange

public void calendar_propertyChange(java.beans.PropertyChangeEvent e,
                                    java.util.Map v)
If the calendar changes: - optionally save the current data - load the new data


cardChanging

public void cardChanging(org.tbee.swing.cardlayout.CardChangeEvent e)
before the change

Specified by:
cardChanging in interface org.tbee.swing.cardlayout.CardChangeListener

cardChanged

public void cardChanged(org.tbee.swing.cardlayout.CardChangeEvent e)
after the change

Specified by:
cardChanged in interface org.tbee.swing.cardlayout.CardChangedListener

template_mouseDoubleClicked

public void template_mouseDoubleClicked(java.awt.event.MouseEvent e,
                                        java.util.Map v)
Catch a double click on the templates by adding the corresponding rows to hours


project_mouseDoubleClicked

public void project_mouseDoubleClicked(java.awt.event.MouseEvent e,
                                       java.util.Map v)
React to changes in the selection.

Parameters:
e -
v -

report_click

public void report_click(java.awt.event.ActionEvent ev,
                         java.util.Map v)
Handle a click on a report icon


reportPopup_click

public void reportPopup_click(java.awt.event.ActionEvent e,
                              java.util.Map v)
handle the click on the table menu

Parameters:
e -
v -

changePassword_click

public void changePassword_click()
change password


addRow_click

public void addRow_click()
Handle a click on the addRow button


deleteRow_click

public void deleteRow_click()
Handle a click on the deleteRow button


hoursCut_click

public void hoursCut_click()
Handle a click on the hoursCut button


hoursCopy_click

public void hoursCopy_click()
Handle a click on the hoursCopy button


hoursPaste_click

public void hoursPaste_click()
Handle a click on the hoursPaste button


storeNext_click

public void storeNext_click()
Handle a click on the store button


store_click

public void store_click()
Handle a click on the store button


reload_click

public void reload_click()
Handle a click on the reload button


close_click

public void close_click()
Handle a click on the indienen button


reopen_click

public void reopen_click()
Handle a click on the reload button



Copyright © 2010 KnowledgePlaza. All Rights Reserved.