Class NodeElement
java.lang.Object
com.orchestranetworks.addon.dmdv.template.bean.NodeElement
- Direct Known Subclasses:
NodeDataTable
,NodeExpanderButton
,NodeImage
,NodeIndicator
,NodePanel
,NodeTextBlock
Represents a node element.
- Since:
- 1.2.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns this element's alignment used in Panel layouts.Returns the background color in hex.List<com.orchestranetworks.addon.dmdv.template.bean.BindingValue>
Returns the element type of this element.int
Returns this element's height in local coordinates.int[]
Returns the margin around this element in the following order: top, right, bottom, left.int
getMargin
(MarginType marginType) Returns the margin around this element.getName()
Returns the element name.int
getWidth()
Returns this element's width in local coordinates.void
setAlignment
(AlignmentType alignment) Sets this element's alignment used in Panel layouts.void
setBackgroundColor
(String backgroundColor) Sets the background color in hex.void
setHeight
(int height) Sets this element's height in local coordinates.void
setMargin
(MarginType marginType, int value) Sets the empty area around this element.void
Sets the element name.void
setWidth
(int width) Sets this element's width in local coordinates.
-
Constructor Details
-
NodeElement
public NodeElement()
-
-
Method Details
-
getName
Returns the element name. -
setName
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
Returns the margin around this element.- Parameters:
marginType
- the side of the element.
-
setMargin
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
Returns the background color in hex. -
setBackgroundColor
Sets the background color in hex.- Parameters:
backgroundColor
- a color in hex.
-
getAlignment
Returns this element's alignment used in Panel layouts. -
setAlignment
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
Returns the element type of this element. -
getBindingValuesPublic
-