Class ModelTreeNode
java.lang.Object
ch.tocco.nice2.netui.actions.impl.modeltree.ModelTreeNode
- Direct Known Subclasses:
FormModelTreeNode
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
protected Optional
<LinkedHashMap<String, String>> protected String
protected String
protected long
protected static final AtomicLong
protected Boolean
protected boolean
protected int
protected Boolean
protected String
requiredprotected Long
protected String
requiredprotected Boolean
protected NodeType
required -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
@Nullable String
Returns the documentation for theModelElement
as HTML string.getIcon()
long
getId()
getKey()
int
getLevel()
getName()
getType()
boolean
isLeaf()
void
setDataType
(String dataType) void
setDefiningModule
(String definingModule) void
setDocumentation
(@Nullable LinkedHashMap<String, String> documentation) void
void
setIconNameAndHtmlTag
(String name, String description) void
setId
(long id) void
void
void
setLeaf
(boolean leaf) void
setLevel
(int level) void
setLocalized
(Boolean localized) void
void
void
setParentEntity
(String parentEntity) void
setRequired
(Boolean required) void
toString()
-
Field Details
-
idGenerator
-
name
required -
type
required -
parentEntity
required -
icon
-
iconHtmlTag
-
id
protected long id -
level
protected int level -
leaf
protected boolean leaf -
parent
-
labels
-
dataType
-
required
-
localized
-
key
-
documentation
-
-
Constructor Details
-
ModelTreeNode
public ModelTreeNode() -
ModelTreeNode
-
-
Method Details
-
generateId
public void generateId() -
getParent
-
setParent
-
getId
public long getId() -
setId
public void setId(long id) -
getLevel
public int getLevel() -
setLevel
public void setLevel(int level) -
isLeaf
public boolean isLeaf() -
setLeaf
public void setLeaf(boolean leaf) -
getIcon
-
setIconNameAndHtmlTag
-
getIconHtmlTag
-
setName
-
setType
-
setParentEntity
-
setIcon
-
getParentEntity
-
getName
-
getType
-
getLabels
-
setLabels
-
getDataType
-
setDataType
-
getDocumentation
Returns the documentation for theModelElement
as HTML string. The documentation gets separated by eachAppModule
that contributes documentation to theModelElement
sorted by the order in which theAppModule
s were loaded. Each contributed documentation element gets processed by theHtmlRenderer
to allow the usage ofMarkdown
in the documentation, which at this point is parsed to HTML code.- Returns:
- the formatted html code of documentation for this
ModelElement
-
setDocumentation
-
getRequired
-
setRequired
-
getLocalized
-
setLocalized
-
getKey
-
setKey
-
getDefiningModule
-
setDefiningModule
-
toString
-