ssbm.presentation.gui
Class VisualizzazioneBilancio

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 ssbm.presentation.gui.VisualizzazioneBilancio
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible, EditableTable, Form, Searchable

public class VisualizzazioneBilancio
extends javax.swing.JPanel
implements EditableTable, Searchable

Questa classe rappresenta la schermata contenente il form per il calcolo e la visualizzazione del bilancio relativo ad un periodo di tempo.

Author:
Salvatore Piccione
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  javax.swing.JButton calcola
           
private static int CODICE_FORM
           
private static java.lang.String DATE_FORMAT
           
private static java.text.DateFormat DATE_FORMATTER
           
private static java.text.NumberFormat INCOMING_NUMBER_FORMATTER
           
private  javax.swing.JLabel lbl_data_fine
           
private  javax.swing.JLabel lbl_data_inizio
           
private  javax.swing.JLabel lbl_intestazione
           
private  javax.swing.JLabel lbl_saldo
           
private  MovimentazioniTableModel movimentazioni
           
private static java.text.NumberFormat NUMBER_FORMATTER
           
private  javax.swing.JPanel pnl_carica_elenco
           
private  com.toedter.calendar.JDateChooser scegli_data_fine
           
private  com.toedter.calendar.JDateChooser scegli_data_inizio
           
private  javax.swing.JScrollPane scrol_movimentazioni
           
private static long serialVersionUID
           
private  javax.swing.JTable tbl_movimentazioni
           
private  javax.swing.JFormattedTextField txt_saldo
           
private static java.lang.String USERNAME_PROP_NAME
           
 
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
VisualizzazioneBilancio()
           
 
Method Summary
 void deleteSelectedRows()
          Rimuove le righe selezionate.
private  javax.swing.JButton getCarica()
           
 int getFormCode()
          Restituisce il codice numerico che identifica il form.
private  javax.swing.JLabel getLbl_data_fine()
           
private  javax.swing.JLabel getLbl_data_inizio()
           
private  javax.swing.JLabel getLbl_saldo()
           
 DataContainer getParameters()
          Recupera i parametri di ricerca inseriti negli appositi campi del form.
private  javax.swing.JPanel getPnl_carica_elenco()
           
private  com.toedter.calendar.JDateChooser getScegli_data_fine()
           
private  com.toedter.calendar.JDateChooser getScegli_data_inizio()
           
private  javax.swing.JFormattedTextField getTxt_saldo()
           
private  void initGUI()
           
 void loadTable(DataContainersList data)
          Imposta il contenuto di una tabella.
private  void setForm()
           
 
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

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

lbl_intestazione

private javax.swing.JLabel lbl_intestazione

scrol_movimentazioni

private javax.swing.JScrollPane scrol_movimentazioni

tbl_movimentazioni

private javax.swing.JTable tbl_movimentazioni

movimentazioni

private MovimentazioniTableModel movimentazioni

pnl_carica_elenco

private javax.swing.JPanel pnl_carica_elenco

calcola

private javax.swing.JButton calcola

lbl_data_fine

private javax.swing.JLabel lbl_data_fine

lbl_data_inizio

private javax.swing.JLabel lbl_data_inizio

scegli_data_fine

private com.toedter.calendar.JDateChooser scegli_data_fine

scegli_data_inizio

private com.toedter.calendar.JDateChooser scegli_data_inizio

CODICE_FORM

private static final int CODICE_FORM
See Also:
Constant Field Values

USERNAME_PROP_NAME

private static final java.lang.String USERNAME_PROP_NAME
See Also:
Constant Field Values

lbl_saldo

private javax.swing.JLabel lbl_saldo

txt_saldo

private javax.swing.JFormattedTextField txt_saldo

DATE_FORMAT

private static final java.lang.String DATE_FORMAT
See Also:
Constant Field Values

DATE_FORMATTER

private static final java.text.DateFormat DATE_FORMATTER

NUMBER_FORMATTER

private static final java.text.NumberFormat NUMBER_FORMATTER

INCOMING_NUMBER_FORMATTER

private static final java.text.NumberFormat INCOMING_NUMBER_FORMATTER
Constructor Detail

VisualizzazioneBilancio

public VisualizzazioneBilancio()
Method Detail

initGUI

private void initGUI()

getFormCode

public int getFormCode()
Description copied from interface: Form
Restituisce il codice numerico che identifica il form.

Specified by:
getFormCode in interface Form
Returns:
il codice numerico che identifica il form.
See Also:
GUIConstants.FormCode

setForm

private void setForm()

getScegli_data_inizio

private com.toedter.calendar.JDateChooser getScegli_data_inizio()

getScegli_data_fine

private com.toedter.calendar.JDateChooser getScegli_data_fine()

getLbl_data_inizio

private javax.swing.JLabel getLbl_data_inizio()

getLbl_data_fine

private javax.swing.JLabel getLbl_data_fine()

getCarica

private javax.swing.JButton getCarica()

getPnl_carica_elenco

private javax.swing.JPanel getPnl_carica_elenco()

getTxt_saldo

private javax.swing.JFormattedTextField getTxt_saldo()

getLbl_saldo

private javax.swing.JLabel getLbl_saldo()

deleteSelectedRows

public void deleteSelectedRows()
Description copied from interface: EditableTable
Rimuove le righe selezionate.

Specified by:
deleteSelectedRows in interface EditableTable

loadTable

public void loadTable(DataContainersList data)
               throws java.text.ParseException
Description copied from interface: EditableTable
Imposta il contenuto di una tabella.

Specified by:
loadTable in interface EditableTable
Parameters:
data - l'esemplare di DataContainersList contenente i dati con i quali popolare la tabella.
Throws:
java.text.ParseException - se il contenuto di una cella non rispetta il formato stabilito.

getParameters

public DataContainer getParameters()
Description copied from interface: Searchable
Recupera i parametri di ricerca inseriti negli appositi campi del form.

Specified by:
getParameters in interface Searchable
Returns:
l'esemplare di DataContainer contenente i parametri di ricerca inseriti.