Class NodePanel
java.lang.Object
com.orchestranetworks.addon.dmdv.template.bean.NodeElement
com.orchestranetworks.addon.dmdv.template.bean.NodePanel
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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addElement
(NodeElement elements) Adds an element to this panel's element list.Returns the panel border color in hex.Returns the panel border style.int
Returns the panel border width.Sets the content alignment of this panel.Returns the collection of the elements managed by this panel.Returns the panel layout which controls how the panel's elements are measured and arranged.void
setBorderColor
(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
-
Constructor Details
-
NodePanel
public NodePanel()Constructs a newNodePanel
. The default layout isHORIZONTAL
and default alignment isCENTER
.
-
-
Method Details
-
addElement
Adds an element to this panel's element list.- Parameters:
elements
- collection of elements.
-
getElements
Returns the collection of the elements managed by this panel. -
getPanelLayout
Returns the panel layout which controls how the panel's elements are measured and arranged. -
setPanelLayout
Sets the panel layout which controls how the panel's elements are measured and arranged.- Parameters:
panelLayout
- the panel layout.
-
getContentAlignment
Sets the content alignment of this panel. This is used as the alignment for elements contained in this panel. -
setContentAlignment
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
Returns the panel border color in hex. -
setBorderColor
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
Returns the panel border style. -
setBorderStyle
Sets the panel border style.- Parameters:
borderStyle
- the border style of this panel .
-