public final class Table extends DiagramNode
| Modifier and Type | Method and Description |
|---|---|
TableField |
addField(String name)
Adds a child field node inside the current table node.
|
TableGroup |
addGroup(String name)
Adds a child group node inside the current table node.
|
TableField |
addPrimaryKeyField(String name)
Adds a child field node as primary key inside the current table node.
|
List<DiagramNode> |
getChildren()
Returns an unmodifiable list of direct child nodes inside the current table node.
|
DatasetGroup |
getParent()
Returns the direct parent group node of the current table node; returns
null if the current table node is external. |
String |
getTooltip()
Returns the tool tip of the current external table node.
|
boolean |
isExternalTable()
Returns
true if the current table node is an external table. |
boolean |
isTable()
Returns
true if the current node is a table node. |
getLabel, getName, isDatasetField, isDatasetGroup, isTableField, isTableGroup, setLabel, setLabelpublic String getTooltip()
isExternalTable()public boolean isExternalTable()
true if the current table node is an external table.public DatasetGroup getParent()
null if the current table node is external.getParent in class DiagramNodepublic List<DiagramNode> getChildren()
public boolean isTable()
DiagramNodetrue if the current node is a table node.isTable in class DiagramNodepublic TableGroup addGroup(String name)
name - a specific name for the child group node.TableGrouppublic TableField addField(String name)
name - a specific the name f the child field node.TableFieldpublic TableField addPrimaryKeyField(String name)
name - a specific name for the child field node.TableField