Gantt Events 
Note
All Network Events can be used also with Gantt. The onGeneric event is used for this.
An event is only fired if it is bound to an action.
PARAMETERS is a string of name/value pairs that has a specific format. The names can be indexed (for example, the labels of a node whose texts have been changed by the user). The values may consist of lists of entries. The entries may be indexes (for example, a table cell can be represented by a pair, consisting of a row ID and column ID). The format of the parameter string can be configured; a complex parameter string usually looks like: name1=value1&name2=value2 ...
onCellsSelected
Event indicating that the user has clicked on a table row.
Prerequisite for this event is the definition of the table cell 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 cell clicked on |
COL |
Column ID of cell clicked on |
||
onCellEdited
Event indicating 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 changed cell |
COL |
Column ID of changed cell |
||
VALUE |
New value of changed cell |
||
onColumnAdded
Event indicating 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 (optional and event-dependent) parameters whose format is fully dependent on the event trigger. |
onColumnMoved
Event indicating that a table column has been moved or its size changed. The parameters depend on the cause of the event: New width values are only output if 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 that was moved or its size changed. |
COL |
Complete list of the column IDs (in the new order) |
||
WIDTH |
Only with resize events: Complete list of the new width values of the columns |
||
onColumnRemoved
Event indicating that a table column has been deleted.
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 (optional and event-dependent) parameters whose format is fully dependent on the event trigger. |
onGeneric
All Network Events
CUSTOM_COMMAND
Wrapper for all possible events that could wrap the actual events. The following events are mapped across onGeneric:
Indicates that an application-specific command has been called (by the user or by an external controller).
Parameter Name |
Description |
|---|---|
PARAMETER |
Default: String representation of the command Since application-specific JNet instances can have a separate event processing (in particular in connection with application events), the parameter is also mostly application-specific. |
EDGE_ADDED
Indicates that a link has been added to a node, but is not yet linked to another node.
Parameter Name |
Description |
|
|---|---|---|
Component |
Added connection edge |
|
Parameter |
NODE |
ID of node where the connection was added |
I |
Index (0-based) of the new connection in the set of outbound plugs |
|
EDGE_REMOVED
Indicates that an unbound connection has been removed
Parameter Name |
Description |
|
|---|---|---|
Component |
Removed connection edge |
|
Parameter |
NODE |
ID of node where the connection was removed |
I |
Index (0-based) of the new connection in the set of outbound plugs |
|
FRAME_SWITCHED
Indicates that a SWITCH_FRAME was executed This parameter specifies whether the Applet was detached from the browser window or embedded again.
Parameter Name |
Description |
|---|---|
PARAMETER |
DETACHED, if the browser windo was detached, otherwise EMBEDDED. |
JNET_INITIALIZED
Indicates that a JNet has been triggered (the init() method of the Applet).
LINK_CHANGED
Indicates that a target node of a connection has been changed.
Parameter Name |
Description |
|
|---|---|---|
Component |
Newly linked connection edge |
|
Parameter |
SOURCE |
List of the following entries (in this sequence):
|
TARGET |
List of the following entries (in this sequence):
|
|
OLD |
List of the following entries (in this sequence):
|
|
MODEL_REMOVED
Indicates that the model graph has been removed.
RECTANGLE_SELECTED
Indicates that the user has created with the mouse a rectangle on the background of the character range. This event is needed for applications that create a new node using the position and size of a rectangle.
If the parameters are coordinates, they are model coordinates, which means that are used for correcting the current scaling factor.
Parameter Name |
Description |
|
|---|---|---|
Parameter |
X |
X coordinate of the top left corner of the selected rectangle. |
Y |
Y coordinate of the top left corner of the selected rectangle. |
|
WIDTH |
Width of the rectangle |
|
HEIGHT |
Height of the rectangle |
|
ROW |
Only for Gantt: Row ID of the top left corner of the rectangle. |
|
DATE |
Only for Gantt: List of start and end data of the rectangle. |
|
ROW_SELECTED
Indicates 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
Indicates that something has been selected or the selection has been removed.
A click on a component (see on_node_selected, on_edge_selected, or on cells_selected) usually results in a change to its selection status. But it is not possible to trace the set just selected just by listening to the click events. This means that the user can select a component by clicking on it or cancel the selection with the control button. The selection can also be changed using the keyboard buttons (e.g. CTRL-A to select all), or even by external controllers through the JNet command interface. For this reason this special event is required for selection changes.
Note that the registration for this event can mean a high network workload for listeners in other locations.
Parameter Name |
Description |
|
|---|---|---|
Component |
Graph or table component in which the selection was changed |
|
Parameter |
NODE |
IDs of the selected node |
EDGE |
IDs of the selected connection edges |
|
ROW |
IDs of the selected table rows (whole row is selected) |
|
COL |
IDs of the selected table columns (whole column is selected) |
|
CELL |
If table rows are selected (but not rows or columns), the range 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 (optional and event-dependent) parameters whose format is fully dependent on the event trigger. |
NAME |
STRING |
Name of the wrapper |
onRowAdded
Event indicating 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 indicating that a table row has been collapsed.
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 collapsed table row |
onRowExpanded
Event indicating 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 indicating 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 move, then 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 indicating 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 |