JMap Server Lima
JMap Server SDK
JMap Server SDK
  • Welcome to JMap Server SDK
  • General Concepts
  • JMap Pro and JMap Server Development
    • JMap Pro
      • Class Model
      • Map Elements
      • Coordinate Systems
      • Views and View Manager
      • Layers and Layer Manager
      • JMap Pro Application
      • Client-Server Communication
      • List of GUI Components
      • JMap Tools
      • JMap Pro Extensions
      • Integrating JMap Pro With Other Applications
      • References
    • JMap Server
      • JMap Server Extensions
    • JMap 7 API
    • JMap Pro Extension Builder
  • JMap Web Development
    • JMap Web Extensions
      • Programming JMap Web extensions
      • Sending Server Requests and Custom Actions
      • Default JMap Web Actions
      • Deploying JMap Web Extensions
    • Embedding a JMap Web Deployment Into Your own Application
Propulsé par GitBook

K2 Geospatial 2024

Sur cette page
  • Concepts
  • Communication with JMap Server
  • Application services
  • Application context
Exporter en PDF
  1. JMap Pro and JMap Server Development
  2. JMap Pro

JMap Pro Application

PrécédentLayers and Layer ManagerSuivantClient-Server Communication

Dernière mise à jour il y a 6 mois

Concepts

JMap Pro applications are developed on a modular basis to simplify the addition of new features. Applications can be broken down into three levels, two of which are scalable to allow for programming additional features.

The first level is the entry point of the application ( class), which covers the type of application (applet, Java Web Start or standalone Java) and instantiates the application class (instance of the class) to be used. The second level is the JMap Pro application; it is driven by its abstract class, , which provides all the services required to ensure its proper operation. Since the class does not provide the application’s graphical interface, it is necessary to instantiate a class that inherits the JMapApplication class and that will instantiate the application’s graphical components, including the layer hierarchy and button toolbars. The DockingClient class, included in this SDK, is a good example of a JMap Pro application. The third level is for JMap extensions. JMap Pro applications allow you to develop and use extension classes ( class) to add new features to applications. JMap Pro extension development is explained in the following section.

Communication with JMap Server

When the application is initialized, a connection with JMap Server is established based on the application parameters that have been specified. Communication with the server is unidirectional and allows for exchanging messages using requests and responses. The details of this communication are explained in this section.

Application services

The following table shows the most commonly used methods of the class.

Adds a project listener in the application's list of listeners.

Removes a project listener from the application's list of listeners.

Returns an instance of java.util.Logger to perform logging in the application.

Defines a user parameter to be saved.

Application context

Creates a new view ( class) initialized with the current project in the application.

Returns the active project ( class) in the application.

Returns the instance to be used in order to access and manipulate the components of the application's GUI.

Returns the extension loaded ( class) for the specified class name.

Returns the messaging controller ( class) of the application.

Returns the edition transaction manager ( class) of the application.

Returns the user parameter controller ( class).

Returns the user parameter ( class) saved for the specified key.

When initializing the application, all useful instances that define the application’s execution context are stored in a singleton of the class.

JMapApplicationLauncher
JMapApplication
JMapApplication
JMapApplication
JMapClientExtension
JMapApplication
JMapApplicationContext
addProjectListener(ProjectEventListener)
removeProjectListener(ProjectEventListener listener)
createNewView()
View
getCurrentProject()
Project
getGuiService()
JMapGuiService
getLogger()
getClientExtension(String)
JMapClientExtension
getMessagingController()
JMapClientMessagingController
getEditionTransactionManager()
EditionTransactionManager
getUserParameterController()
JMapUserParameterController
getUserParameter(String)
UserParameter
setUserParameter(UserParameter)