Search
Diagram.setTableConnectionStyle Method
See Also
 

Sets how users are allowed to link tables to each other - as integral entities, by rows, or both.

Namespace: com.mindfusion.diagramming
Package: com.mindfusion.diagramming

 Syntax

Java  Copy Code

public void setTableConnectionStyle (
    TableConnectionStyle value
)

 Parameters

value

A member of the TableConnectionStyle enumeration.

 Remarks

The value of TableConnectionStyle is used to initialize the ConnectionStyle property of new tables. There are three possible ways to relate tables to other nodes. This property specifies how users are allowed to create such relations:

  • Rows - relation ends are the rows of a table. A link connected to the table is connected to a particular row. This mode is convenient for database diagrams.
  • Table - relations target tables as integral entities, and not any particular row. This mode is convenient for class diagrams.
  • Both - a mixed mode where links can target either a row of a table or the table itself.

Programmatically, links can be connected to a table in any way, regardless of the table's ConnectionStyle. The value of ConnectionStyle is considered only when end-users draw links to or from a table. To link to a table as an entity and not to a specific row, pass -1 as row argument of the createDiagramLink method.

 See Also