Class NodePanel
- java.lang.Object
-
- com.orchestranetworks.addon.dmdv.template.bean.NodeElement
-
- com.orchestranetworks.addon.dmdv.template.bean.NodePanel
-
public final class NodePanel extends NodeElement
Defines an element that holds other elements. Panels determine the sizing and positioning of their elements. The panel elements are drawn in the order in which they appear in the elements collection.- Since:
- 1.2.0
-
-
Constructor Summary
Constructors Constructor Description NodePanel()
Constructs a newNodePanel
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addElement(NodeElement elements)
Adds an element to this panel's element list.java.lang.String
getBorderColor()
Returns the panel border color in hex.BorderStyle
getBorderStyle()
Returns the panel border style.int
getBorderWidth()
Returns the panel border width.AlignmentType
getContentAlignment()
Sets the content alignment of this panel.java.util.List<NodeElement>
getElements()
Returns the collection of the elements managed by this panel.PanelLayout
getPanelLayout()
Returns the panel layout which controls how the panel's elements are measured and arranged.void
setBorderColor(java.lang.String borderColor)
Sets the panel border color.void
setBorderStyle(BorderStyle borderStyle)
Sets the panel border style.void
setBorderWidth(int borderWidth)
Sets the panel border width.void
setContentAlignment(AlignmentType contentAlignment)
Returns the default alignment of this panel.void
setPanelLayout(PanelLayout panelLayout)
Sets the panel layout which controls how the panel's elements are measured and arranged.-
Methods inherited from class com.orchestranetworks.addon.dmdv.template.bean.NodeElement
getAlignment, getBackgroundColor, getBindingValuesPublic, getElementType, getHeight, getMargin, getMargin, getName, getWidth, setAlignment, setBackgroundColor, setHeight, setMargin, setName, setWidth
-
-
-
-
Method Detail
-
addElement
public void addElement(NodeElement elements)
Adds an element to this panel's element list.- Parameters:
elements
- collection of elements.
-
getElements
public java.util.List<NodeElement> getElements()
Returns the collection of the elements managed by this panel.
-
getPanelLayout
public PanelLayout getPanelLayout()
Returns the panel layout which controls how the panel's elements are measured and arranged.
-
setPanelLayout
public void setPanelLayout(PanelLayout panelLayout)
Sets the panel layout which controls how the panel's elements are measured and arranged.- Parameters:
panelLayout
- the panel layout.
-
getContentAlignment
public AlignmentType getContentAlignment()
Sets the content alignment of this panel. This is used as the alignment for elements contained in this panel.
-
setContentAlignment
public void setContentAlignment(AlignmentType contentAlignment)
Returns the default alignment of this panel. This is used as the alignment for elements contained in this panel.- Parameters:
contentAlignment
- the content alignment of this Panel.
-
getBorderColor
public java.lang.String getBorderColor()
Returns the panel border color in hex.
-
setBorderColor
public void setBorderColor(java.lang.String borderColor)
Sets the panel border color.- Parameters:
borderColor
- a color in hex
-
getBorderWidth
public int getBorderWidth()
Returns the panel border width.
-
setBorderWidth
public void setBorderWidth(int borderWidth)
Sets the panel border width.- Parameters:
borderWidth
- a number from 1 to 4.
-
getBorderStyle
public BorderStyle getBorderStyle()
Returns the panel border style.
-
setBorderStyle
public void setBorderStyle(BorderStyle borderStyle)
Sets the panel border style.- Parameters:
borderStyle
- the border style of this panel .
-
-