LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.app.behavior
Class LyApplicationBehavior

java.lang.Object
  extended by leon.app.behavior.LyDataApplicationBehavior
      extended by leon.app.behavior.LyApplicationBehavior
All Implemented Interfaces:
LyApplicationBehaviorInterface, LySessionListenerInterface

public class LyApplicationBehavior
extends LyDataApplicationBehavior
implements LyApplicationBehaviorInterface

This class implements the default behavior for applications.

See Also:
LyApplicationBehaviorInterface, LyApplication

Field Summary
static java.lang.String __VERSION
          File version
 
Fields inherited from class leon.app.behavior.LyDataApplicationBehavior
PREF_BLOB_COL, PREF_DATE_COL, PREF_ID_COL, PREF_TABLE, PREF_TYPE_COL, PREF_USER_COL
 
Constructor Summary
LyApplicationBehavior()
          Constructor.
 
Method Summary
 void loadData(LyApplication application, LyInfoList<LyClassInfo> classes)
          Load data for the given classes list.
 LyInfoList<LyInfo> loadExtraInfos(LyApplication application)
          Load extra infos.
 LyInfoList<LyInfo> loadPreferences(LyApplication application)
          Load application preferences.
 void sessionAdded(LyApplication application, LyDataSession session)
          Deprecated. Use sessionAdded(LyApplication, LySession)
 void sessionAdded(LyApplication application, LySession session)
          Method called when a session is added to the application.
 void sessionRemoved(LyApplication application, LyDataSession session)
          Deprecated. Use sessionRemoved(LyApplication, LySession)
 void sessionRemoved(LyApplication application, LySession session)
          Method called when a session is removed from the application.
 
Methods inherited from class leon.app.behavior.LyDataApplicationBehavior
addSpecificEncoders, afterCommit, afterRollback, beforeCommit, beforeRollback, begin, close, connectionLost, createDaemons, deleteExtraInfo, deleteExtraInfoFromDB, enableLoadUnloadData, free, getEventManager, getLogicalClasses, getNextDouble, getNextFloat, getNextInt, getNextLong, getNextShort, getPriorityLevel, getSubClasses, getSupportedLanguages, getSupportedTimeZones, loadData, loadExtraInfosFromDB, parseExtraFromDB, saveData, saveExtraInfo, saveExtraInfo, sessionLoggedIn, sleep, start, started, transactionCompleted, unloadData, update, wakeUp
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface leon.app.behaviorinterface.LyApplicationBehaviorInterface
addSpecificEncoders, afterCommit, afterRollback, beforeCommit, beforeRollback, begin, close, connectionLost, createDaemons, deleteExtraInfo, enableLoadUnloadData, free, getEventManager, getLogicalClasses, getNextDouble, getNextFloat, getNextInt, getNextLong, getNextShort, getPriorityLevel, getSubClasses, getSupportedLanguages, getSupportedTimeZones, loadData, loadExtraInfosFromDB, parseExtraFromDB, saveData, saveExtraInfo, saveExtraInfo, sleep, start, started, transactionCompleted, unloadData, update, wakeUp
 
Methods inherited from interface leon.app.behaviorinterface.LySessionListenerInterface
sessionLoggedIn
 

Field Detail

__VERSION

public static final java.lang.String __VERSION
File version

See Also:
Constant Field Values
Constructor Detail

LyApplicationBehavior

public LyApplicationBehavior()
Constructor.

Method Detail

loadPreferences

public LyInfoList<LyInfo> loadPreferences(LyApplication application)
Load application preferences.

Specified by:
loadPreferences in interface LyApplicationBehaviorInterface
Overrides:
loadPreferences in class LyDataApplicationBehavior
Parameters:
application - Application on which preferences are loaded.
Returns:
List of preferences of the application.

loadExtraInfos

public LyInfoList<LyInfo> loadExtraInfos(LyApplication application)
Load extra infos.

Specified by:
loadExtraInfos in interface LyApplicationBehaviorInterface
Overrides:
loadExtraInfos in class LyDataApplicationBehavior
Parameters:
application - Application on which extra infos (like charts or treemap configurations) are loaded.
Returns:
List of extra infos for the application.

sessionAdded

public void sessionAdded(LyApplication application,
                         LyDataSession session)
Deprecated. Use sessionAdded(LyApplication, LySession)

Method called when a session is added to the application. If the data session is a LySession instance then calls sessionAdded(application, (LySession) session) else calls super.sessionAdded(application, session)

Specified by:
sessionAdded in interface LyApplicationBehaviorInterface
Specified by:
sessionAdded in interface LySessionListenerInterface
Overrides:
sessionAdded in class LyDataApplicationBehavior
Parameters:
application - Application in which a session is added.
session - Session that is added to the application.

sessionRemoved

public void sessionRemoved(LyApplication application,
                           LyDataSession session)
Deprecated. Use sessionRemoved(LyApplication, LySession)

Method called when a session is removed from the application. If the data session is a LySession instance then calls sessionRemoved(application, (LySession) session) else calls super.sessionRemoved(application, session)

Specified by:
sessionRemoved in interface LyApplicationBehaviorInterface
Specified by:
sessionRemoved in interface LySessionListenerInterface
Overrides:
sessionRemoved in class LyDataApplicationBehavior
Parameters:
application - Application in which a session is removed.
session - Session that is removed from the application.

sessionAdded

public void sessionAdded(LyApplication application,
                         LySession session)
Method called when a session is added to the application.
The default implementation does nothing.

Parameters:
application - Application in which a session is added.
session - Session that is added to the application.

sessionRemoved

public void sessionRemoved(LyApplication application,
                           LySession session)
Method called when a session is removed from the application.
The default implementation does nothing.

Parameters:
application - Application in which a session is removed.
session - Session that is removed from the application.

loadData

public void loadData(LyApplication application,
                     LyInfoList<LyClassInfo> classes)
Load data for the given classes list.

Specified by:
loadData in interface LyApplicationBehaviorInterface
Overrides:
loadData in class LyDataApplicationBehavior
Parameters:
application - Application for which classes are loaded.
classes - List of classes to load
See Also:
LyApplication.loadData(), LyClassInfo

(c) January 2013 - W4 S.A.

Website: W4 S.A., contact us: support@w4global.com