public abstract class JMapApplication extends java.lang.Object implements ProjectEventListener
Modifier and Type | Field and Description |
---|---|
protected Project |
currentProject |
protected SharedLayerManager |
sharedLayerManager |
static java.lang.String |
USER_PARAM_APPLICATION_OVERVIEW_VISIBLE |
static java.lang.String |
USER_PARAM_APPLICATION_STATUSBAR_VISIBLE |
static java.lang.String |
USER_PARAM_LAST_BROWSED_DIRECTORY |
static java.lang.String |
USER_PARAM_MOUSE_OVER_DISPLAY_DELAY |
static java.lang.String |
USER_PARAM_PRINT_SETTINGS |
static java.lang.String |
USER_PARAM_QUERY_PANEL_OPTIONS |
Constructor and Description |
---|
JMapApplication() |
Modifier and Type | Method and Description |
---|---|
void |
addProjectListener(ProjectEventListener listener)
Adds a new project listener.
|
void |
closeProject()
Closes the current opened project.
|
View |
createNewView()
Creates a new view with the default view settings and adds it to the view
manager.
|
View |
createNewView(JMapContext context)
Deprecated.
|
View |
createNewView(MapContextInfo context)
Creates a new view and adds it to the view manager.
|
JMapClientExtension |
getClientExtension(java.lang.String className)
Returns the instance of the client extension which matches the specified
full class name.
|
Project |
getCurrentProject()
Returns the current open project.
|
DefaultEditionEventDispatcher |
getDefaultEditionEventDispatcher()
Returns the default edition event dispatcher.
|
EditionTransactionManager |
getEditionController()
Deprecated.
use
getEditionTransactionManager() instead. |
EditionTransactionManager |
getEditionTransactionManager()
Returns the main instance of the edition transaction manager.
|
JMapClientExtension[] |
getExtensions()
Returns all client extensions loaded by this application.
|
java.util.Properties |
getFeaturesList() |
abstract JMapGuiService |
getGuiService()
Returns the GUI application service.
|
protected java.lang.String |
getJMapExtensionManifestValue(java.lang.Class<?> extensionClass,
java.lang.String manifestAttributeName) |
protected java.lang.String |
getJMapExtensionVersion(java.lang.Class<?> extensionClass) |
java.lang.String |
getJMapVersion()
Returns the JMap build version contained in the MANIFEST file.
|
java.util.logging.Logger |
getLogger()
Deprecated.
|
JMapClientMessagingController |
getMessagingController() |
SplashLoginWindow |
getSplashLoginWindow()
Returns the Splash window.
|
UserParameter |
getUserParameter(java.lang.String parameterKey)
Returns the user parameter that was set for the specified parameter key.
|
JMapUserParameterController |
getUserParameterController() |
abstract void |
initGui()
Initializes all GUI (Graphical User Interface) components.
|
boolean |
isFeatureAvailable(java.lang.String featureName) |
protected void |
openProject(java.lang.String projectName) |
boolean |
openSession(boolean showLoginDialog) |
void |
openUrl(java.lang.String jsFunction,
java.lang.String url,
boolean addLocaleParams)
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) |
public static final java.lang.String USER_PARAM_MOUSE_OVER_DISPLAY_DELAY
public static final java.lang.String USER_PARAM_APPLICATION_STATUSBAR_VISIBLE
public static final java.lang.String USER_PARAM_APPLICATION_OVERVIEW_VISIBLE
public static final java.lang.String USER_PARAM_QUERY_PANEL_OPTIONS
public static final java.lang.String USER_PARAM_PRINT_SETTINGS
public static final java.lang.String USER_PARAM_LAST_BROWSED_DIRECTORY
protected Project currentProject
protected SharedLayerManager sharedLayerManager
public void startup(JMapApplicationContext appContext)
@Deprecated public final java.util.logging.Logger getLogger()
Logger.getInstance()
Logger
public JMapClientMessagingController getMessagingController()
@Deprecated public EditionTransactionManager getEditionController()
getEditionTransactionManager()
instead.public EditionTransactionManager getEditionTransactionManager()
public DefaultEditionEventDispatcher getDefaultEditionEventDispatcher()
public JMapUserParameterController getUserParameterController()
public boolean openSession(boolean showLoginDialog)
protected void openProject(java.lang.String projectName)
public java.util.Properties getFeaturesList()
public boolean isFeatureAvailable(java.lang.String featureName)
featureName
- the feature key in the features listpublic Project getCurrentProject()
public void closeProject()
public View createNewView()
null
is returned if a project is not opened.ViewManager
,
ViewSettings
@Deprecated public View createNewView(JMapContext context)
null
, the new new will be created with the default view
settings. null
is returned if a project is not opened.context
- ViewManager
,
ViewSettings
public View createNewView(MapContextInfo context)
null
, the new new will be created with the default view
settings. null
is returned if a project is not opened.context
- ViewManager
,
ViewSettings
public void projectOpened(ProjectEvent event)
ProjectEventListener
projectOpened
in interface ProjectEventListener
event
- the project eventProjectEvent
public void projectClosed(ProjectEvent event)
ProjectEventListener
projectClosed
in interface ProjectEventListener
event
- the project eventProjectEvent
public void addProjectListener(ProjectEventListener listener)
listener
- the new listenerpublic void removeProjectListener(ProjectEventListener listener)
listener
- the listener to removepublic void shutdown()
public void openUrl(java.lang.String jsFunction, java.lang.String url, boolean addLocaleParams) throws java.lang.Exception
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)java.lang.Exception
public SplashLoginWindow getSplashLoginWindow()
null
will be returned otherwise.public final java.lang.String getJMapVersion()
public JMapClientExtension getClientExtension(java.lang.String className)
className
- the class name of the client extensionpublic JMapClientExtension[] getExtensions()
protected final java.lang.String getJMapExtensionManifestValue(java.lang.Class<?> extensionClass, java.lang.String manifestAttributeName)
protected final java.lang.String getJMapExtensionVersion(java.lang.Class<?> extensionClass)
public UserParameter getUserParameter(java.lang.String parameterKey)
parameterKey
- the parameter key used to retrieve the user parameter.JMapUserParameterController.getUserParameter(String)
public void setUserParameter(UserParameter userParameter)
userParameter
- the user parameter to set.JMapUserParameterController.setUserParameter(UserParameter)
public abstract JMapGuiService getGuiService()
public abstract void initGui()