Class NodeElement
- java.lang.Object
-
- com.orchestranetworks.addon.dmdv.template.bean.NodeElement
-
- Direct Known Subclasses:
NodeDataTable
,NodeExpanderButton
,NodeImage
,NodeIndicator
,NodePanel
,NodeTextBlock
public abstract class NodeElement extends java.lang.Object
Represents a node element.- Since:
- 1.2.0
-
-
Constructor Summary
Constructors Constructor Description NodeElement()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AlignmentType
getAlignment()
Returns this element's alignment used in Panel layouts.java.lang.String
getBackgroundColor()
Returns the background color in hex.java.util.List<com.orchestranetworks.addon.dmdv.template.bean.BindingValue>
getBindingValuesPublic()
NodeElementType
getElementType()
Returns the element type of this element.int
getHeight()
Returns this element's height in local coordinates.int[]
getMargin()
Returns the margin around this element in the following order: top, right, bottom, left.int
getMargin(MarginType marginType)
Returns the margin around this element.java.lang.String
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(java.lang.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
setName(java.lang.String name)
Sets the element name.void
setWidth(int width)
Sets this element's width in local coordinates.
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Returns the element name.
-
setName
public void setName(java.lang.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 java.lang.String getBackgroundColor()
Returns the background color in hex.
-
setBackgroundColor
public void setBackgroundColor(java.lang.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 java.util.List<com.orchestranetworks.addon.dmdv.template.bean.BindingValue> getBindingValuesPublic()
-
-