A network is the graphical or tabular representation of flows and their dependencies.
The network UI element allows you to include a JNet applet that offers the user a large number of interactive options.
The network data and display are defined by an xml file that needs to be provided in the context and then bound to the context using data binding in the dataSource property.
More information about the structure of the XML: JNet/JGantt Developer Documentation
Determines the data source of the network. This allows you to specify the path to the context attribute that provides the data.
Determines the height of the Network element, which you can specify in relative CSS units like em or ex.
Specifies the appearance of the network. layout is of the enumeration type WDNetworkLayout and can take the following values:
Determines the width of the Network element, which you can specify in relative CSS units like em, ex, or percentage.
Name | Interface | Type | Initial Value | Bindable |
---|---|---|---|---|
dataSource |
IWDNetwork |
Object |
|
bindable_mandatory |
enabled |
IWDUIElement |
boolean |
true |
bindable |
height |
IWDAbstractActiveComponent |
String |
300px |
bindable |
layout |
IWDNetwork |
WDNetworkLayout |
standard |
bindable |
tooltip |
IWDUIElement |
String |
|
bindable |
visible |
IWDUIElement |
WDVisibility |
visible |
bindable |
width |
IWDAbstractActiveComponent |
String |
300px |
bindable |
Triggered if an application-specific command is called either by the user or by an external controller.
Triggered if an edge is added to a node but does not link to another node.
Triggered if an edge is removed from a node.
Executed if the edge properties are changed. This applies only for those properties that affect the appearance of the edges; changes to the source or target of a link trigger the events onLinkAdded and onLinkRemoved.
Triggered if an edge is clicked.
Allows the inclusion of user-defined events.
Triggered if a sub-graph is added to the network.
Triggered if a sub-graph is removed.
Triggered if the JNet - the init method of the applet - is triggered.
Triggered if the position of a node changes.
Triggered if a link is added to the network, that is, an edge is connected to a node.
Triggered if the target node of a link has changed.
Triggered if a link is removed from the network, that is, the connection is split without removing the edge.
Triggered if the entire model is replaced.
Triggered if the current model is changed, and the status is set todirty. dirty means that an event is triggered after which the network no longer corresponds to the specification of the server application.
Triggered if a new model is extracted from the current model. This can happen if the user performs a graph analysis in order to filter a particular subset of the model. The new model is displayed in a new frame whose ID can be used as the target ID for commands to the new graph.
Triggered if the current model is saved.
Triggered if a node is added to the Network.
Triggered if a node is double-clicked.
Triggered if the properties of a node are changed. This does not apply to the node position. If the node position is changed, event onLayoutChanged is triggered.
Triggered if a node is removed.
Triggered if a node is selected.
Triggered if the user creates a rectangle in the background of the character area.
Triggered if an exception is changed, that is, if one is selected, or a selection is removed.
Triggered if the trace level of JNet has been changed.