public class IlvDiagrammerServletSupport extends IlvSDMServletSupport
IlvDiagrammerServletSupport
is an extension of the
basic IlvSDMServletSupport
class that can
load Diagrammer project files and use Diagrammer data sources.IlvDiagrammer
,
IlvDiagrammerProject
ImageMapAreaGeneratorProperty
Constructor and Description |
---|
IlvDiagrammerServletSupport()
Deprecated.
Beginning with JViews 8.0 use
IlvDiagrammerServletSupport(ServletContext)
instead. |
IlvDiagrammerServletSupport(javax.servlet.ServletContext context)
Creates a new diagrammer servlet support.
|
Modifier and Type | Method and Description |
---|---|
protected IlvSelectionSupport |
createSelectionSupport()
Overrides
IlvManagerServletSupport.createSelectionSupport() to
return an IlvDiagrammerSelectionSupport selection support. |
String |
getDefaultProject()
Returns the default project file.
|
IlvDiagrammer |
getDiagrammer(IlvSDMView view)
Returns the
IlvDiagrammer object attached
to an SDM view. |
boolean |
handleRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
This method is overridden to handle the
"project"
parameter. |
protected void |
initSDMView(javax.servlet.http.HttpServletRequest request,
IlvSDMView view)
This method is overridden to load the default project if any.
|
void |
setDefaultProject(String project)
Sets the default project file.
|
void |
setProject(javax.servlet.http.HttpServletRequest request,
String project)
Loads a Diagrammer project file.
|
findFile, getDataURL, getDefaultStyleSheet, getDefaultXmlFile, getImageMapAreaGenerator, getImageMapAreaGenerator, getLayers, getLock, getManagerView, getSDMView, getValue, installImageMapAreaGenerator, installImageMapAreaGenerator, isMultiSession, prepareManagerView, setDataURL, setDefaultStyleSheet, setDefaultXmlFile, setMultiSession, setStyleSheet, setValue, setXmlFile
additionalCapabilities, additionalCapabilities, addServerActionListener, addServerActionListener, beforeDraw, createPopupMenuSupport, encodeImage, generateImage, generateImageWhenSessionExpired, getAdditionalCapabilities, getAntialiasing, getContentLengthEnable, getContext, getDefaultImageMapHREF, getDynamicLayers, getExpirationDate, getGraphicObjectComparator, getHitmapSupport, getImageMapAreaGenerator, getInternalLock, getJPEGQuality, getKey, getManagerBBox, getManagerLayerComparator, getMaxZoomLevel, getMinZoomLevel, getPopupMenuSupport, getSelectionSupport, getTileManager, getZoomLevels, isOverviewLayer, isPopupEnabled, isSelectionEnabled, isVerbose, removeServerActionListener, removeServerActionListener, setAntialiasing, setContentLengthEnable, setImageResponseCachePolicy, setJPEGQuality, setPopupEnabled, setSelectionEnabled, setVerbose, shouldGenerateImageMap, useTileManager
doGetScriptMessage, getParameterValidationListener, getScriptMessageSupport, setParameterValidationListener
@Deprecated public IlvDiagrammerServletSupport()
IlvDiagrammerServletSupport(ServletContext)
instead.public IlvDiagrammerServletSupport(javax.servlet.ServletContext context)
context
- The servlet context.public void setDefaultProject(String project)
IlvDiagrammerServlet.init(javax.servlet.ServletConfig)
method of the diagrammer.servlet to initialize
the default project to display
when a new client connects to the diagrammer.servlet.project
- The new project file.public String getDefaultProject()
protected void initSDMView(javax.servlet.http.HttpServletRequest request, IlvSDMView view)
initSDMView
in class IlvSDMServletSupport
request
- The request being processed.view
- The new SDM view.public void setProject(javax.servlet.http.HttpServletRequest request, String project)
request
- The request being processed.project
- The URL of the project file.public boolean handleRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException, javax.servlet.ServletException
"project"
parameter.handleRequest
in class IlvSDMServletSupport
request
- The current HTTP request.response
- The HTTP response.false
when the request is not recognized by this
servlet.IOException
- The IOException
javax.servlet.ServletException
- The ServletException
public IlvDiagrammer getDiagrammer(IlvSDMView view)
IlvDiagrammer
object attached
to an SDM view. This object is used to load project files in the diagrammer
servlet.view
- The SDM view.protected IlvSelectionSupport createSelectionSupport()
IlvManagerServletSupport.createSelectionSupport()
to
return an IlvDiagrammerSelectionSupport
selection support.
During the creation of this support, listeners to handle selection and move are installed.
createSelectionSupport
in class IlvManagerServletSupport
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.