Package com.vmware.nsx_policy.model
Class Icon.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.Icon.Builder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Iconbuild()Icon.BuildersetColor(java.lang.String color)Icon color applied to icon in hex format.Icon.BuildersetPlacement(java.lang.String placement)Possible values are:Icon.PLACEMENT_PREIcon.PLACEMENT_POSTIf specified as PRE, the icon appears before the UI element.Icon.BuildersetSize(java.lang.Double size)Icon size in unit applied to icon.A unit can be specified by the 'size_unit' property.Icon.BuildersetSizeUnit(java.lang.String sizeUnit)Possible values are:Icon.SIZE_UNIT_PXIcon.SIZE_UNIT_REMIcon.SIZE_UNIT_PCIcon size unit applied to icon along with size.Icon.BuildersetTooltip(java.util.List<Tooltip> tooltip)Multi-line text to be shown on tooltip while hovering over the icon.Icon.BuildersetType(java.lang.String type)Icon will be rendered based on its type.
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofIcon.
-
-
Method Detail
-
setColor
public Icon.Builder setColor(java.lang.String color)
Icon color applied to icon in hex format.- Parameters:
color- New value for the property.
-
setPlacement
public Icon.Builder setPlacement(java.lang.String placement)
Possible values are: If specified as PRE, the icon appears before the UI element. If set as POST, the icon appears after the UI element.- Parameters:
placement- New value for the property.
-
setSize
public Icon.Builder setSize(java.lang.Double size)
Icon size in unit applied to icon.A unit can be specified by the 'size_unit' property.- Parameters:
size- New value for the property.
-
setSizeUnit
public Icon.Builder setSizeUnit(java.lang.String sizeUnit)
Possible values are: Icon size unit applied to icon along with size. if 'size' property value is provided and no value is provided for this property then default value for this proerty is set to 'px'.- Parameters:
sizeUnit- New value for the property.
-
setTooltip
public Icon.Builder setTooltip(java.util.List<Tooltip> tooltip)
Multi-line text to be shown on tooltip while hovering over the icon.- Parameters:
tooltip- New value for the property.
-
setType
public Icon.Builder setType(java.lang.String type)
Icon will be rendered based on its type. For example, if ERROR is chosen, then icon representing error will be rendered. or else custom svg icon name can be given.- Parameters:
type- New value for the property.
-
build
public Icon build()
-
-