public final class Icon
extends java.lang.Object
implements java.io.Serializable, com.vmware.vapi.bindings.StaticStructure
Modifier and Type | Class and Description |
---|---|
static class |
Icon.Builder
Builder class for
Icon . |
Modifier and Type | Field and Description |
---|---|
protected com.vmware.vapi.data.StructValue |
__dynamicStructureFields |
static java.lang.String |
PLACEMENT_POST |
static java.lang.String |
PLACEMENT_PRE |
static java.lang.String |
SIZE_UNIT_PC |
static java.lang.String |
SIZE_UNIT_PX |
static java.lang.String |
SIZE_UNIT_REM |
Modifier | Constructor and Description |
---|---|
|
Icon()
Default constructor.
|
protected |
Icon(com.vmware.vapi.data.StructValue __dynamicStructureFields) |
Modifier and Type | Method and Description |
---|---|
<T extends com.vmware.vapi.bindings.Structure> |
_convertTo(java.lang.Class<T> clazz) |
java.lang.String |
_getCanonicalName() |
static java.lang.String |
_getCanonicalTypeName()
Returns the canonical type name.
|
static com.vmware.vapi.bindings.type.StructType |
_getClassType()
WARNING: Internal method, subject to change in future versions.
|
com.vmware.vapi.data.StructValue |
_getDataValue() |
com.vmware.vapi.data.DataValue |
_getDynamicField(java.lang.String fieldName) |
java.util.Set<java.lang.String> |
_getDynamicFieldNames() |
com.vmware.vapi.bindings.type.StructType |
_getType() |
boolean |
_hasTypeNameOf(java.lang.Class<? extends com.vmware.vapi.bindings.Structure> clazz) |
static Icon |
_newInstance(com.vmware.vapi.data.StructValue structValue)
WARNING: Internal method, subject to change in future versions.
Returns new instance of this binding class and injects the provided data value. WARNING: The returned object is not fully initialized. |
static Icon |
_newInstance2(com.vmware.vapi.data.StructValue structValue)
WARNING: Internal method, subject to change in future versions.
Serves as a versioning mechanism. |
void |
_setDynamicField(java.lang.String fieldName,
com.vmware.vapi.data.DataValue fieldValue) |
protected void |
_updateDataValue(com.vmware.vapi.data.StructValue structValue) |
void |
_validate() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getColor()
Icon color applied to icon in hex format.
|
java.lang.String |
getPlacement()
Possible values are:
PLACEMENT_PRE PLACEMENT_POST If specified as PRE, the
icon appears before the UI element. |
java.lang.Double |
getSize()
Icon size in unit applied to icon.A unit can be specified by the 'size_unit'
property.
|
java.lang.String |
getSizeUnit()
Possible values are:
SIZE_UNIT_PX SIZE_UNIT_REM SIZE_UNIT_PC Icon size unit applied to
icon along with size. |
java.util.List<Tooltip> |
getTooltip()
Multi-line text to be shown on tooltip while hovering over the icon.
|
java.lang.String |
getType()
Icon will be rendered based on its type.
|
int |
hashCode() |
void |
setColor(java.lang.String color)
Icon color applied to icon in hex format.
|
void |
setPlacement(java.lang.String placement)
Possible values are:
PLACEMENT_PRE PLACEMENT_POST If specified as PRE, the
icon appears before the UI element. |
void |
setSize(java.lang.Double size)
Icon size in unit applied to icon.A unit can be specified by the 'size_unit'
property.
|
void |
setSizeUnit(java.lang.String sizeUnit)
Possible values are:
SIZE_UNIT_PX SIZE_UNIT_REM SIZE_UNIT_PC Icon size unit applied to
icon along with size. |
void |
setTooltip(java.util.List<Tooltip> tooltip)
Multi-line text to be shown on tooltip while hovering over the icon.
|
void |
setType(java.lang.String type)
Icon will be rendered based on its type.
|
java.lang.String |
toString() |
public static final java.lang.String PLACEMENT_PRE
public static final java.lang.String PLACEMENT_POST
public static final java.lang.String SIZE_UNIT_PX
public static final java.lang.String SIZE_UNIT_REM
public static final java.lang.String SIZE_UNIT_PC
protected com.vmware.vapi.data.StructValue __dynamicStructureFields
public Icon()
protected Icon(com.vmware.vapi.data.StructValue __dynamicStructureFields)
public java.lang.String getColor()
public void setColor(java.lang.String color)
color
- New value for the property.public java.lang.String getPlacement()
public void setPlacement(java.lang.String placement)
placement
- New value for the property.public java.lang.Double getSize()
public void setSize(java.lang.Double size)
size
- New value for the property.public java.lang.String getSizeUnit()
public void setSizeUnit(java.lang.String sizeUnit)
sizeUnit
- New value for the property.public java.util.List<Tooltip> getTooltip()
public void setTooltip(java.util.List<Tooltip> tooltip)
tooltip
- New value for the property.public java.lang.String getType()
public void setType(java.lang.String type)
type
- New value for the property.public com.vmware.vapi.bindings.type.StructType _getType()
_getType
in interface com.vmware.vapi.bindings.StaticStructure
public com.vmware.vapi.data.StructValue _getDataValue()
_getDataValue
in interface com.vmware.vapi.bindings.Structure
protected void _updateDataValue(com.vmware.vapi.data.StructValue structValue)
public void _validate()
_validate
in interface com.vmware.vapi.bindings.StaticStructure
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in interface com.vmware.vapi.bindings.StaticStructure
toString
in class java.lang.Object
public boolean _hasTypeNameOf(java.lang.Class<? extends com.vmware.vapi.bindings.Structure> clazz)
_hasTypeNameOf
in interface com.vmware.vapi.bindings.Structure
public <T extends com.vmware.vapi.bindings.Structure> T _convertTo(java.lang.Class<T> clazz)
_convertTo
in interface com.vmware.vapi.bindings.Structure
public void _setDynamicField(java.lang.String fieldName, com.vmware.vapi.data.DataValue fieldValue)
_setDynamicField
in interface com.vmware.vapi.bindings.StaticStructure
public com.vmware.vapi.data.DataValue _getDynamicField(java.lang.String fieldName)
_getDynamicField
in interface com.vmware.vapi.bindings.StaticStructure
public java.util.Set<java.lang.String> _getDynamicFieldNames()
_getDynamicFieldNames
in interface com.vmware.vapi.bindings.StaticStructure
public static com.vmware.vapi.bindings.type.StructType _getClassType()
StructType
instance representing the static bindings
type for this Structure
.public java.lang.String _getCanonicalName()
_getCanonicalName
in interface com.vmware.vapi.bindings.Structure
public static java.lang.String _getCanonicalTypeName()
_getCanonicalName()
.public static Icon _newInstance(com.vmware.vapi.data.StructValue structValue)
structValue
- the source of the data contained in the binding object. Could
contain more data than fields of this class can describe i.e.
newer version of the binding object. Could be null.StructType
public static Icon _newInstance2(com.vmware.vapi.data.StructValue structValue)