public class LayoutNode
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
org.dom4j.Element |
element
NOT YET DOCUMENTED
|
Constructor and Description |
---|
LayoutNode(org.dom4j.Element element,
VocabLayout vocabLayout)
Constructor for the LayoutNode object
|
LayoutNode(org.dom4j.Element element,
VocabLayout vocabLayout,
LayoutNode parent)
Constructor for the LayoutNode object containing the parent node.
|
Modifier and Type | Method and Description |
---|---|
boolean |
getCollapsible()
Gets the collapsible attribute of the LayoutNode object
|
java.lang.String |
getDefinition()
Gets the definition attribute value of the LayoutNode object
|
int |
getGroupLevel()
Gets the groupLevel attribute of the LayoutNode object, which specifies the depth of this
LayoutNode within the VocabLayout tree.
|
boolean |
getHasSubList()
Gets the hasSubList attribute of the LayoutNode object
|
boolean |
getIsLastInSubList()
Returns true if this LayoutNode is the last in its list.
|
java.lang.String |
getLabel()
Returns the text attribute value if present, and the "name" attribute
valueotherwise.
|
java.lang.String |
getName()
Returns the vocab attribute value.
|
boolean |
getNoDisplay()
Gets the noDisplay attribute of the LayoutNode object, suppresses display of this LayoutNode.
|
int |
getNumColumns()
Gets the number of columns required to render the sublist of which this
LayoutNode is a member.
|
LayoutNode |
getParent()
Gets the parent (LayoutNode) of the LayoutNode object
|
java.util.List |
getSubList()
Gets the subList attribute of the LayoutNode object
|
java.lang.String |
getType()
Gets the type attribute of the LayoutNode object
|
boolean |
getWrap()
Gets the wrap attribute of the LayoutNode object, used to create a new
column in the display.
|
boolean |
hasSubList()
Does this LayoutNode have children
|
void |
report()
NOT YET DOCUMENTED
|
java.lang.String |
spacer(int num)
NOT YET DOCUMENTED
|
public LayoutNode(org.dom4j.Element element, VocabLayout vocabLayout)
element
- element defining this LayoutNode in the vocabLayout
filevocabLayout
- the vocabLayout instance of which this node is a memberpublic LayoutNode(org.dom4j.Element element, VocabLayout vocabLayout, LayoutNode parent)
element
- element defining this LayoutNode in the vocabLayout
filevocabLayout
- the vocabLayout instance of which this node is a memberparent
- the parent LayoutNode instancepublic LayoutNode getParent()
public java.lang.String getName()
public java.lang.String getLabel()
public java.lang.String getDefinition()
public boolean getWrap()
public boolean getNoDisplay()
public java.lang.String getType()
public boolean getCollapsible()
public java.util.List getSubList()
public boolean hasSubList()
public boolean getHasSubList()
public boolean getIsLastInSubList()
public int getNumColumns()
public int getGroupLevel()
public java.lang.String spacer(int num)
num
- NOT YET DOCUMENTEDpublic void report()