fr.inria.oadymppac.application
Class MainApplication

java.lang.Object
  extended byfr.inria.oadymppac.application.MainApplication
All Implemented Interfaces:
ApplicationProperties, Properties

public class MainApplication
extends java.lang.Object
implements Properties, ApplicationProperties

The main application class

Author:
raf

Field Summary
 
Fields inherited from interface fr.inria.oadymppac.application.ApplicationProperties
ACCELERATED_FRAME_CLASS, ACTION_FACTORY, APPLICATION, APPLICATION_FRAME_DECORATOR, CURRENT_DOCUMENT, CURRENT_VISUALIZATION, FILE_MANAGER, HTTP_PROXY, HTTP_PROXYPORT, LOGGER, MAIN_FRAME, PANEL_FACTORY, VISUALIZATION_FRAME_DECORATOR, XML_VALIDATION
 
Constructor Summary
MainApplication()
          Default Constructor
 
Method Summary
 int getBuildVersion()
           
 FileManager getFileManager()
           
static javax.swing.JFrame getFrame()
           
 java.lang.String getInternalVersion()
           
 int getMajorVersion()
           
 int getMinorVersion()
           
 PanelFactory getPanelFactory()
           
 Properties getProperties()
           
 java.lang.Object getProperty(java.lang.String property)
           
 void initApplication()
          init all the sub part of the application
 void setFileManager(FileManager fileManager)
           
 void setProperties(Properties properties)
          set the property table of the application
 void setProperty(java.lang.String property, java.lang.Object value)
          Set a given property
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MainApplication

public MainApplication()
Default Constructor

Method Detail

initApplication

public void initApplication()
init all the sub part of the application


getFrame

public static javax.swing.JFrame getFrame()
Returns:
Returns the frame.

getFileManager

public FileManager getFileManager()
Returns:
Returns the fileManager.

getPanelFactory

public PanelFactory getPanelFactory()
Returns:
Returns the panelFactory.

setFileManager

public void setFileManager(FileManager fileManager)
Parameters:
fileManager - The fileManager to set.

getProperties

public Properties getProperties()
Specified by:
getProperties in interface Properties
Returns:
the property tezable of the application

getProperty

public java.lang.Object getProperty(java.lang.String property)
Specified by:
getProperty in interface Properties
Parameters:
property - the property name
Returns:
the property value if defined or null

setProperties

public void setProperties(Properties properties)
set the property table of the application

Specified by:
setProperties in interface Properties
Parameters:
properties - to set

setProperty

public void setProperty(java.lang.String property,
                        java.lang.Object value)
Set a given property

Specified by:
setProperty in interface Properties
Parameters:
property - the propety name
value - the value for the property

getBuildVersion

public int getBuildVersion()
Returns:
Returns the BUILD_VERSION.

getInternalVersion

public java.lang.String getInternalVersion()
Returns:
Returns the INTERNAL_VERSION.

getMajorVersion

public int getMajorVersion()
Returns:
Returns the MAJOR_VERSION.

getMinorVersion

public int getMinorVersion()
Returns:
Returns the MINOR_VERSION.