org.chorem.lima.ui
Class MainViewHandler

java.lang.Object
  extended by org.chorem.lima.ui.MainViewHandler

public class MainViewHandler
extends Object

Handler for main view. Date: 8 nov. 2009 Time: 09:59:54

Version:
$Revision: 3248 $ Last update : $Date: 2011-08-04 13:09:14 +0200 (Thu, 04 Aug 2011) $ By : $Author: tchemit $
Author:
chemit

Constructor Summary
MainViewHandler()
           
 
Method Summary
 void changeLanguage(MainView mainUI, Locale newLocale)
           
 void changeScreen(MainView ui, boolean fullscreen)
          Méthode pour changer de mode d'affichage.
 void close(MainView ui)
          Ferme l'application.
 void closeHelp(jaxx.runtime.JAXXContext context)
           
protected  boolean ensureModification(jaxx.runtime.JAXXContext rootContext)
          Test if there is some modification on screen,
protected  MainView getUI(jaxx.runtime.JAXXContext context)
           
 void gotoSite(jaxx.runtime.JAXXContext rootContext)
           
 MainView initUI(LimaContext rootContext, boolean fullscreen)
          Methode pour initialiser l'ui principale sans l'afficher.
protected  void reloadUI(LimaContext rootContext, boolean fullscreen)
          Permet de recharger l'ui principale et de changer de le mode d'affichage.
 void showAbout(MainView ui)
           
 void showAccountReports(jaxx.runtime.JAXXContext rootContext)
          Show account table report to view an account on a period
 void showAccountView(jaxx.runtime.JAXXContext rootContext)
          Show account tree table view to create or modify accounts
 void showBalanceView(jaxx.runtime.JAXXContext rootContext)
           
 void showConfig(jaxx.runtime.JAXXContext context)
           
 void showEntryBookReports(jaxx.runtime.JAXXContext rootContext)
          Show entry book table report to view an account on a period
 void showEntryBookView(jaxx.runtime.JAXXContext rootContext)
          Show account tree table view to create or modify accounts
 void showFinancialPeriodView(jaxx.runtime.JAXXContext rootContext)
          Show financial period view to create or block a period
 void showFinancialStatementReportsView(jaxx.runtime.JAXXContext rootContext)
           
 void showFinancialStatementView(jaxx.runtime.JAXXContext rootContext)
          Show financial statement view to generate balance sheet and income statement
 void showFiscalPeriodView(jaxx.runtime.JAXXContext rootContext)
          Show fiscal period view to create or block a period
 void showHelp(jaxx.runtime.JAXXContext context, String helpId)
           
 void showHomeView(jaxx.runtime.JAXXContext rootContext)
           
 void showIdentity(jaxx.runtime.JAXXContext rootContext)
           
 void showImportExportView(jaxx.runtime.JAXXContext rootContext, ImportExportEnum type)
           
 void showLedgerView(jaxx.runtime.JAXXContext rootContext)
           
 void showLetteringView(jaxx.runtime.JAXXContext rootContext)
           
 void showTransactionSearchView(jaxx.runtime.JAXXContext rootContext)
           
 void showTransactionUnbalancedView(jaxx.runtime.JAXXContext rootContext)
           
 void showTransactionView(jaxx.runtime.JAXXContext rootContext)
          Show financial transactions view to create entries
 void showVatChartView(jaxx.runtime.JAXXContext rootContext)
          Show vat chart to generate vat document
 void showVatReportView(jaxx.runtime.JAXXContext rootContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MainViewHandler

public MainViewHandler()
Method Detail

initUI

public MainView initUI(LimaContext rootContext,
                       boolean fullscreen)
Methode pour initialiser l'ui principale sans l'afficher.

Parameters:
rootContext - le context applicatif
fullscreen - flag pour indiquer si on doit ouvrir l'ui en model console (pleine ecran).
Returns:
l'ui instancie et initialisee mais non visible encore

changeLanguage

public void changeLanguage(MainView mainUI,
                           Locale newLocale)

close

public void close(MainView ui)
Ferme l'application.

Parameters:
ui - l'ui principale de l'application

changeScreen

public void changeScreen(MainView ui,
                         boolean fullscreen)
Méthode pour changer de mode d'affichage.

Si fullscreen est à true alors on passe en mode console (c'est à dire en mode plein écran exclusif), sinon on passe en mode fenetré normal.

Parameters:
ui - l'ui principale de l'application
fullscreen - le nouvel état requis.

showConfig

public void showConfig(jaxx.runtime.JAXXContext context)

showHelp

public void showHelp(jaxx.runtime.JAXXContext context,
                     String helpId)

closeHelp

public void closeHelp(jaxx.runtime.JAXXContext context)

gotoSite

public void gotoSite(jaxx.runtime.JAXXContext rootContext)

showAbout

public void showAbout(MainView ui)

reloadUI

protected void reloadUI(LimaContext rootContext,
                        boolean fullscreen)
Permet de recharger l'ui principale et de changer de le mode d'affichage.

Parameters:
rootContext - le contexte applicatif
fullscreen - le type de fenetre à reouvrir

ensureModification

protected boolean ensureModification(jaxx.runtime.JAXXContext rootContext)
                              throws IllegalArgumentException
Test if there is some modification on screen,

Parameters:
rootContext - the context
Returns:
true if no more modification is detected
Throws:
IllegalArgumentException - if rootContext is null

getUI

protected MainView getUI(jaxx.runtime.JAXXContext context)

showHomeView

public void showHomeView(jaxx.runtime.JAXXContext rootContext)

showIdentity

public void showIdentity(jaxx.runtime.JAXXContext rootContext)

showAccountView

public void showAccountView(jaxx.runtime.JAXXContext rootContext)
Show account tree table view to create or modify accounts

Parameters:
rootContext -

showEntryBookView

public void showEntryBookView(jaxx.runtime.JAXXContext rootContext)
Show account tree table view to create or modify accounts

Parameters:
rootContext -

showFiscalPeriodView

public void showFiscalPeriodView(jaxx.runtime.JAXXContext rootContext)
Show fiscal period view to create or block a period

Parameters:
rootContext -

showFinancialPeriodView

public void showFinancialPeriodView(jaxx.runtime.JAXXContext rootContext)
Show financial period view to create or block a period

Parameters:
rootContext -

showFinancialStatementView

public void showFinancialStatementView(jaxx.runtime.JAXXContext rootContext)
Show financial statement view to generate balance sheet and income statement

Parameters:
rootContext -

showVatChartView

public void showVatChartView(jaxx.runtime.JAXXContext rootContext)
Show vat chart to generate vat document

Parameters:
rootContext -

showAccountReports

public void showAccountReports(jaxx.runtime.JAXXContext rootContext)
Show account table report to view an account on a period

Parameters:
rootContext -

showEntryBookReports

public void showEntryBookReports(jaxx.runtime.JAXXContext rootContext)
Show entry book table report to view an account on a period

Parameters:
rootContext -

showTransactionView

public void showTransactionView(jaxx.runtime.JAXXContext rootContext)
Show financial transactions view to create entries

Parameters:
rootContext -

showTransactionUnbalancedView

public void showTransactionUnbalancedView(jaxx.runtime.JAXXContext rootContext)

showTransactionSearchView

public void showTransactionSearchView(jaxx.runtime.JAXXContext rootContext)

showLetteringView

public void showLetteringView(jaxx.runtime.JAXXContext rootContext)

showBalanceView

public void showBalanceView(jaxx.runtime.JAXXContext rootContext)

showLedgerView

public void showLedgerView(jaxx.runtime.JAXXContext rootContext)

showFinancialStatementReportsView

public void showFinancialStatementReportsView(jaxx.runtime.JAXXContext rootContext)

showVatReportView

public void showVatReportView(jaxx.runtime.JAXXContext rootContext)

showImportExportView

public void showImportExportView(jaxx.runtime.JAXXContext rootContext,
                                 ImportExportEnum type)


Copyright © 2008-2011 CodeLutin. All Rights Reserved.