org.jbudget.gui
Class MainWindowBase

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by java.awt.Window
              extended by java.awt.Frame
                  extended by javax.swing.JFrame
                      extended by org.jbudget.gui.MainWindowBase
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible, javax.swing.RootPaneContainer, javax.swing.WindowConstants
Direct Known Subclasses:
MainWindow

public class MainWindowBase
extends javax.swing.JFrame

This is a base class for the MainWindow class. Here the GUI components contained in the main window are assembled in a signal frame. Mostly this class is responsible for handing the transaction/allocation list components.

Author:
petrov
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JFrame
javax.swing.JFrame.AccessibleJFrame
 
Nested classes/interfaces inherited from class java.awt.Frame
java.awt.Frame.AccessibleAWTFrame
 
Nested classes/interfaces inherited from class java.awt.Window
java.awt.Window.AccessibleAWTWindow
 
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  javax.swing.JMenuItem aboutBtn
           
protected  javax.swing.JMenu accountsMenu
           
protected  javax.swing.JRadioButtonMenuItem actAndBalRendererBtn
           
protected  javax.swing.JRadioButtonMenuItem activityRendererBtn
           
protected  javax.swing.JMenuItem addAllocationBtn
           
protected  javax.swing.JMenuItem addMonthBtn
           
protected  javax.swing.JMenuItem addTransactionBtn
           
private  AllocationListPanel allocationsPanel
          List of Allocations (created on demand)
protected  javax.swing.JMenuItem analysisBtn
           
protected  javax.swing.ButtonGroup backgroundGroup1
           
protected  javax.swing.ButtonGroup backgroundGroup2
           
protected  javax.swing.JMenu backgroundMenu
           
protected  javax.swing.JRadioButtonMenuItem balanceRendererBtn
           
protected  javax.swing.JMenu budgetsMenu
           
protected  javax.swing.JMenuItem budgetWisardBtn
           
protected  java.util.Calendar calendar
          A calendar used for time tracking
protected  javax.swing.JMenuItem changeBudgetBtn
           
protected  javax.swing.JMenuItem closeAllBtn
           
protected  javax.swing.JMenuItem closeMonthBtn
           
protected  javax.swing.JCheckBoxMenuItem collapseAccountsBtn
           
protected  javax.swing.JCheckBoxMenuItem collapseCategoriesBtn
           
protected  DatesInfoTable.Colors colors
          An object that is used to store the colors used to represent accounts and expense categories.
protected  javax.swing.JMenuItem dataDirBtn
           
protected  javax.swing.JTabbedPane dataPane
          Main data window
protected  javax.swing.JRadioButtonMenuItem detailedRendererBtn
           
protected  java.util.List<org.jbudget.Core.Month> displayedMonths
          A list of displayed months
protected  javax.swing.JMenuItem editAccountBtn
           
protected  javax.swing.JMenuItem exitBtn
           
protected  javax.swing.JMenu fileMenu
           
private  TransactionFilterPanel filterPanel
          A panel that is used to edit the filter.
protected  javax.swing.JRadioButtonMenuItem fullStructureBackgrBtn
           
protected  javax.swing.JMenuItem getStartedBtn
           
protected  javax.swing.JMenu helpMenu
           
protected  javax.swing.JCheckBoxMenuItem hideEmptyAccountsBtn
           
protected  javax.swing.JCheckBoxMenuItem hideEmptyCategoriesBtn
           
protected  javax.swing.JCheckBoxMenuItem hideIdleAccountsBtn
           
protected  javax.swing.JCheckBoxMenuItem hideIdleCategoriesBtn
           
protected  javax.swing.JMenu hideMenu
           
protected  javax.swing.JCheckBoxMenuItem hideSubcategoriesBtn
           
protected  javax.swing.ButtonGroup highlightGroup
           
protected  javax.swing.JMenu highlightMenu
           
protected  javax.swing.JRadioButtonMenuItem highltOffBtn
           
protected  javax.swing.JRadioButtonMenuItem highltUnderlBtn
           
protected  javax.swing.JMenuBar menuBar
          Main menu bar
protected  javax.swing.JMenu monthMenu
           
protected  javax.swing.JMenuItem newAccountBtn
           
protected  javax.swing.JMenuItem newBudgetBtn
           
protected  javax.swing.JMenuItem newUserBtn
           
protected  javax.swing.JRadioButtonMenuItem noStructureBackgrBtn
           
protected  javax.swing.JMenuItem openMonthBtn
           
protected  javax.swing.JRadioButtonMenuItem plainBackgrBtn
           
protected  javax.swing.JMenuItem preferencesBtn
           
protected  javax.swing.JMenuItem removeAccountBtn
           
protected  javax.swing.JMenuItem removeBudgetBtn
           
