public class DefaultEditingSwingManager extends AbstractManager implements EditingSwingManager
Constructor and Description |
---|
DefaultEditingSwingManager() |
Modifier and Type | Method and Description |
---|---|
JPointPanel |
createPointPanel(EditingContext editingContext) |
DynObject |
createServiceParameters(java.lang.String serviceName)
Creates a new object to contain service parameters values.
|
EditingContextMenu |
getContextualMenu(java.awt.Component parent,
AcceptValueListener listener,
EditingServiceParameter parameter,
EditingContext context)
Gets an instance of current parameter contextual menu.To show it, invoke
EditingContextMenu.show(java.awt.Component, int, int) . |
EditingConsole |
getEditingConsole(java.util.List<ResponseListener> listeners)
Gets and instance of
EditingConsole .Response listener list will receive the response
typed by user when ENTER key is pressed. |
EditingConsole |
getEditingConsole(ResponseListener listener)
Gets and instance of
EditingConsole . |
EditingContext |
getEditingContext(MapControl mapControl) |
Service |
getService(DynObject parameters)
Creates a new
Service based on the given parameters. |
void |
registerEditingContext(MapControl mapControl) |
int |
showPanelExportOrDiscard(MapControl parent,
java.lang.String name) |
int |
showPanelSaveOrDiscard(MapControl parent,
java.lang.String name) |
getProviderManager
public EditingContext getEditingContext(MapControl mapControl)
getEditingContext
in interface EditingSwingManager
public Service getService(DynObject parameters) throws ServiceException
Manager
Service
based on the given parameters.getService
in interface Manager
parameters
- of the Service
to createService
ServiceException
- if there is an error creating the Service, or the parameters
are not validpublic void registerEditingContext(MapControl mapControl)
registerEditingContext
in interface EditingSwingManager
public int showPanelExportOrDiscard(MapControl parent, java.lang.String name)
showPanelExportOrDiscard
in interface EditingSwingManager
public int showPanelSaveOrDiscard(MapControl parent, java.lang.String name)
showPanelSaveOrDiscard
in interface EditingSwingManager
public EditingContextMenu getContextualMenu(java.awt.Component parent, AcceptValueListener listener, EditingServiceParameter parameter, EditingContext context)
EditingSwingManager
EditingContextMenu.show(java.awt.Component, int, int)
.getContextualMenu
in interface EditingSwingManager
parent
- of contextual menuparameter
- to build contextual menu according to it types.public EditingConsole getEditingConsole(ResponseListener listener)
EditingSwingManager
EditingConsole
.
The response listener will receive the response typed
by user when ENTER key is pressed.getEditingConsole
in interface EditingSwingManager
listener
- Object that will received the responseEditingConsole
public EditingConsole getEditingConsole(java.util.List<ResponseListener> listeners)
EditingSwingManager
EditingConsole
.Response listener list will receive the response
typed by user when ENTER key is pressed.getEditingConsole
in interface EditingSwingManager
EditingConsole
public DynObject createServiceParameters(java.lang.String serviceName) throws ServiceException
Manager
createServiceParameters
in interface Manager
createServiceParameters
in class AbstractManager
serviceName
- the name of the service whose parameters have to be createdServiceException
- if there is not any service registered with the given namepublic JPointPanel createPointPanel(EditingContext editingContext)
createPointPanel
in interface EditingSwingManager