Class GanttProject

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Window
                    |
                    +--java.awt.Frame
                          |
                          +--javax.swing.JFrame
                                |
                                +--GanttProject
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.event.ActionListener, java.util.EventListener, java.awt.image.ImageObserver, java.awt.MenuContainer, javax.swing.RootPaneContainer, java.io.Serializable, javax.swing.WindowConstants

public class GanttProject
extends javax.swing.JFrame
implements java.awt.event.ActionListener

Main frame of the project

See Also:
Serialized Form

Field Summary
 javax.swing.JButton bDelete
          The differents button of toolbar
 javax.swing.JButton bDown
          The differents button of toolbar
 javax.swing.JButton bNew
          The differents button of toolbar
 javax.swing.JButton bNewTask
          The differents button of toolbar
 javax.swing.JButton bNext
          The differents button of toolbar
 javax.swing.JButton bNotes
          The differents button of toolbar
 javax.swing.JButton bOpen
          The differents button of toolbar
 javax.swing.JButton bPrev
          The differents button of toolbar
 javax.swing.JButton bPrint
          The differents button of toolbar
 javax.swing.JButton bProperties
          The differents button of toolbar
 javax.swing.JButton bQuit
          The differents button of toolbar
 javax.swing.JButton bSave
          The differents button of toolbar
 javax.swing.JButton bSaveAs
          The differents button of toolbar
 javax.swing.JButton bUp
          The differents button of toolbar
 javax.swing.JButton bZoomIn
          The differents button of toolbar
 javax.swing.JButton bZoomOut
          The differents button of toolbar
 java.lang.String decription
          A short description of it
 javax.swing.JMenu mHelp
          The differetns menus
 javax.swing.JMenu mHuman
          The differetns menus
 javax.swing.JMenuItem miAbout
          The differetns menuitem
 javax.swing.JMenuItem miDeleteTask
          The differetns menuitem
 javax.swing.JMenuItem miDelHuman
          The differetns menuitem
 javax.swing.JMenuItem miDown
          The differetns menuitem
 javax.swing.JMenuItem miEnglish
          The differetns menuitem
 javax.swing.JMenuItem miEspanol
          The differetns menuitem
 javax.swing.JMenuItem miFrench
          The differetns menuitem
 javax.swing.JMenuItem miNew
          The differetns menuitem
 javax.swing.JMenuItem miNewHuman
          The differetns menuitem
 javax.swing.JMenuItem miNewTask
          The differetns menuitem
 javax.swing.JMenuItem miNotesTask
          The differetns menuitem
 javax.swing.JMenuItem miOpen
          The differetns menuitem
 javax.swing.JMenuItem miPrint
          The differetns menuitem
 javax.swing.JMenuItem miPropertiesTask
          The differetns menuitem
 javax.swing.JMenuItem miPropHuman
          The differetns menuitem
 javax.swing.JMenuItem miPropProj
          The differetns menuitem
 javax.swing.JMenuItem miQuit
          The differetns menuitem
 javax.swing.JMenuItem miSave
          The differetns menuitem
 javax.swing.JMenuItem miSaveAs
          The differetns menuitem
 javax.swing.JMenuItem miUp
          The differetns menuitem
 javax.swing.JMenuItem miWebPage
          The differetns menuitem
 javax.swing.JMenu mLanguage
          The differetns menus
 javax.swing.JMenu mProject
          The differetns menus
 javax.swing.JMenu mTask
          The differetns menus
 java.lang.String organization
          The name of the organisation
 java.lang.String projectfile
          The project filename
 java.lang.String projectName
          The name of the project
 java.lang.String version
           
 
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
GanttProject(java.lang.String[] arg)
          Constructor
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent evt)
          A menu has been activate
 void addButtons(javax.swing.JToolBar toolBar)
          Create the button on toolbar
 void changeLanguage()
          Function to change language of the project
 void changeLanguageOfMenu()
          Set the menus language
 void createDefaultTree(GanttTree treePanel)
          Create a default project
 javax.swing.JMenuItem createNewItem(java.lang.String icon)
          Create an item with an icon
 javax.swing.JMenuItem createNewItem(java.lang.String label, java.lang.String icon)
          Create an item with a label and an icon
 void deleteTask()
          Delete the currant task
 void editSettings()
          Function that launch the dialog to edit project properties
static void main(java.lang.String[] arg)
          The main
 void newProject()
          Create a new project
 void newTask()
          Create a new task
 void notesTask()
          Edit the notes of the task.
 void openProject()
          Open a project with dialog box
 void openWebPage()
          Open the web page
 void propertiesTask()
          Edit task parameters
 void quitApplication()
          Quit the application
 void reallyOpen(java.io.File file)
          Function to open a project from a file.
 boolean saveAsProject()
          Save the project as (with a dialog file chooser)
 void saveProject()
          Save the project on a file
 
Methods inherited from class javax.swing.JFrame
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update
 
Methods inherited from class java.awt.Frame
addNotify, finalize, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setIconImage, 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, getInputContext, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, hide, isActive, isFocusableWindow, isFocusCycleRoot, isFocused, isShowing, pack, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationRelativeTo, 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, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, 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, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, 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, isOpaque, 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, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.awt.MenuContainer
getFont, postEvent
 

Field Detail

version

public final java.lang.String version
See Also:
Constant Field Values

mProject

public javax.swing.JMenu mProject
The differetns menus


mTask

public javax.swing.JMenu mTask
The differetns menus