protected  javax.swing.JMenuItem removeUnusedAccountsBtn
           
protected  javax.swing.JMenuItem removeUnusedBudgetsBtn
           
protected  javax.swing.JMenuItem removeUserBtn
           
protected  javax.swing.ButtonGroup renderersGroup
           
protected  javax.swing.JMenu renderersMenu
           
protected  DatesInfoTable.RenderingState renderingState
          An object that controlls the rendering of the accunt/expense category table.
private  ReportPanel reportPanel
          Report panel.
protected  javax.swing.JMenuItem saveAllBtn
           
protected  javax.swing.JMenuItem saveMonthBtn
           
protected  javax.swing.JMenuItem showBudgetBtn
           
protected  javax.swing.JRadioButtonMenuItem simpleStructureBackgrBtn
           
private  TransactionSorterPanel sorterPanel
          GUI component that is used to change the sorting of the transactions and allocations in corresponding lists.
protected  javax.swing.JRadioButtonMenuItem stripedBackgrBtn
           
protected  javax.swing.JMenuItem switchUserBtn
           
protected  javax.swing.JMenu systemMenu
           
protected  DatesInfoTableModel.State tableState
          An object that describes what columns are shown in month panels.
protected  javax.swing.JMenu toolsMenu
           
private  TransactionListPanel transactionsPanel
          List of Transactions (created on demand)
protected  javax.swing.JMenuItem viewAccountBtn
           
protected  javax.swing.JMenuItem viewBudgetBtn
           
protected  javax.swing.JMenu viewMenu
           
 
Fields inherited from class javax.swing.JFrame
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled
 
Fields inherited from class java.awt.Frame
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface javax.swing.WindowConstants
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
MainWindowBase()
           
 
Method Summary
protected  void arrangeMenus()
          Puts all components in the menu bar.
 AllocationListPanel getAllocationsPanel()
          Returns the AllocationListPanel object taht is used to display a list of allocations.
 TransactionListPanel getTransactionsPanel()
          Returns the TransactionListPanel object taht is used to display a list of transactoins.
 
Methods inherited from class javax.swing.JFrame
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update
 
Methods inherited from class java.awt.Frame
addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated
 
Methods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOwnedWindows, getOwner, getOwnerlessWindows, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isShowing, pack, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImages, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setVisible, show, toBack, toFront
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, 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, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, setBackground, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.awt.MenuContainer
getFont, postEvent
 

Field Detail

dataPane

protected final javax.swing.JTabbedPane dataPane
Main data window


displayedMonths

protected final java.util.List<org.jbudget.Core.Month> displayedMonths
A list of displayed months


calendar

protected final java.util.Calendar calendar
A calendar used for time tracking


tableState

protected DatesInfoTableModel.State tableState
An object that describes what columns are shown in month panels.


renderingState

protected DatesInfoTable.RenderingState renderingState
An object that controlls the rendering of the accunt/expense category table.


colors

protected DatesInfoTable.Colors colors
An object that is used to store the colors used to represent accounts and expense categories.


transactionsPanel

private final TransactionListPanel transactionsPanel
List of Transactions (created on demand)


allocationsPanel

private final AllocationListPanel allocationsPanel
List of Allocations (created on demand)


reportPanel

private final ReportPanel reportPanel
Report panel.


filterPanel

private final TransactionFilterPanel filterPanel
A panel that is used to edit the filter.


sorterPanel

private final TransactionSorterPanel sorterPanel
GUI component that is used to change the sorting of the transactions and allocations in corresponding lists.


menuBar

protected final javax.swing.JMenuBar menuBar
Main menu bar


fileMenu

protected final javax.swing.JMenu fileMenu

openMonthBtn

protected final javax.swing.JMenuItem openMonthBtn

addMonthBtn

protected final javax.swing.JMenuItem addMonthBtn

saveAllBtn

protected final javax.swing.JMenuItem saveAllBtn

closeAllBtn

protected final javax.swing.JMenuItem closeAllBtn

exitBtn

protected final javax.swing.JMenuItem exitBtn

viewMenu

protected final javax.swing.JMenu viewMenu

collapseAccountsBtn

protected final javax.swing.JCheckBoxMenuItem collapseAccountsBtn

collapseCategoriesBtn

protected final javax.swing.JCheckBoxMenuItem collapseCategoriesBtn

hideSubcategoriesBtn

protected final javax.swing.JCheckBoxMenuItem hideSubcategoriesBtn

hideMenu

protected final javax.swing.JMenu hideMenu

hideEmptyAccountsBtn

protected final javax.swing.JCheckBoxMenuItem hideEmptyAccountsBtn

hideIdleAccountsBtn

protected final javax.swing.JCheckBoxMenuItem hideIdleAccountsBtn

hideEmptyCategoriesBtn

