Class LayoutNode
java.lang.Object
org.dlese.dpc.schemedit.vocab.layout.LayoutNode
A node in a VocabLayout tree as defined by a vocabLayout (historically
called "groups") file.
- Author:
- Jonathan Ostwald
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLayoutNode(org.dom4j.Element element, VocabLayout vocabLayout) Constructor for the LayoutNode objectLayoutNode(org.dom4j.Element element, VocabLayout vocabLayout, LayoutNode parent) Constructor for the LayoutNode object containing the parent node. -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the collapsible attribute of the LayoutNode objectGets the definition attribute value of the LayoutNode objectintGets the groupLevel attribute of the LayoutNode object, which specifies the depth of this LayoutNode within the VocabLayout tree.booleanGets the hasSubList attribute of the LayoutNode objectbooleanReturns true if this LayoutNode is the last in its list.getLabel()Returns the text attribute value if present, and the "name" attribute valueotherwise.getName()Returns the vocab attribute value.booleanGets the noDisplay attribute of the LayoutNode object, suppresses display of this LayoutNode.intGets the number of columns required to render the sublist of which this LayoutNode is a member.Gets the parent (LayoutNode) of the LayoutNode objectGets the subList attribute of the LayoutNode objectgetType()Gets the type attribute of the LayoutNode objectbooleangetWrap()Gets the wrap attribute of the LayoutNode object, used to create a new column in the display.booleanDoes this LayoutNode have childrenvoidreport()NOT YET DOCUMENTEDspacer(int num) NOT YET DOCUMENTED
-
Field Details
-
element
public org.dom4j.Element elementNOT YET DOCUMENTED
-
-
Constructor Details
-
LayoutNode
Constructor for the LayoutNode object- Parameters:
element- element defining this LayoutNode in the vocabLayout filevocabLayout- the vocabLayout instance of which this node is a member
-
LayoutNode
Constructor for the LayoutNode object containing the parent node.- Parameters:
element- element defining this LayoutNode in the vocabLayout filevocabLayout- the vocabLayout instance of which this node is a memberparent- the parent LayoutNode instance
-
-
Method Details
-
getParent
Gets the parent (LayoutNode) of the LayoutNode object- Returns:
- The parent value
-
getName
Returns the vocab attribute value.- Returns:
- The name value
-
getLabel
Returns the text attribute value if present, and the "name" attribute valueotherwise.- Returns:
- The label value
-
getDefinition
Gets the definition attribute value of the LayoutNode object- Returns:
- The definition value
-
getWrap
public boolean getWrap()Gets the wrap attribute of the LayoutNode object, used to create a new column in the display.- Returns:
- The wrap value
-
getNoDisplay
public boolean getNoDisplay()Gets the noDisplay attribute of the LayoutNode object, suppresses display of this LayoutNode.- Returns:
- The noDisplay value
-
getType
Gets the type attribute of the LayoutNode object- Returns:
- The type value
-
getCollapsible
public boolean getCollapsible()Gets the collapsible attribute of the LayoutNode object- Returns:
- The collapsible value
-
getSubList
Gets the subList attribute of the LayoutNode object- Returns:
- The subList value
-
hasSubList
public boolean hasSubList()Does this LayoutNode have children- Returns:
- true if this node has children
-
getHasSubList
public boolean getHasSubList()Gets the hasSubList attribute of the LayoutNode object- Returns:
- The hasSubList value
-
getIsLastInSubList
public boolean getIsLastInSubList()Returns true if this LayoutNode is the last in its list.- Returns:
- The isLastInSubList value
-
getNumColumns
public int getNumColumns()Gets the number of columns required to render the sublist of which this LayoutNode is a member.- Returns:
- The numColumns value
-
getGroupLevel
public int getGroupLevel()Gets the groupLevel attribute of the LayoutNode object, which specifies the depth of this LayoutNode within the VocabLayout tree.- Returns:
- The groupLevel value
-
spacer
NOT YET DOCUMENTED- Parameters:
num- NOT YET DOCUMENTED- Returns:
- NOT YET DOCUMENTED
-
report
public void report()NOT YET DOCUMENTED
-