Class LayoutNode

java.lang.Object
org.dlese.dpc.schemedit.vocab.layout.LayoutNode

public class LayoutNode extends Object
A node in a VocabLayout tree as defined by a vocabLayout (historically called "groups") file.
Author:
Jonathan Ostwald
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    org.dom4j.Element
    NOT YET DOCUMENTED
  • Constructor Summary

    Constructors
    Constructor
    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.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Gets the collapsible attribute of the LayoutNode object
    Gets the definition attribute value of the LayoutNode object
    int
    Gets the groupLevel attribute of the LayoutNode object, which specifies the depth of this LayoutNode within the VocabLayout tree.
    boolean
    Gets the hasSubList attribute of the LayoutNode object
    boolean
    Returns true if this LayoutNode is the last in its list.
    Returns the text attribute value if present, and the "name" attribute valueotherwise.
    Returns the vocab attribute value.
    boolean
    Gets the noDisplay attribute of the LayoutNode object, suppresses display of this LayoutNode.
    int
    Gets the number of columns required to render the sublist of which this LayoutNode is a member.
    Gets the parent (LayoutNode) of the LayoutNode object
    Gets the subList attribute of the LayoutNode object
    Gets the type attribute of the LayoutNode object
    boolean
    Gets the wrap attribute of the LayoutNode object, used to create a new column in the display.
    boolean
    Does this LayoutNode have children
    void
    NOT YET DOCUMENTED
    spacer(int num)
    NOT YET DOCUMENTED

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • element

      public org.dom4j.Element element
      NOT YET DOCUMENTED
  • Constructor Details

    • LayoutNode

      public LayoutNode(org.dom4j.Element element, VocabLayout vocabLayout)
      Constructor for the LayoutNode object
      Parameters:
      element - element defining this LayoutNode in the vocabLayout file
      vocabLayout - the vocabLayout instance of which this node is a member
    • LayoutNode

      public LayoutNode(org.dom4j.Element element, VocabLayout vocabLayout, LayoutNode parent)
      Constructor for the LayoutNode object containing the parent node.
      Parameters:
      element - element defining this LayoutNode in the vocabLayout file
      vocabLayout - the vocabLayout instance of which this node is a member
      parent - the parent LayoutNode instance
  • Method Details

    • getParent

      public LayoutNode getParent()
      Gets the parent (LayoutNode) of the LayoutNode object
      Returns:
      The parent value
    • getName

      public String getName()
      Returns the vocab attribute value.
      Returns:
      The name value
    • getLabel

      public String getLabel()
      Returns the text attribute value if present, and the "name" attribute valueotherwise.
      Returns:
      The label value
    • getDefinition

      public String 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

      public String 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

      public List 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

      public String spacer(int num)
      NOT YET DOCUMENTED
      Parameters:
      num - NOT YET DOCUMENTED
      Returns:
      NOT YET DOCUMENTED
    • report

      public void report()
      NOT YET DOCUMENTED