java.lang.Object
com.orchestranetworks.addon.dmdv.template.bean.NodeElement
Direct Known Subclasses:
NodeDataTable, NodeExpanderButton, NodeImage, NodeIndicator, NodePanel, NodeTextBlock

public abstract class NodeElement extends Object
Represents a node element.
Since:
1.2.0
  • Constructor Details

    • NodeElement

      public NodeElement()
  • Method Details

    • getName

      public String getName()
      Returns the element name.
    • setName

      public void setName(String name)
      Sets the element name.
      Parameters:
      name - name of element.
    • getMargin

      public int[] getMargin()
      Returns the margin around this element in the following order: top, right, bottom, left.
    • getMargin

      public int getMargin(MarginType marginType)
      Returns the margin around this element.
      Parameters:
      marginType - the side of the element.
    • setMargin

      public void setMargin(MarginType marginType, int value)
      Sets the empty area around this element. Margin represents a band of space outside or inside a rectangular area and can have different values on each of the four sides.
      Parameters:
      marginType - the side to set.
      value - the value for this side.
    • getBackgroundColor

      public String getBackgroundColor()
      Returns the background color in hex.
    • setBackgroundColor

      public void setBackgroundColor(String backgroundColor)
      Sets the background color in hex.
      Parameters:
      backgroundColor - a color in hex.
    • getAlignment

      public AlignmentType getAlignment()
      Returns this element's alignment used in Panel layouts.
    • setAlignment

      public void setAlignment(AlignmentType alignment)
      Sets this element's alignment used in Panel layouts. This determines where in the area allocated by the panel this element should be placed. Default value is AlignmentType.CENTER.
      Parameters:
      alignment - alignment type enumeration.
    • getWidth

      public int getWidth()
      Returns this element's width in local coordinates.
    • setWidth

      public void setWidth(int width)
      Sets this element's width in local coordinates. When width is not set, the component width will be set to the container panel width.
      Parameters:
      width - a positive integer for width of element.
    • getHeight

      public int getHeight()
      Returns this element's height in local coordinates.
    • setHeight

      public void setHeight(int height)
      Sets this element's height in local coordinates. When the height is not set, component height will be set to the container panel height.
      Parameters:
      height - a positive integer for height of element.
    • getElementType

      public NodeElementType getElementType()
      Returns the element type of this element.
    • getBindingValuesPublic

      public List<com.orchestranetworks.addon.dmdv.template.bean.BindingValue> getBindingValuesPublic()