|
LEONARDI Application Composer - 8.9.0.40 by W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectleon.app.LyApplication
public class LyApplication
This class contains all the data that are described in a meta-model. Several applications may be launched in the same process using different meta-models (see leon.app.LyMain to see how to create several applications). For each of them, several sessions may be created using different environments. An application is described by :
<PROJECT>
).
LyMain
,
LyDataSession
Field Summary | |
---|---|
static java.lang.String |
__VERSION
File version. |
static char |
ARRAY_SEP
Internal separator used for array values. |
static char |
CLASS_SEP
Separator used by LyObjectId class. |
static char |
FIELD_SEP
Separator used by LyObjectId class. |
static java.lang.String |
LABEL_SEP
Separator used for composed title. |
char |
NAME_SEP
Separator for objects with several names. |
char |
VALUE_SEP
Separator used when multiple values are returned from the graphical input object. |
static char |
VISIBLE_ARRAY_SEP
Visible separator used for array values. |
static char |
VISIBLE_FIELD_SEP
Separator used by LyObjectId class. |
static char |
VISIBLE_VALUE_SEP
Separator used by LyObjectId class. |
static java.lang.String |
VISIBLE_VECTOR_SEP
Visible separator used for vector values. |
Constructor Summary | |
---|---|
LyApplication(LyApplication parent,
LyProject rootProject,
java.lang.String id,
java.lang.String configFile,
java.lang.String path,
java.lang.ClassLoader classLoader)
Constructor with a given id, configuration file and class loader. |
|
LyApplication(LyApplication parent,
LyProject rootProject,
java.lang.String id,
java.lang.String configFile,
java.lang.String path,
java.lang.ClassLoader classLoader,
boolean isMobile)
Constructor with a given id, configuration file and class loader. |
|
LyApplication(LyApplication parent,
java.lang.String id)
Constructor with a given id. |
|
LyApplication(LyApplication parent,
java.lang.String id,
java.lang.String configFile,
java.lang.String path,
java.lang.ClassLoader classLoader)
Constructor with a given id, configuration file and class loader. |
|
LyApplication(java.lang.String id)
Constructor with a given id. |
|
LyApplication(java.lang.String id,
boolean edited)
Constructor with a given id. |
|
LyApplication(java.lang.String id,
java.lang.String configFile)
Constructor with a given id and configuration file. |
|
LyApplication(java.lang.String id,
java.lang.String configFile,
java.lang.ClassLoader classLoader)
Constructor with a given id and configuration file and a specific classloader. |
|
LyApplication(java.lang.String id,
java.lang.String configFile,
java.lang.String path,
java.lang.ClassLoader classLoader)
Constructor with a given id, configuration file and class loader. |
Method Summary | ||
---|---|---|
void |
abortClosing()
Abort the closing of an application. |
|
void |
addDaemon(LyDaemon daemon)
Adds a new relation daemon to the application. |
|
void |
addDataProvider(LyDataProvider provider)
Add a data provider to the current application. |
|
static void |
addListener(LyApplicationListener listener)
Registers a listener. |
|
void |
addSessionListener(LySessionListenerInterface sessionListener)
Adds a session listener to this application. |
|
void |
addValue(java.lang.Object key,
java.lang.Object value)
Adds a pair key-value to the session. |
|
static java.lang.String |
buildDefaultLocationId(java.lang.String applicationId)
Computes the default location id for the specified application id. |
|
boolean |
checkProviders()
Method to test if all data providers of this application have some connection with the physical layer. |
|
void |
close()
Closing current application. |
|
static void |
closeAll()
Close all remaining applications. |
|
void |
createCache(LyClassInfo classInfo)
Creates the cache for the application of the given class info. |
|
boolean |
deleteExtraInfo(LyExtraInfoInterface info)
Delete given extra info like preferences, charts or treemap configurations. |
|
void |
endTimer(LyTimer timer)
When a LyTimer ends this method is invoked. |
|
void |
freeDialogSessions()
To free all dialog controllers of all sessions. |
|
LyAction |
getAction(java.lang.String id)
Shortcut to get an action of the application. |
|
LyInfoList<LyAction> |
getActions()
To get all the actions registered in the application. |
|
LyAction |
getActionWithId(java.lang.String id,
LyClassInfo classInfo)
Get an action of the project with given template id. |
|
LyAction |
getActionWithTemplate(java.lang.String id,
LyClassInfo classInfo)
Get an action of the application with given template id. |
|
static LyApplication |
getApplication(java.lang.String id)
Retrieves an application. |
|
LyApplicationBehaviorInterface |
getApplicationBehavior()
Returns the behavior of this application. |
|
static java.util.Vector<LyApplication> |
getApplications()
Gets list of all applications. |
|
LyClassInfo |
getClassInfo(java.lang.String id)
Shortcut to get a classInfo of the application. |
|
LyInfoList<LyClassInfo> |
getClassInfos()
To get all the class infos registered in the application. |
|
LyInfoList<LyClassInfo> |
getClassInfosFromBinding(java.lang.String binding)
Find classinfos from the peer value (connector value defined in class binding). |
|
java.lang.ClassLoader |
getClassLoader()
Accessor for the specific class loader defined for this application. |
|
LyContextManager |
getContextManager()
Gets the context manager of the current session of this application. |
|
LyContext |
getCurrentContext()
Gets the current context for the current thread. |
|
LyEvaluator |
getCurrentEvaluator()
Gets the current evaluator for the current thread. |
|
java.lang.Object |
getCurrentInstance(java.lang.String name)
Gets the current instance corresponding to specified name for the current thread. |
|
LyDataSession |
getCurrentSession()
Gets the current session for the current thread. |
|
LyFieldInfoDaemon |
getDaemon(LyFieldInfo fieldInfo)
Retrieves the daemon in charge of the specified field info. |
|
LyLabelDaemon |
getDaemon(LyInfoLabel label)
Retrieves the daemon that controls label of the given info label. |
|
LyDataProvider |
getDataProvider(int index)
Get data provider at the given index. |
|
int |
getDataProviderCount()
Retreives current providers count. |
|
LyDataSource |
getDataSource(LyClass lyClass)
Shortcut to get a data source registered in the application. |
|
LyDataSource |
getDataSource(java.lang.String classId)
Shortcut to get a data source registered in the application. |
|
java.lang.String |
getDefaultLocationId()
Computes the default location id for this application. |
|
LyEnvironment |
getEnvironment()
Returns the environment of the application. |
|
java.lang.String |
getError()
Accessor for the error message of the application. |
|
LyEventManager |
getEventManager()
Gets the event manager of this application. |
|
java.lang.String |
getId()
Accessor for the identifier of the application. |
|
LyInfo |
getInfo(java.lang.String id)
Retrieves an info from its id. |
|
static LyApplication |
getInfoApplication(java.lang.String infoId)
Retrieves an application from an info id. |
|
|
getInfoList(java.lang.Class<T> infoClass)
Returns an ordered list of all the infos of a given java class registered in the application. |
|
LyInfoProvider |
getInfoProvider()
Returns the info provider of the application. |
|
|
getInfos(java.lang.Class<T> infoClass)
Deprecated. Use getInfoList |
|
LyDataProvider |
getLocalDataProvider()
To get the local data provider of this application. |
|
LyObjectSource |
getObjectSource(LyClassInfo classInfo)
Shortcut to get an object source registered in the application. |
|
LyApplication |
getParent()
Accessor to the the parent application. |
|
LySqlDataProvider |
getPrefDataProvider()
Find the SQL provider used to store the preferences into DB. |
|
int |
getPriorityLevel(LyObject object)
Get the priority level of this application. |
|
LyProject |
getProject()
Accessor for the project of the application. |
|
LyApplication |
getRootApplication()
To get the root application of this application. |
|
LyDataSession |
getSession(int index)
Get session at the given index. |
|
LyDataSession |
getSession(java.lang.String sessionId)
Get session at the given index. |
|
int |
getSessionCount()
Retreives current sessions count. |
|
java.util.Vector<LyDataSession> |
getSessions()
Retreives current sessions list. |
|
LySqlDataProvider |
getSQLDataProvider(java.lang.String providerId)
find the SQL provider which could be used to store the preferences into DB. |
|
LyApplication |
getSubApplication(int index)
Get sub-application at the given index. |
|
int |
getSubApplicationCount()
Retreives current sub-applications count. |
|
java.util.Vector<LyApplication> |
getSubApplications()
Get sub-applications of this application. |
|
java.lang.String[][] |
getSupportedLanguages()
To get all supported languages by the application. |
|
java.lang.String[] |
getSupportedTimeZones()
To get all supported timeZone by the application. |
|
LyTag |
getTag(java.lang.String id)
Retrieves a tag from its id. |
|
|
getTags(java.lang.Class<T> tagClass)
Returns an ordered list of all the tags of a given java class registered in the application. |
|
LyTransactionManager |
getTransactionManager()
Gets the transaction manager of this application. |
|
java.lang.Object |
getValue(java.lang.Object key)
Retrieves a value from a registered key. |
|
boolean |
hasParent(LyApplication application)
Check if the given application is parent of this application. |
|
boolean |
hasTransaction(LyDataSession session)
Tests if the speified session has somme pending transaction. |
|
boolean |
isClosing()
Indicates whether the application is closing or not. |
|
boolean |
isEdited()
Checks is application is being edited. |
|
boolean |
isIdle()
Indicates whether the application is idle or not. |
|
boolean |
isSleeping()
Indicates whether the application is asleep or not. |
|
boolean |
isValid()
Indicates whether the application is valid or not. |
|
boolean |
isWaitingForClosing()
Indicates whether the application is waiting for closing or not. |
|
java.lang.Class<?> |
loadClass(java.lang.String className)
Calls the loadClass(String className, String errorMessage) method with an error message not defined. |
|
java.lang.Class<?> |
loadClass(java.lang.String className,
java.lang.String errorMessage)
This method enables to find a class whose name matches the given name. |
|
void |
loadClasses(LyInfoList<LyClassInfo> classes)
Loads a list of classes whithin an application. |
|
void |
loadData()
Load data and fill caches. |
|
void |
loadData(LyInfoList<LyClassInfo> classInfos,
java.util.BitSet marks)
Load data and fill caches. |
|
LyInfoList<LyInfo> |
loadExtraInfos()
Load extra infos. |
|
java.util.Vector<LyExtraInfoInterface> |
loadExtraInfosFromDB(java.lang.String extraInfoId,
java.lang.String userId)
Load extra info like preferences, charts, treemap configurations or form saves. |
|
void |
loadProject(LyProject project)
Loads a project whithin an application. |
|
boolean |
parse()
Loads the precompiled meta-model if available, else parses the meta-model xml file. |
|
LyInfoList<LyInfo> |
parseExtraFiles(java.lang.String prefix,
java.lang.String dirName,
java.lang.String userId)
Method for parsing extra information such as charts or preferences. |
|
static void |
putApplication(LyApplication application)
Registers an application. |
|
void |
putDataSource(LyDataSource dataSource)
Registers a data source in the application. |
|
void |
putInfo(LyInfo info)
Registers an info in the application. |
|
void |
putTag(LyTag tag)
Registers a tag in the application. |
|
void |
reloadData(boolean unload)
Reload application data. |
|
static void |
removeAll()
Remove all applications. |
|
static void |
removeApplication(LyApplication application)
Removes an application. |
|
void |
removeDataSource(LyDataSource dataSource)
Unregisters a data source from the application. |
|
void |
removeInfo(LyInfo info)
Unregisters an info from this application. |
|
static void |
removeListener(LyApplicationListener listener)
Unregisters a listener. |
|
void |
removeSessionListener(LySessionListenerInterface sessionListener)
Removes a session listener from this application. |
|
void |
removeTag(LyTag tag)
Unregisters a tag from this application. |
|
void |
saveData()
Save all application data. |
|
boolean |
saveExtraInfo(LyExtraInfoInterface info)
Save given extra info like preferences, charts or treemap configurations. |
|
boolean |
saveExtraInfo(LyExtraInfoInterface info,
LyXmlWriterInterface writer)
Save given extra info like preferences, charts or treemap configurations. |
|
void |
setClassLoader(java.lang.ClassLoader loader)
Sets the specific class loader defined for this application with the given one. |
|
LyContext |
setCurrentContext(LyContext context)
Sets the current context to the given one for the current thread. |
|
LyEvaluator |
setCurrentEvaluator(LyEvaluator evaluator)
Sets the current evaluator to the given one for the current thread. |
|
java.lang.Object |
setCurrentInstance(java.lang.String name,
java.lang.Object instance)
Sets the current instance corresponding to specified name for the current thread. |
|
LyDataSession |
setCurrentSession(LyDataSession session)
Sets the current session to the given one for the current thread. |
|
boolean |
setDataProviderLocation(java.lang.String providerId,
LyLocation newLocation)
Change data provider location. |
|
void |
setDefaultLocationId(java.lang.String defaultLocationId)
To set the default lcation id for this application. |
|
void |
setError(java.lang.String message)
Sets the error message of the application. |
|
void |
setIdle(boolean idle)
Sets idle mode on the application : no event on operation when set. |
|
void |
sleep()
Sets the application in sleeping mode. |
|
void |
start(LyProject rootProject)
Starts the application. |
|
void |
unloadData()
Clears all application data. |
|
boolean |
validateClasses(LyInfoList<LyClassInfo> classes)
Validate the given list of classes for existing providers. |
|
boolean |
wakeUp()
Wakes up an application which is in sleeping mode. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String __VERSION
public static char FIELD_SEP
public static char VISIBLE_FIELD_SEP
public static char CLASS_SEP
public static java.lang.String LABEL_SEP
public char VALUE_SEP
public static char VISIBLE_VALUE_SEP
public char NAME_SEP
public static char ARRAY_SEP
public static char VISIBLE_ARRAY_SEP
public static java.lang.String VISIBLE_VECTOR_SEP
Constructor Detail |
---|
public LyApplication(java.lang.String id)
id
- The identifier of the application.public LyApplication(java.lang.String id, boolean edited)
id
- The identifier of the application.public LyApplication(java.lang.String id, java.lang.String configFile)
id
- The identifier of the application.configFile
- The configuration file of the application.public LyApplication(java.lang.String id, java.lang.String configFile, java.lang.ClassLoader classLoader)
id
- The identifier of the applicationconfigFile
- The configuration file for the applicationclassLoader
- A specific class loader used for loading specific classes and performing
introspection.public LyApplication(java.lang.String id, java.lang.String configFile, java.lang.String path, java.lang.ClassLoader classLoader)
id
- The identifier of the application.configFile
- The name of the config file. If null, the name of the file is built
using the identifier of the application followed by '.ini' (eg : for an
application whose identifier is 'sample' the default name of the
configuration file is 'sample.ini').path
- The initial path for the application (LY_APP_DIR in LyEnvironment)classLoader
- A specific class loader used for loading specific classes and performing
introspection.public LyApplication(LyApplication parent, java.lang.String id, java.lang.String configFile, java.lang.String path, java.lang.ClassLoader classLoader)
parent
- The parent application (null for the primary module).id
- The identifier of the application.configFile
- The name of the config file. If null, the name of the file is built
using the identifier of the application followed by '.ini' (eg : for an
application whose identifier is 'sample' the default name of the
configuration file is 'sample.ini').path
- The initial path for the application (LY_APP_DIR in LyEnvironment)classLoader
- A specific class loader used for loading specific classes and performing
introspection.public LyApplication(LyApplication parent, LyProject rootProject, java.lang.String id, java.lang.String configFile, java.lang.String path, java.lang.ClassLoader classLoader)
parent
- The parent application (null for the primary module).rootProject
- The root project of this application.id
- The identifier of the application.configFile
- The name of the config file. If null, the name of the file is built
using the identifier of the application followed by '.ini' (eg : for an
application whose identifier is 'sample' the default name of the
configuration file is 'sample.ini').path
- The initial path for the application (LY_APP_DIR in LyEnvironment)classLoader
- A specific class loader used for loading specific classes and performing
introspection.public LyApplication(LyApplication parent, LyProject rootProject, java.lang.String id, java.lang.String configFile, java.lang.String path, java.lang.ClassLoader classLoader, boolean isMobile)
parent
- The parent application (null for the primary module).rootProject
- The root project of this application.id
- The identifier of the application.configFile
- The name of the config file. If null, the name of the file is built
using the identifier of the application followed by '.ini' (eg : for an
application whose identifier is 'sample' the default name of the
configuration file is 'sample.ini').path
- The initial path for the application (LY_APP_DIR in LyEnvironment)classLoader
- A specific class loader used for loading specific classes and performing
introspection.isMobile
- Indicates if the platform used is a mobile of not.public LyApplication(LyApplication parent, java.lang.String id)
parent
- the parent application (can be null)id
- The identifier of the application.Method Detail |
---|
public static void putApplication(LyApplication application)
application
- The application that must be registered.public static LyApplication getApplication(java.lang.String id)
id
- The id of the application that must be retrieved.
public static LyApplication getInfoApplication(java.lang.String infoId)
id
- The id of the info for which the application is searched.
public static void removeApplication(LyApplication application)
application
- The application that must be removed.public static void removeAll()
public static java.util.Vector<LyApplication> getApplications()
public static void addListener(LyApplicationListener listener)
listener
- The listener that must be registered.public static void removeListener(LyApplicationListener listener)
listener
- The listener that must be unregistered.public static java.lang.String buildDefaultLocationId(java.lang.String applicationId)
applicationId
- the application id
public static void closeAll()
public boolean isValid()
public LyProject getProject()
LyProject
public java.lang.String getId()
public boolean isSleeping()
sleep()
,
wakeUp()
public java.lang.String getError()
public java.lang.ClassLoader getClassLoader()
LyClassLoader
public LyApplicationBehaviorInterface getApplicationBehavior()
public void setError(java.lang.String message)
message
- The new message that must be used.public void setClassLoader(java.lang.ClassLoader loader)
loader
- The new specific class loader defined for this application.LyClassLoader
public void start(LyProject rootProject)
rootProject
- The root project of this application. If this param is null the XML
model specified for this application is parsed.public void loadProject(LyProject project)
project
- the project to loadpublic void loadClasses(LyInfoList<LyClassInfo> classes)
classes
- a list of classes to loadpublic boolean parse()
<PROJECT>
tag.
public LyInfoList<LyInfo> parseExtraFiles(java.lang.String prefix, java.lang.String dirName, java.lang.String userId)
prefix
- File prefix of loaded infos.dirName
- Name (or path) of the directory containing infos to be loaded.userId
- User id (may be null when info is shared).
public void addDataProvider(LyDataProvider provider)
provider
- a data provider to addpublic boolean validateClasses(LyInfoList<LyClassInfo> classes)
classes
- List of classes to validate.
public void createCache(LyClassInfo classInfo)
classInfo
- a classLyCache
public int getSessionCount()
public LyDataSession getSession(int index)
index
- an index
public LyDataSession getSession(java.lang.String sessionId)
public java.util.Vector<LyDataSession> getSessions()
public java.lang.String getDefaultLocationId()
public void setDefaultLocationId(java.lang.String defaultLocationId)
defaultLocationId
- the new default location id for this application.public java.lang.String[][] getSupportedLanguages()
public java.lang.String[] getSupportedTimeZones()
public final void loadData()
LyApplication#loadData(boolean,BitSet)
,
unloadData()
public void loadData(LyInfoList<LyClassInfo> classInfos, java.util.BitSet marks)
classInfos
- List of classes to load (null means all).marks
- Indicates the marks that the classes to load must match. If
null, all the classes are loaded.loadData()
,
LyClassInfo
public void unloadData()
loadData()
public void freeDialogSessions()
public void reloadData(boolean unload)
unload
- Boolean indicating if datas have to be unlodaed first.loadData()
public void saveData()
public void addDaemon(LyDaemon daemon)
daemon
- The relation daemon that must be added to the application.getDaemon(LyFieldInfo)
,
LyRelationDaemon
public LyFieldInfoDaemon getDaemon(LyFieldInfo fieldInfo)
fieldInfo
- The field info whose daemon we want to get.
public LyLabelDaemon getDaemon(LyInfoLabel label)
label
- The infoLabel for which the daemon is searched.
public void close()
sleep()
public void sleep()
wakeUp()
,
close()
public boolean wakeUp()
sleep()
public LyTag getTag(java.lang.String id)
id
- The id of the searched tag.
LyInfo
,
putInfo(LyInfo)
public LyInfo getInfo(java.lang.String id)
id
- The id of the searched Info.
LyInfo
,
putInfo(LyInfo)
public void putTag(LyTag tag)
tag
- a tag to registerpublic void putInfo(LyInfo info)
info
- an info to registerLyInfo
,
getInfo(String)
public void removeTag(LyTag tag)
tag
- a tag to unregisterpublic void removeInfo(LyInfo info)
info
- an info to unregisterLyInfo
,
putInfo(leon.info.LyInfo)
public LyClassInfo getClassInfo(java.lang.String id)
id
- The identifier of current class.
public LyInfoList<LyClassInfo> getClassInfosFromBinding(java.lang.String binding)
binding
- the binding to search
public LyAction getAction(java.lang.String id)
id
- The identifier of current action.
public LyAction getActionWithId(java.lang.String id, LyClassInfo classInfo)
id
- The identifier of the template of searched action.classInfo
- If not null, look first on class info before project.
public LyAction getActionWithTemplate(java.lang.String id, LyClassInfo classInfo)
id
- The identifier of the template of searched action.classInfo
- If not null, look first on class info before project.
public <T extends LyTag> java.util.ArrayList<T> getTags(java.lang.Class<T> tagClass)
T
- the type of Tag to gettagClass
- The java class.
public <T extends LyInfo> LyInfoList<T> getInfos(java.lang.Class<T> infoClass)
T
- the type of LyInfo to returninfoClass
- a java class.
LyInfo
public <T extends LyInfo> LyInfoList<T> getInfoList(java.lang.Class<T> infoClass)
T
- the type of LyInfo to returninfoClass
- The java class.
LyInfo
public LyInfoList<LyClassInfo> getClassInfos()
LyClassInfo
public LyInfoList<LyAction> getActions()
LyAction
public LyEnvironment getEnvironment()
LyEnvironment
public LyDataSource getDataSource(java.lang.String classId)
classId
- The identifier of the class whose data source we want to retrieve.
public LyDataSource getDataSource(LyClass lyClass)
lyClass
- The class whose data source we want to retrieve.
public void putDataSource(LyDataSource dataSource)
dataSource
- The data source that must be registered.getDataSource(String)
,
getDataSource(LyClass)
public void removeDataSource(LyDataSource dataSource)
dataSource
- The data source that must be unregistered.getDataSource(String)
,
getDataSource(LyClass)
public LyObjectSource getObjectSource(LyClassInfo classInfo)
classInfo
- The class info whose object source we want to retrieve.
public LyInfoProvider getInfoProvider()
public java.lang.Class<?> loadClass(java.lang.String className)
className
- The fully qualified name of the desired class.
public java.lang.Class<?> loadClass(java.lang.String className, java.lang.String errorMessage)
className
- The fully qualified name of the desired class.errorMessage
- The error message displayed on the standard output stream when a
ClassNotFoundException is caught.
public LyDataSession getCurrentSession()
public LyDataSession setCurrentSession(LyDataSession session)
session
- Session to set as the current one for the current thread. If null, unset
the current session.
public LyTransactionManager getTransactionManager()
public boolean hasTransaction(LyDataSession session)
session
- a session
public LyEventManager getEventManager()
public LyDataProvider getLocalDataProvider()
public int getDataProviderCount()
public LyDataProvider getDataProvider(int index)
index
- an index
public int getPriorityLevel(LyObject object)
object
- the object on which the control is applied (may be null).
public LyApplication getParent()
public boolean hasParent(LyApplication application)
application
- the application
public LyContextManager getContextManager()
public LyContext getCurrentContext()
public LyContext setCurrentContext(LyContext context)
context
- Context to set as the current one for the current thread. If null, unset
the current context.
public LyApplication getRootApplication()
public int getSubApplicationCount()
public LyApplication getSubApplication(int index)
index
- an index
public java.util.Vector<LyApplication> getSubApplications()
public boolean setDataProviderLocation(java.lang.String providerId, LyLocation newLocation)
providerId
- Id of the provider to be changed.newLocation
- New location for the data provider corresponding to the given id.
java.lang.IllegalArgumentException
- if the given id doesn't correspond to an existing
provider. IllegalArgumentException if the given
location hasn't the same type as the previous one
associated to the provider.public boolean checkProviders()
public void endTimer(LyTimer timer)
endTimer
in interface LyTimerClientInterface
timer
- the timer which expired.public boolean isIdle()
public void setIdle(boolean idle)
idle
- true if the application is idle, false otherwise.public void addValue(java.lang.Object key, java.lang.Object value)
key
- The key that must be stored.value
- The value that must be stored with the key.getValue(java.lang.Object)
public java.lang.Object getValue(java.lang.Object key)
key
- The key that must be used.
addValue(java.lang.Object, java.lang.Object)
public boolean isClosing()
public boolean isWaitingForClosing()
public void abortClosing()
public final boolean saveExtraInfo(LyExtraInfoInterface info)
info
- Info to be saved.
public boolean saveExtraInfo(LyExtraInfoInterface info, LyXmlWriterInterface writer)
info
- Info to be saved.
public LyInfoList<LyInfo> loadExtraInfos()
application
- Application on which extra infos (like charts or treemap configurations)
are loaded.
public java.util.Vector<LyExtraInfoInterface> loadExtraInfosFromDB(java.lang.String extraInfoId, java.lang.String userId)
extraInfoClass
- Class of the extra info.userId
- Id of the user.extraInfoId
- Id of extra info.
public boolean deleteExtraInfo(LyExtraInfoInterface info)
info
- Info to be deleted.
public java.lang.Object getCurrentInstance(java.lang.String name)
name
- Name of searched instance.
public java.lang.Object setCurrentInstance(java.lang.String name, java.lang.Object instance)
name
- Name of searched instance.instance
- Instance associated to given in current thread (may be null).
public LyEvaluator getCurrentEvaluator()
public LyEvaluator setCurrentEvaluator(LyEvaluator evaluator)
evaluator
- Evaluator to set as the current one for the current thread. If null,
unset the current evaluator.
public boolean isEdited()
public void addSessionListener(LySessionListenerInterface sessionListener)
sessionListener
- public void removeSessionListener(LySessionListenerInterface sessionListener)
sessionListener
- public LySqlDataProvider getPrefDataProvider()
public LySqlDataProvider getSQLDataProvider(java.lang.String providerId)
application
- Application on which extra info is saved.providerId
- the provider Id, by default stored in the LY_PREFERENCES_LOCATION_ID
resource. Null or empty means : no provider and store info files. "any"
is accepted to use the first provider
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |