Class JMapApplication
java.lang.Object
com.kheops.jmap.client.application.JMapApplication
- All Implemented Interfaces:
ProjectEventListener
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addProjectListener
(ProjectEventListener listener) Adds a new project listener.void
Closes the current opened project.Creates a new view with the default view settings and adds it to the view manager.createNewView
(MapContextInfo context) Creates a new view and adds it to the view manager.getClientExtension
(String className) Returns the instance of the client extension which matches the specified full class name.Returns the current open project.Returns the default edition event dispatcher.Returns the main instance of the edition transaction manager.Returns all client extensions loaded by this application.abstract JMapGuiService
Returns the GUI application service.protected final String
getJMapExtensionManifestValue
(Class<?> extensionClass, String manifestAttributeName) protected final String
getJMapExtensionVersion
(Class<?> extensionClass) final String
Returns the JMap build version contained in the MANIFEST file.Returns the Splash window.getUserParameter
(String parameterKey) Returns the user parameter that was set for the specified parameter key.abstract void
initGui()
Initializes all GUI (Graphical User Interface) components.boolean
isFeatureAvailable
(String featureName) protected void
openProject
(String projectName) boolean
openSession
(boolean showLoginDialog) void
Open an URL.void
projectClosed
(ProjectEvent event) This method is called when a project is closed.void
projectOpened
(ProjectEvent event) This method is called when a project is opened and ready.void
removeProjectListener
(ProjectEventListener listener) Removes a project listener.void
setUserParameter
(UserParameter userParameter) Sets the specified user parameter.void
shutdown()
Shutdowns the application.void
startup
(JMapApplicationContext appContext)
-
Field Details
-
USER_PARAM_MOUSE_OVER_DISPLAY_DELAY
- See Also:
-
USER_PARAM_APPLICATION_STATUSBAR_VISIBLE
- See Also:
-
USER_PARAM_APPLICATION_OVERVIEW_VISIBLE
- See Also:
-
USER_PARAM_QUERY_PANEL_OPTIONS
- See Also:
-
USER_PARAM_PRINT_SETTINGS
- See Also:
-
USER_PARAM_LAST_BROWSED_DIRECTORY
- See Also:
-
currentProject
-
-
Constructor Details
-
JMapApplication
public JMapApplication()
-
-
Method Details
-
startup
-
getMessagingController
-
getEditionTransactionManager
Returns the main instance of the edition transaction manager.- Returns:
- the main edition transaction manager instance.
-
getDefaultEditionEventDispatcher
Returns the default edition event dispatcher.- Returns:
- the default edition event dispatcher.
-
getUserParameterController
-
openSession
public boolean openSession(boolean showLoginDialog) -
openProject
-
getFeaturesList
-
isFeatureAvailable
- Parameters:
featureName
- the feature key in the features list- Returns:
- true if the feature is available
-
getCurrentProject
Returns the current open project.- Returns:
- the current open project or null if none is open
-
closeProject
public void closeProject()Closes the current opened project. -
createNewView
Creates a new view with the default view settings and adds it to the view manager.null
is returned if a project is not opened.- Returns:
- the new view
- See Also:
-
createNewView
Creates a new view and adds it to the view manager. If context isnull
, the new view will be created with the default view settings.null
is returned if a project is not opened.- Parameters:
context
-- Returns:
- the new view
- See Also:
-
projectOpened
Description copied from interface:ProjectEventListener
This method is called when a project is opened and ready.- Specified by:
projectOpened
in interfaceProjectEventListener
- Parameters:
event
- the project event- See Also:
-
projectClosed
Description copied from interface:ProjectEventListener
This method is called when a project is closed.- Specified by:
projectClosed
in interfaceProjectEventListener
- Parameters:
event
- the project event- See Also:
-
addProjectListener
Adds a new project listener.- Parameters:
listener
- the new listener
-
removeProjectListener
Removes a project listener.- Parameters:
listener
- the listener to remove
-
shutdown
public void shutdown()Shutdowns the application. -
openUrl
Open an URL.- Parameters:
jsFunction
- the JavaScript function name to use if the application is not running standaloneurl
- the URL to executeaddLocaleParams
- if true, the Locale params will be added to the URL (&locale_lang=xx&locale_cntr=xx)- Throws:
Exception
-
getSplashLoginWindow
Returns the Splash window. The splash is available during the initialization.null
will be returned otherwise.- Returns:
- current splash window
-
getJMapVersion
Returns the JMap build version contained in the MANIFEST file.- Returns:
- the JMap version
-
getClientExtension
Returns the instance of the client extension which matches the specified full class name.- Parameters:
className
- the class name of the client extension- Returns:
- the instance of the client extension or null if the class name was not found.
-
getExtensions
Returns all client extensions loaded by this application.- Returns:
- all client extensions loaded by this application.
-
getJMapExtensionManifestValue
-
getJMapExtensionVersion
-
getUserParameter
Returns the user parameter that was set for the specified parameter key.- Parameters:
parameterKey
- the parameter key used to retrieve the user parameter.- Returns:
- the user parameter defined for the specified parameter key, or null if not defined.
- See Also:
-
setUserParameter
Sets the specified user parameter.- Parameters:
userParameter
- the user parameter to set.- See Also:
-
getGuiService
Returns the GUI application service. This service is used to add / remove components in the application.- Returns:
- the GUI application service
-
initGui
public abstract void initGui()Initializes all GUI (Graphical User Interface) components.
-