Author: tchemit Date: 2008-01-23 15:11:55 +0000 (Wed, 23 Jan 2008) New Revision: 437 Modified: trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/SimExplorerContext.java Log: ajout du token dans le context + documentation des champs du context Modified: trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/SimExplorerContext.java =================================================================== --- trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/SimExplorerContext.java 2008-01-23 15:06:31 UTC (rev 436) +++ trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/SimExplorerContext.java 2008-01-23 15:11:55 UTC (rev 437) @@ -38,12 +38,27 @@ /** to use log facility, just put in your code: log.info(\"...\"); */ static private Log log = LogFactory.getLog(SimExplorerContext.class); + /** + * le parseur utilisaé au démarrage pour récupérer les options passées + * par l'utilisateur + */ + protected SimExplorerOptionParser parser; - private SimExplorerOptionParser parser; - private boolean quit; - private boolean launchUI = true; - private boolean firstLaunch; + /** flag pour indiquer si 'lon veut quitter l'appli après les options */ + protected boolean quit; + /** flag pour indiquer si l'on affiche ou non l'ui principale */ + protected boolean launchUI = true; + + /** + * flag pour indiquer une première utilisation de l'application (pas de + * fichier de configuration) + */ + protected boolean firstLaunch; + + /** le token pour la connexion au serveur distant */ + protected String token; + public SimExplorerOptionParser getParser() { if (parser == null) { // creation du parseur @@ -82,28 +97,36 @@ } } + public boolean isQuit() { + return quit; + } + + public boolean isLaunchUI() { + return launchUI; + } + + public boolean isFirstLaunch() { + return firstLaunch; + } + + public String getToken() { + return token; + } + public void setQuit(boolean quit) { this.quit = quit; } - public boolean isQuit() { - return quit; - } - public void setLaunchUI(boolean launchUI) { this.launchUI = launchUI; } - public boolean isLaunchUI() { - return launchUI; - } - public void setFirstLaunch(boolean firstLaunch) { this.firstLaunch = firstLaunch; } - public boolean isFirstLaunch() { - return firstLaunch; + public void setToken(String token) { + this.token = token; } /** restricted access constructor */
participants (1)
-
tchemit@users.labs.libre-entreprise.org