IlvObject | +--IlvPropertyStateManager | +--IlvFacesProxy | +--IlvSizedViewProxy | +--IlvBasicViewProxy | +--IlvFacesViewProxy | +--IlvDiagrammerViewProxy
IlvDiagrammerViewProxy
is an extension of the
IlvFacesViewProxy
for the JViews Diagrammer module.Constructor Attributes | Constructor Name and Description |
---|---|
IlvDiagrammerViewProxy(clientId, refNodeId, width, height, editable)
|
Method Attributes | Method Name and Description |
---|---|
createLink(x, y, tag, properties, tag, properties)
Creates a link on the diagram from (sourceX, sourceY) position to
(destX, destY) position, providing that nodes existing at that two positions.
|
|
createNode(x, y, tag, properties)
Creates a node on the diagram at the given (x, y) position.
|
|
Returns the data source identifier.
|
|
Returns the diagrammer project URL, if set.
|
|
Returns the
IlvSelectionManager for this view. |
|
Returns the style sheets set on this component.
|
|
performJSFAction(mb, params, capabilities, capabilitiesParams)
Performs a predefined action that will invoke the specified method binding.
|
|
setCreateLinkInteractor(tag, oneshot, properties)
Sets an interactor on the view that allows you to create a link on the diagram
with the given tag.
|
|
setCreateNodeInteractor(tag, oneshot, properties)
Sets an interactor on the view that allows you to create a node on the diagram
with the given tag.
|
|
setDataSourceId(dataSourceId, update)
Sets the data source identifier.
|
|
setProject(project, update, showAll)
Sets the JViews Diagrammer Designer project URL.
|
|
setStyleSheets(css, update)
Sets the style sheets to apply to the diagrammer.
|
getMessageBox, getServletClass, init, setMessageBox, setServletClass |
afterLayoutHandler, getAbsoluteBounds, getBounds, getCreationSize, getHeight, getMinimumSize, getWidth, positionAfterLayout, registerResizeListener, resizeAfterLayout, setMinimumSize |
dispose, getAbsoluteId, getJViewsDHTMLObject, getNodeCoords, getObject, getReferenceNode, setAbsoluteId, setJViewsDHTMLObject, setObject, setPageIdSupport, setReferenceNode, toHTML |
getClientId, notify |
getClassName, hashCode, instanceOf, invoke, registerDispose, registerDisposeByClientId, removeHTML, setClassName, superConstructor, superInvoke, toString, updateVisibility |
<jvdf:diagrammerView/>
is not editable.
var sourceX, sourceY; function onmousedown(e) { // store position var e = diag_proxy.getObject().getGlassView().enhanceEvent(e); sourceX = e.mouseX; sourceY = e.mouseY; } function onmouseclicked(e) { var e = diag_proxy.getObject().getGlassView().enhanceEvent(e); diag_proxy.createNode(sourceX, sourceY, e.mouseX, e.mouseY, "tag"); }
{propertyName1:"propertyValue1", propertyName2:"propertyValue2"}
).
This parameter is optional.
<jvdf:diagrammerView/>
is not editable.
function onmouseclicked(e) { var e = diag_proxy.getObject().getGlassView().enhanceEvent(e); diag_proxy.createNode(e.mouseX, e.mouseY, "tag"); }
{propertyName1:"propertyValue1", propertyName2:"propertyValue2"}
).
This parameter is optional.
IlvSelectionManager
for this view.
This manager allows to prevent an image query on each selection. It queries the server for selection updates and displays rectangles to represent the selection.
The most common use of this method are:
The selection manager is lazily created. As a consequence, the current server selection is not shown on the client before a first call to this method.
This action will be executed before the image generation.
The signature of the method must be void methodName (IlvDiagrammer, String[])
where
the first parameter is the IlvDiagrammer
instance used to draw the diagram and the second
parameter is the array of action parameters.
The action must only change the IlvDiagrammer
instance as only the image is refreshed (the JSF components are not).
If the view is a dashboard view, simply cast the IlvDiagrammer
into an IlvDashboardDiagram
.
getCapabilities
method
(if the capabilities
parameter is set to true
). See the
parameters of the getCapabilities
method of IlvView
for more details.
<jvdf:diagrammerView/>
is not editable.
true
the previous interactor will be pushed back
once a node has been created. Otherwise the interactor will not
be removed until another interactor is set by the setInteractor()
method.
{propertyName1:"propertyValue1", propertyName2:"propertyValue2"}
).
This parameter is optional.
<jvdf:diagrammerView/>
is not editable.
true
the previous interactor will be pushed back
once a node has been created. Otherwise the interactor will not
be removed until another interactor is set by the setInteractor()
method.
{propertyName1:"propertyValue1", propertyName2:"propertyValue2"}
).
This parameter is optional.
update
parameter is set to true
.