All Network Events can be used with Gantt diagrams. The event onGeneric is used for this.
An event is fired only when it is bound towards an action.
PARAMETERS is a chain of name-value pairs that is formatted in a certain way. The names can be indexed (for example, labels of nodes whose texts have been changed by the user). The values can consist of lists of entries. The entries can be indexes (for example, a table cell can be represented by a pair, consisting of a row ID and a column ID). The format of the parameter string is configurable, a complex parameter string by default looks like: name1=value1&name2=value2.
· onCellsSelected
Event
meaning that the user has clicked on at a table cell.
Prerequisite for this event is that the table cell is defined as a
hyperlink.
Parameter Name |
Type |
Description |
|
ID |
STRING |
||
CONTEXT_ELEMENT |
IF_WD_CONTEXT_ELEMENT |
||
GRAPH |
STRING |
Source graph in which the event was triggered. |
|
CHART |
STRING |
Chart in which the event was triggered. |
|
COMPONENT |
STRING |
Table |
|
PARAMETERS |
STRING |
ROW |
Row ID of the cell clicked on. |
COL |
Column ID of the cell clicked on. |
· onCellEdited
Event meaning that the user has edited a table cell, that is, the cell content has been changed.
Parameter Name |
Type |
Description |
|
ID |
STRING |
||
CONTEXT_ELEMENT |
IF_WD_CONTEXT_ELEMENT |
||
GRAPH |
STRING |
Source graph in which the event was triggered. |
|
CHART |
STRING |
Chart in which the event was triggered. |
|
COMPONENT |
STRING |
Table |
|
PARAMETERS |
STRING |
ROW |
Row ID of the changed cell |
COL |
Column ID of the changed cell |
||
VALUE |
New value of the changed cell |
· onColumnAdded
Event meaning that a table column has been inserted.
Parameter Name |
Type |
Description |
ID |
STRING |
|
CONTEXT_ELEMENT |
IF_WD_CONTEXT_ELEMENT |
|
GRAPH |
STRING |
Source graph in which the event was triggered. |
CHART |
STRING |
Chart in which the event was triggered. |
COMPONENT |
STRING |
Table |
PARAMETERS |
STRING |
String of parameters (optional and dependent on the event), whose format is fully dependent on the event trigger. |
· onColumnMoved
Event meaning that a table column has been moved or its size changed. The parameters depend on the cause of the event. Only new width values are displayed when the size of a column has been changed.
Parameter Name |
Type |
Description |
|
ID |
STRING |
||
CONTEXT_ELEMENT |
IF_WD_CONTEXT_ELEMENT |
||
GRAPH |
STRING |
Source graph in which the event was triggered. |
|
CHART |
STRING |
Chart in which the event was triggered. |
|
COMPONENT |
STRING |
Table |
|
PARAMETERS |
STRING |
ID |
ID of the column moved or whose size was changed |
COL |
Complete list of column IDs (in new sequence) |
||
WIDTH |
Only for resize events: complete list of new width values for the columns. |
· onColumnRemoved
Event meaning that a table column has been removed.
Parameter Name |
Type |
Description |
ID |
STRING |
|
CONTEXT_ELEMENT |
IF_WD_CONTEXT_ELEMENT |
|
GRAPH |
STRING |
Source graph in which the event was triggered. |
CHART |
STRING |
Chart in which the event was triggered. |
COMPONENT |
STRING |
Table |
PARAMETERS |
STRING |
String of parameters (optional and dependent on the event), whose format is fully dependent on the event trigger. |
· onGeneric
Wrapper around all possible and conceivable events, which can wrap each of the actual events. The events mapped using onGeneric are the following:
¡ All Network Events
¡ CUSTOM_COMMAND
Means that an application-specific command has been called (by the user or by an external controller).
Parameter Name |
Description |
PARAMETER |
Standard: string representation of the command Since application-specifc JNet instances can have their own event processing (particularly the case in connection with application events), the parameter is mainly also application-specific. |
¡ EDGE_ADDED
Means that a connection has been added to a node, though it still has not been connected to another node.
Parameter Name |
Description |
|
Component |
Added connection edge |
|
Parameters |
NODE |
ID of the node to which the connection was added |
I |
Index (0-based) of the new connection in the set of outbound plugs |
¡ EDGE_REMOVED
Means that an unlinked connection has been removed
Parameter Name |
Description |
|
Component |
Removed connection edge |
|
Parameters |
NODE |
ID of the node from which the connection was removed |
I |
Index (0-based) of the new connection for the quantity of outbound plugs |
¡ FRAME_SWITCHED
Means that a SWITCH_FRAME has been executed. The parameter specifies whether the Applet has been removed from the browser window or embedded again.
Parameter Name |
Description |
PARAMETER |
DETACHED, if the browser window has been removed, otherwise EMBEDDED. |
¡ JNET_INITIALIZED
Means that a JNet has been removed (the init() method of the Applet).
¡ LINK_CHANGED
Means that the target node of a connection has been changed.
Parameter Name |
Description |
|
Component |
Newly linked connection edge |
|
Parameters |
SOURCE |
List of the following entries (in this sequence): ... 1. ID of the source node of the connection 2. Index (0-based) of the new connection for the quantity of outbound plugs |
TARGET |
List of the following entries (in this sequence): ... 1. ID of the source node of the new connection 2. Index (0-based) of the connection for the quantity of inbound plugs |
|
OLD |
List of the following entries (in this sequence): ... 1. ID of the source node of the old connection 2. Index (0-based) of the connection for the quantity of inbound plugs of the old target node |
¡ MODEL_REMOVED
Means that the model graph has been removed
¡ RECTANGLE_SELECTED
Means that the user has created wit the mouse a rectangle in the background of the character area This event is important for applications that create a new node using the position and size of a rectangle.
If the parameters are coordinates, then they are model coordinates, that is, they are used to correct the current scaling factor,
Parameter Name |
Description |
|
Parameter |
X |
X-coordinate of the top left-hand corner of the selected rectangle |
Y |
Y-coordinate of the top left-hand corner of the selected rectangle |
|
WIDTH |
Width of the selected rectangle |
|
HEIGHT |
Height of the selected rectangle |
|
ROW |
Only for Gantt: row ID of the top left-hand corner of the rectangle |
|
DATE |
Only for Gantt: List of start and end dates of the rectangle |
¡ ROW_SELECTED
Means that the user has clicked on the header of a table row.
Parameter Name |
Description |
|
Component |
Table |
|
Parameter |
ROW |
ID of the clicked row |
¡ SELECTION_CHANGED
Means something has been selected or that the selection has been removed.
A click on a component (see on_node_selected, on_edge_selected, or on cells_selected) usually leads to a change in its selection status. Though it is not possible to follow the quantity you just selected only by listening to the click events. This means the user can select a component by clicking on it or reset the selection using the control button. The selection can also be changed using the keyboard (for example CTRL-A to select all) or even by external controllers through the JNet command interface. For this reason this special event is required for making selection changes.
Note that registration for this event can result in a high network load for listeners from other locations.
Parameter Name |
Description |
|
Component |
Graph or table component in which the selection was changed. |
|
Parameter |
NODE |
IDs of the selected nodes |
EDGE |
IDs of the selected connection edges |
|
ROW |
IDs of the selected table rows (the whole row is selected) |
|
COL |
IDs of the selected table columns (the whole column is selected) |
|
CELL |
When table cells are selected (but not their rows or columns), the area of the selected cells are specified as a list of 4 IDs: rowID-top,colID-left,rowID-bottom,colID-right. |
Parameter Name |
Type |
Description |
ID |
STRING |
|
CONTEXT_ELEMENT |
IF_WD_CONTEXT_ELEMENT |
|
GRAPH |
STRING |
Source graph in which the event was triggered. |
CHART |
STRING |
Chart in which the event was triggered. |
COMPONENT |
STRING |
Subgraph, node or link associated with the event |
PARAMETERS |
STRING |
String of parameters (optional and dependent on the event), whose format is fully dependent on the event trigger. |
NAME |
STRING |
Name of the wrapper |
· onRowAdded
Event meaning that a table row has been inserted.
Parameter Name |
Type |
Description |
ID |
STRING |
|
CONTEXT_ELEMENT |
IF_WD_CONTEXT_ELEMENT |
|
GRAPH |
STRING |
Source graph in which the event was triggered. |
CHART |
STRING |
Chart in which the event was triggered. |
COMPONENT |
STRING |
Table |
PARAMETERS |
STRING |
ID of the table row |
· onRowCollapsed
Event meaning that a table row has been collapsed.
Parameter Name |
Type |
Description |
|
|
|
|
|
|
|
|
|
GRAPH |
STRING |
Source graph in which the event was triggered. |
|
CHART |
STRING |
Chart in which the event was triggered. |
|
COMPONENT |
STRING |
Table |
|
PARAMETERS |
STRING |
ROW |
ID of the collapsed table row |
· onRowExpanded
Event meaning that a table row has been expanded.
Parameter Name |
Type |
Description |
|
ID |
STRING |
||
CONTEXT_ELEMENT |
IF_WD_CONTEXT_ELEMENT |
||
GRAPH |
STRING |
Source graph in which the event was triggered. |
|
CHART |
STRING |
Chart in which the event was triggered. |
|
COMPONENT |
STRING |
Table |
|
PARAMETERS |
STRING |
ROW |
ID of the expanded table row |
· onRowMoved
Event meaning that a table row has been moved.
Parameter Name |
Type |
Description |
|
ID |
STRING |
||
CONTEXT_ELEMENT |
IF_WD_CONTEXT_ELEMENT |
||
GRAPH |
STRING |
Source graph in which the event was triggered. |
|
CHART |
STRING |
Chart in which the event was triggered. |
|
COMPONENT |
STRING |
Table |
|
PARAMETERS |
STRING |
ROW |
ID(s) of the moved table row(s) |
I |
New row index (0-based) of the moved row If more than one row has been moved,this is the index of the first row |
||
PARENT |
ID of the new parent row This is only specified if the table contains a tree column |
· onRowRemoved
Event meaning that a table row has been removed.
Parameter Name |
Type |
Description |
ID |
STRING |
|
CONTEXT_ELEMENT |
IF_WD_CONTEXT_ELEMENT |
|
GRAPH |
STRING |
Source graph in which the event was triggered. |
CHART |
STRING |
Chart in which the event was triggered. |
COMPONENT |
STRING |
Table |
PARAMETERS |
STRING |
ID of the table row |