mHuman

public javax.swing.JMenu mHuman
The differetns menus


mLanguage

public javax.swing.JMenu mLanguage
The differetns menus


mHelp

public javax.swing.JMenu mHelp
The differetns menus


miNew

public javax.swing.JMenuItem miNew
The differetns menuitem


miOpen

public javax.swing.JMenuItem miOpen
The differetns menuitem


miSave

public javax.swing.JMenuItem miSave
The differetns menuitem


miSaveAs

public javax.swing.JMenuItem miSaveAs
The differetns menuitem


miPrint

public javax.swing.JMenuItem miPrint
The differetns menuitem


miPropProj

public javax.swing.JMenuItem miPropProj
The differetns menuitem


miQuit

public javax.swing.JMenuItem miQuit
The differetns menuitem


miNewTask

public javax.swing.JMenuItem miNewTask
The differetns menuitem


miDeleteTask

public javax.swing.JMenuItem miDeleteTask
The differetns menuitem


miPropertiesTask

public javax.swing.JMenuItem miPropertiesTask
The differetns menuitem


miNotesTask

public javax.swing.JMenuItem miNotesTask
The differetns menuitem


miUp

public javax.swing.JMenuItem miUp
The differetns menuitem


miDown

public javax.swing.JMenuItem miDown
The differetns menuitem


miNewHuman

public javax.swing.JMenuItem miNewHuman
The differetns menuitem


miDelHuman

public javax.swing.JMenuItem miDelHuman
The differetns menuitem


miPropHuman

public javax.swing.JMenuItem miPropHuman
The differetns menuitem


miFrench

public javax.swing.JMenuItem miFrench
The differetns menuitem


miEnglish

public javax.swing.JMenuItem miEnglish
The differetns menuitem


miEspanol

public javax.swing.JMenuItem miEspanol
The differetns menuitem


miWebPage

public javax.swing.JMenuItem miWebPage
The differetns menuitem


miAbout

public javax.swing.JMenuItem miAbout
The differetns menuitem


bNew

public javax.swing.JButton bNew
The differents button of toolbar


bOpen

public javax.swing.JButton bOpen
The differents button of toolbar


bSave

public javax.swing.JButton bSave
The differents button of toolbar


bSaveAs

public javax.swing.JButton bSaveAs
The differents button of toolbar


bPrint

public javax.swing.JButton bPrint
The differents button of toolbar


bQuit

public javax.swing.JButton bQuit
The differents button of toolbar


bNewTask

public javax.swing.JButton bNewTask
The differents button of toolbar


bDelete

public javax.swing.JButton bDelete
The differents button of toolbar


bProperties

public javax.swing.JButton bProperties
The differents button of toolbar


bNotes

public javax.swing.JButton bNotes
The differents button of toolbar


bUp

public javax.swing.JButton bUp
The differents button of toolbar


bDown

public javax.swing.JButton bDown
The differents button of toolbar


bPrev

public javax.swing.JButton bPrev
The differents button of toolbar


bNext

public javax.swing.JButton bNext
The differents button of toolbar


bZoomIn

public javax.swing.JButton bZoomIn
The differents button of toolbar


bZoomOut

public javax.swing.JButton bZoomOut
The differents button of toolbar


projectfile

public java.lang.String projectfile
The project filename


projectName

public java.lang.String projectName
The name of the project


decription

public java.lang.String decription
A short description of it


organization

public java.lang.String organization
The name of the organisation

Constructor Detail

GanttProject

public GanttProject(java.lang.String[] arg)
Constructor

Method Detail

createNewItem

public javax.swing.JMenuItem createNewItem(java.lang.String icon)
Create an item with an icon


createNewItem

public javax.swing.JMenuItem createNewItem(java.lang.String label,
                                           java.lang.String icon)
Create an item with a label and an icon


changeLanguage

public void changeLanguage()
Function to change language of the project


changeLanguageOfMenu

public void changeLanguageOfMenu()
Set the menus language


addButtons

public void addButtons(javax.swing.JToolBar toolBar)
Create the button on toolbar


actionPerformed

public void actionPerformed(java.awt.event.ActionEvent evt)
A menu has been activate

Specified by:
actionPerformed in interface java.awt.event.ActionListener

createDefaultTree

public void createDefaultTree(GanttTree treePanel)
Create a default project


newTask

public void newTask()
Create a new task


deleteTask

public void deleteTask()
Delete the currant task


propertiesTask

public void propertiesTask()
Edit task parameters


notesTask

public void notesTask()
Edit the notes of the task.


newProject

public void newProject()
Create a new project


openProject

public void openProject()
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
Open a project with dialog box

java.io.IOException
java.lang.ClassNotFoundException

reallyOpen

public void reallyOpen(java.io.File file)
                throws java.io.IOException,
                       java.lang.ClassNotFoundException
Function to open a project from a file.

java.io.IOException
java.lang.ClassNotFoundException

saveAsProject

public boolean saveAsProject()
                      throws java.io.IOException
Save the project as (with a dialog file chooser)

java.io.IOException

saveProject

public void saveProject()
                 throws java.io.IOException
Save the project on a file

java.io.IOException

editSettings

public void editSettings()
Function that launch the dialog to edit project properties


quitApplication

public void quitApplication()
Quit the application


openWebPage

public void openWebPage()
                 throws java.io.IOException
Open the web page

java.io.IOException

main

public static void main(java.lang.String[] arg)
The main