Class ModelTreeNode
java.lang.Object
ch.tocco.nice2.netui.actions.impl.modeltree.ModelTreeNode
- Direct Known Subclasses:
FormModelTreeNode
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Optional<LinkedHashMap<String, String>> protected Stringprotected Stringprotected longprotected static final AtomicLongprotected Booleanprotected booleanprotected intprotected Booleanprotected Stringrequiredprotected Longprotected Stringrequiredprotected Booleanprotected NodeTyperequired -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid@Nullable StringReturns the documentation for theModelElementas HTML string.getIcon()longgetId()getKey()intgetLevel()getName()getType()booleanisLeaf()voidsetDataType(String dataType) voidsetDefiningModule(String definingModule) voidsetDocumentation(@Nullable LinkedHashMap<String, String> documentation) voidvoidsetIconNameAndHtmlTag(String name, String description) voidsetId(long id) voidvoidvoidsetLeaf(boolean leaf) voidsetLevel(int level) voidsetLocalized(Boolean localized) voidvoidvoidsetParentEntity(String parentEntity) voidsetRequired(Boolean required) voidtoString()
-
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 theModelElementas HTML string. The documentation gets separated by eachAppModulethat contributes documentation to theModelElementsorted by the order in which theAppModules were loaded. Each contributed documentation element gets processed by theHtmlRendererto allow the usage ofMarkdownin 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
-