protected final javax.swing.JCheckBoxMenuItem hideEmptyCategoriesBtn

hideIdleCategoriesBtn

protected final javax.swing.JCheckBoxMenuItem hideIdleCategoriesBtn

renderersMenu

protected final javax.swing.JMenu renderersMenu

detailedRendererBtn

protected final javax.swing.JRadioButtonMenuItem detailedRendererBtn

activityRendererBtn

protected final javax.swing.JRadioButtonMenuItem activityRendererBtn

balanceRendererBtn

protected final javax.swing.JRadioButtonMenuItem balanceRendererBtn

actAndBalRendererBtn

protected final javax.swing.JRadioButtonMenuItem actAndBalRendererBtn

backgroundMenu

protected final javax.swing.JMenu backgroundMenu

plainBackgrBtn

protected final javax.swing.JRadioButtonMenuItem plainBackgrBtn

stripedBackgrBtn

protected final javax.swing.JRadioButtonMenuItem stripedBackgrBtn

fullStructureBackgrBtn

protected final javax.swing.JRadioButtonMenuItem fullStructureBackgrBtn

simpleStructureBackgrBtn

protected final javax.swing.JRadioButtonMenuItem simpleStructureBackgrBtn

noStructureBackgrBtn

protected final javax.swing.JRadioButtonMenuItem noStructureBackgrBtn

highlightMenu

protected final javax.swing.JMenu highlightMenu

highltOffBtn

protected final javax.swing.JRadioButtonMenuItem highltOffBtn

highltUnderlBtn

protected final javax.swing.JRadioButtonMenuItem highltUnderlBtn

renderersGroup

protected final javax.swing.ButtonGroup renderersGroup

backgroundGroup1

protected final javax.swing.ButtonGroup backgroundGroup1

backgroundGroup2

protected final javax.swing.ButtonGroup backgroundGroup2

highlightGroup

protected final javax.swing.ButtonGroup highlightGroup

monthMenu

protected final javax.swing.JMenu monthMenu

saveMonthBtn

protected final javax.swing.JMenuItem saveMonthBtn

closeMonthBtn

protected final javax.swing.JMenuItem closeMonthBtn

showBudgetBtn

protected final javax.swing.JMenuItem showBudgetBtn

changeBudgetBtn

protected final javax.swing.JMenuItem changeBudgetBtn

addAllocationBtn

protected final javax.swing.JMenuItem addAllocationBtn

addTransactionBtn

protected final javax.swing.JMenuItem addTransactionBtn

budgetsMenu

protected final javax.swing.JMenu budgetsMenu

viewBudgetBtn

protected final javax.swing.JMenuItem viewBudgetBtn

newBudgetBtn

protected final javax.swing.JMenuItem newBudgetBtn

budgetWisardBtn

protected final javax.swing.JMenuItem budgetWisardBtn

removeBudgetBtn

protected final javax.swing.JMenuItem removeBudgetBtn

removeUnusedBudgetsBtn

protected final javax.swing.JMenuItem removeUnusedBudgetsBtn

accountsMenu

protected final javax.swing.JMenu accountsMenu

viewAccountBtn

protected final javax.swing.JMenuItem viewAccountBtn

editAccountBtn

protected final javax.swing.JMenuItem editAccountBtn

newAccountBtn

protected final javax.swing.JMenuItem newAccountBtn

removeAccountBtn

protected final javax.swing.JMenuItem removeAccountBtn

removeUnusedAccountsBtn

protected final javax.swing.JMenuItem removeUnusedAccountsBtn

toolsMenu

protected final javax.swing.JMenu toolsMenu

analysisBtn

protected final javax.swing.JMenuItem analysisBtn

preferencesBtn

protected final javax.swing.JMenuItem preferencesBtn

systemMenu

protected final javax.swing.JMenu systemMenu

switchUserBtn

protected final javax.swing.JMenuItem switchUserBtn

newUserBtn

protected final javax.swing.JMenuItem newUserBtn

removeUserBtn

protected final javax.swing.JMenuItem removeUserBtn

dataDirBtn

protected final javax.swing.JMenuItem dataDirBtn

helpMenu

protected final javax.swing.JMenu helpMenu

getStartedBtn

protected final javax.swing.JMenuItem getStartedBtn

aboutBtn

protected final javax.swing.JMenuItem aboutBtn
Constructor Detail

MainWindowBase

MainWindowBase()
Method Detail

getTransactionsPanel

public TransactionListPanel getTransactionsPanel()
Returns the TransactionListPanel object taht is used to display a list of transactoins.


getAllocationsPanel

public AllocationListPanel getAllocationsPanel()
Returns the AllocationListPanel object taht is used to display a list of allocations.


arrangeMenus

protected void arrangeMenus()
Puts all components in the menu bar.