Constructor and Description |
---|
Builder()
Constructor with parameters for the required properties of
Icon . |
Modifier and Type | Method and Description |
---|---|
Icon |
build() |
Icon.Builder |
setColor(java.lang.String color)
Icon color applied to icon in hex format.
|
Icon.Builder |
setPlacement(java.lang.String placement)
Possible values are:
Icon.PLACEMENT_PRE Icon.PLACEMENT_POST If specified as PRE, the
icon appears before the UI element. |
Icon.Builder |
setSize(java.lang.Double size)
Icon size in unit applied to icon.A unit can be specified by the 'size_unit'
property.
|
Icon.Builder |
setSizeUnit(java.lang.String sizeUnit)
Possible values are:
Icon.SIZE_UNIT_PX Icon.SIZE_UNIT_REM Icon.SIZE_UNIT_PC Icon size unit applied to
icon along with size. |
Icon.Builder |
setTooltip(java.util.List<Tooltip> tooltip)
Multi-line text to be shown on tooltip while hovering over the icon.
|
Icon.Builder |
setType(java.lang.String type)
Icon will be rendered based on its type.
|
public Builder()
Icon
.public Icon.Builder setColor(java.lang.String color)
color
- New value for the property.public Icon.Builder setPlacement(java.lang.String placement)
placement
- New value for the property.public Icon.Builder setSize(java.lang.Double size)
size
- New value for the property.public Icon.Builder setSizeUnit(java.lang.String sizeUnit)
sizeUnit
- New value for the property.public Icon.Builder setTooltip(java.util.List<Tooltip> tooltip)
tooltip
- New value for the property.public Icon.Builder setType(java.lang.String type)
type
- New value for the property.public Icon build()