Package org.cesilko.rachota.gui
Class ReportContentWizardStep
- java.lang.Object
-
- java.awt.Component
-
- java.awt.Container
-
- javax.swing.JComponent
-
- javax.swing.JPanel
-
- org.cesilko.rachota.gui.WizardStep
-
- org.cesilko.rachota.gui.ReportContentWizardStep
-
- All Implemented Interfaces:
java.awt.image.ImageObserver,java.awt.MenuContainer,java.beans.PropertyChangeListener,java.io.Serializable,java.util.EventListener,javax.accessibility.Accessible
public class ReportContentWizardStep extends WizardStep
- 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
-
-
Field Summary
Fields Modifier and Type Field Description private javax.swing.JCheckBoxcbDurationprivate javax.swing.JCheckBoxcbFiltersprivate javax.swing.JCheckBoxcbNotesprivate javax.swing.JCheckBoxcbOccurrencesprivate javax.swing.JCheckBoxcbProjectsTasksprivate javax.swing.JCheckBoxcbTimesChartprivate javax.swing.JComboBoxcmbSortByprivate javax.swing.JLabellbCurrencyprivate javax.swing.JLabellbCustomerDetailsprivate javax.swing.JLabellbDueDateprivate javax.swing.JLabellbDueDaysprivate javax.swing.JLabellbInvoiceIncludeprivate javax.swing.JLabellbInvoiceTitleprivate javax.swing.JLabellbPaymentDetailsprivate javax.swing.JLabellbPriceprivate javax.swing.JLabellbReportIncludeprivate javax.swing.JLabellbReportTitleprivate javax.swing.JLabellbRowsprivate javax.swing.JLabellbShowprivate javax.swing.JLabellbSortByprivate javax.swing.JLabellbTaxprivate javax.swing.JLabellbTaxPercentageprivate javax.swing.JLabellbYourDetailsprivate javax.swing.JPanelpnInvoiceprivate javax.swing.JPanelpnReportprivate java.lang.IntegerpreviousDueDaysprivate javax.swing.JRadioButtonrbInvoiceProjectsTasksprivate javax.swing.JRadioButtonrbInvoiceTasksprivate javax.swing.JRadioButtonrbReportProjectsprivate javax.swing.JRadioButtonrbReportTasksprivate java.util.VectorsortByprivate javax.swing.JScrollPanespCustomerDetailsprivate javax.swing.JSpinnerspDueDateprivate javax.swing.JScrollPanespPaymentDetailsprivate javax.swing.JScrollPanespYourDetailsprivate javax.swing.JTextAreataCustomerDetailsprivate javax.swing.JTextAreataPaymentDetailsprivate javax.swing.JTextAreataYourDetailsprivate javax.swing.JTextFieldtxCurrencyprivate javax.swing.JTextFieldtxInvoiceTitleprivate javax.swing.JTextFieldtxPriceprivate javax.swing.JTextFieldtxReportTitleprivate javax.swing.JTextFieldtxTax-
Fields inherited from class org.cesilko.rachota.gui.WizardStep
description
-
Fields inherited from class javax.swing.JComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
-
-
Constructor Summary
Constructors Constructor Description ReportContentWizardStep(GenericWizard wizard)Creates new form ReportTypeWizardStep
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidcbDurationActionPerformed(java.awt.event.ActionEvent evt)Method called when user wants to (not)include duration for each row.private voidcbNotesActionPerformed(java.awt.event.ActionEvent evt)Method called when user wants to (not)include notes for each row.private voidcbOccurrencesActionPerformed(java.awt.event.ActionEvent evt)Method called when user wants to (not)include number of occurrences for each row.private voidcbProjectsTasksActionPerformed(java.awt.event.ActionEvent evt)Method called when user wants to (not)enumerate projects/tasks for each row.java.awt.FontgetFont()Returns font that should be used for all widgets in this component based on the language preferences specified by user.private voidinitComponents()This method is called from within the constructor to initialize the form.protected booleanisSetCorrectly()Returns whether everything is set correctly in the wizard step.private voidkeyPressed(java.awt.event.KeyEvent evt)Method called when user pressed some key.voidpropertyChange(java.beans.PropertyChangeEvent evt)Method called when property of some other wizard step changed.private voidrbInvoiceProjectsTasksActionPerformed(java.awt.event.ActionEvent evt)User wants to list tasks grouped in projects.private voidrbInvoiceTasksActionPerformed(java.awt.event.ActionEvent evt)User wants to list only individual tasks.private voidrbReportProjectsActionPerformed(java.awt.event.ActionEvent evt)Method called when user wants that table rows represent projects.private voidrbReportTasksActionPerformed(java.awt.event.ActionEvent evt)Method called when user wants that table rows represent tasks.protected voidsetFocus()Method to set focus to the initial component.private voidsetProperties()private voidspDueDateStateChanged(javax.swing.event.ChangeEvent evt)private voidtxCurrencyFocusLost(java.awt.event.FocusEvent evt)Method called when Currency textfield loses its focus.private voidtxPriceFocusLost(java.awt.event.FocusEvent evt)Method called when Currency textfield loses its focus.private voidtxTaxFocusLost(java.awt.event.FocusEvent evt)Method called when Currency textfield loses its focus.-
Methods inherited from class org.cesilko.rachota.gui.WizardStep
getDescription
-
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, 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
-
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, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, 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, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
-
-
-
-
Field Detail
-
cbDuration
private javax.swing.JCheckBox cbDuration
-
cbFilters
private javax.swing.JCheckBox cbFilters
-
cbNotes
private javax.swing.JCheckBox cbNotes
-
cbOccurrences
private javax.swing.JCheckBox cbOccurrences
-
cbProjectsTasks
private javax.swing.JCheckBox cbProjectsTasks
-
cbTimesChart
private javax.swing.JCheckBox cbTimesChart
-
cmbSortBy
private javax.swing.JComboBox cmbSortBy
-
lbCurrency
private javax.swing.JLabel lbCurrency
-
lbCustomerDetails
private javax.swing.JLabel lbCustomerDetails
-
lbDueDate
private javax.swing.JLabel lbDueDate
-
lbDueDays
private javax.swing.JLabel lbDueDays
-
lbInvoiceInclude
private javax.swing.JLabel lbInvoiceInclude
-
lbInvoiceTitle
private javax.swing.JLabel lbInvoiceTitle
-
lbPaymentDetails
private javax.swing.JLabel lbPaymentDetails
-
lbPrice
private javax.swing.JLabel lbPrice
-
lbReportInclude
private javax.swing.JLabel lbReportInclude
-
lbReportTitle
private javax.swing.JLabel lbReportTitle
-
lbRows
private javax.swing.JLabel lbRows
-
lbShow
private javax.swing.JLabel lbShow
-
lbSortBy
private javax.swing.JLabel lbSortBy
-
lbTax
private javax.swing.JLabel lbTax
-
lbTaxPercentage
private javax.swing.JLabel lbTaxPercentage
-
lbYourDetails
private javax.swing.JLabel lbYourDetails
-
pnInvoice
private javax.swing.JPanel pnInvoice
-
pnReport
private javax.swing.JPanel pnReport
-
rbInvoiceProjectsTasks
private javax.swing.JRadioButton rbInvoiceProjectsTasks
-
rbInvoiceTasks
private javax.swing.JRadioButton rbInvoiceTasks
-
rbReportProjects
private javax.swing.JRadioButton rbReportProjects
-
rbReportTasks
private javax.swing.JRadioButton rbReportTasks
-
spCustomerDetails
private javax.swing.JScrollPane spCustomerDetails
-
spDueDate
private javax.swing.JSpinner spDueDate
-
spPaymentDetails
private javax.swing.JScrollPane spPaymentDetails
-
spYourDetails
private javax.swing.JScrollPane spYourDetails
-
taCustomerDetails
private javax.swing.JTextArea taCustomerDetails
-
taPaymentDetails
private javax.swing.JTextArea taPaymentDetails
-
taYourDetails
private javax.swing.JTextArea taYourDetails
-
txCurrency
private javax.swing.JTextField txCurrency
-
txInvoiceTitle
private javax.swing.JTextField txInvoiceTitle
-
txPrice
private javax.swing.JTextField txPrice
-
txReportTitle
private javax.swing.JTextField txReportTitle
-
txTax
private javax.swing.JTextField txTax
-
previousDueDays
private java.lang.Integer previousDueDays
-
sortBy
private java.util.Vector sortBy
-
-
Constructor Detail
-
ReportContentWizardStep
public ReportContentWizardStep(GenericWizard wizard)
Creates new form ReportTypeWizardStep
-
-
Method Detail
-
getFont
public java.awt.Font getFont()
Returns font that should be used for all widgets in this component based on the language preferences specified by user.- Specified by:
getFontin interfacejava.awt.MenuContainer- Overrides:
getFontin classWizardStep- Returns:
- Font to be used in this component.
-
initComponents
private void initComponents()
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
-
rbReportTasksActionPerformed
private void rbReportTasksActionPerformed(java.awt.event.ActionEvent evt)
Method called when user wants that table rows represent tasks.- Parameters:
evt- Event that generated this call.
-
rbReportProjectsActionPerformed
private void rbReportProjectsActionPerformed(java.awt.event.ActionEvent evt)
Method called when user wants that table rows represent projects.- Parameters:
evt- Event that generated this call.
-
cbDurationActionPerformed
private void cbDurationActionPerformed(java.awt.event.ActionEvent evt)
Method called when user wants to (not)include duration for each row.- Parameters:
evt- Event that generated this call.
-
cbProjectsTasksActionPerformed
private void cbProjectsTasksActionPerformed(java.awt.event.ActionEvent evt)
Method called when user wants to (not)enumerate projects/tasks for each row.- Parameters:
evt- Event that generated this call.
-
cbOccurrencesActionPerformed
private void cbOccurrencesActionPerformed(java.awt.event.ActionEvent evt)
Method called when user wants to (not)include number of occurrences for each row.- Parameters:
evt- Event that generated this call.
-
cbNotesActionPerformed
private void cbNotesActionPerformed(java.awt.event.ActionEvent evt)
Method called when user wants to (not)include notes for each row.- Parameters:
evt- Event that generated this call.
-
rbInvoiceProjectsTasksActionPerformed
private void rbInvoiceProjectsTasksActionPerformed(java.awt.event.ActionEvent evt)
User wants to list tasks grouped in projects.- Parameters:
evt- Event that generated this call.
-
rbInvoiceTasksActionPerformed
private void rbInvoiceTasksActionPerformed(java.awt.event.ActionEvent evt)
User wants to list only individual tasks.- Parameters:
evt- Event that generated this call.
-
txCurrencyFocusLost
private void txCurrencyFocusLost(java.awt.event.FocusEvent evt)
Method called when Currency textfield loses its focus.- Parameters:
evt- Event that generated this call.
-
txTaxFocusLost
private void txTaxFocusLost(java.awt.event.FocusEvent evt)
Method called when Currency textfield loses its focus.- Parameters:
evt- Event that generated this call.
-
txPriceFocusLost
private void txPriceFocusLost(java.awt.event.FocusEvent evt)
Method called when Currency textfield loses its focus.- Parameters:
evt- Event that generated this call.
-
keyPressed
private void keyPressed(java.awt.event.KeyEvent evt)
Method called when user pressed some key.- Parameters:
evt- Event that generated this call.
-
spDueDateStateChanged
private void spDueDateStateChanged(javax.swing.event.ChangeEvent evt)
-
propertyChange
public void propertyChange(java.beans.PropertyChangeEvent evt)
Method called when property of some other wizard step changed.- Specified by:
propertyChangein interfacejava.beans.PropertyChangeListener- Specified by:
propertyChangein classWizardStep- Parameters:
evt- Event that generated this call.
-
isSetCorrectly
protected boolean isSetCorrectly()
Returns whether everything is set correctly in the wizard step.- Specified by:
isSetCorrectlyin classWizardStep- Returns:
- True if wizard step is set correctly.
-
setFocus
protected void setFocus()
Method to set focus to the initial component.- Specified by:
setFocusin classWizardStep
-
setProperties
private void setProperties()
-
-