public final class WidgetItem
extends java.lang.Object
implements java.io.Serializable, com.vmware.vapi.bindings.StaticStructure
| Modifier and Type | Class and Description |
|---|---|
static class |
WidgetItem.Builder
Builder class for
WidgetItem. |
| Modifier and Type | Field and Description |
|---|---|
protected com.vmware.vapi.data.StructValue |
__dynamicStructureFields |
static java.lang.String |
ALIGNMENT_LEFT |
static java.lang.String |
ALIGNMENT_RIGHT |
| Modifier | Constructor and Description |
|---|---|
|
WidgetItem()
Default constructor.
|
protected |
WidgetItem(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 WidgetItem |
_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 WidgetItem |
_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 |
getAlignment()
Possible values are:
ALIGNMENT_LEFT ALIGNMENT_RIGHT Aligns
widget either left or right. |
Label |
getLabel() |
java.lang.Long |
getRowspan()
Represents the vertical span of the widget / container format: int32
|
java.lang.Boolean |
getSeparator()
If true, separates this widget in a container.
|
java.lang.Long |
getSpan()
Represents the horizontal span of the widget / container.
|
java.lang.Long |
getWeight()
Determines placement of widget or container relative to other widgets and
containers.
|
java.lang.String |
getWidgetId()
Id of the widget configuration that is held by a multi-widget or a container or
a view.
|
int |
hashCode() |
void |
setAlignment(java.lang.String alignment)
Possible values are:
ALIGNMENT_LEFT ALIGNMENT_RIGHT Aligns
widget either left or right. |
void |
setLabel(Label label) |
void |
setRowspan(java.lang.Long rowspan)
Represents the vertical span of the widget / container format: int32
|
void |
setSeparator(java.lang.Boolean separator)
If true, separates this widget in a container.
|
void |
setSpan(java.lang.Long span)
Represents the horizontal span of the widget / container.
|
void |
setWeight(java.lang.Long weight)
Determines placement of widget or container relative to other widgets and
containers.
|
void |
setWidgetId(java.lang.String widgetId)
Id of the widget configuration that is held by a multi-widget or a container or
a view.
|
java.lang.String |
toString() |
public static final java.lang.String ALIGNMENT_LEFT
public static final java.lang.String ALIGNMENT_RIGHT
protected com.vmware.vapi.data.StructValue __dynamicStructureFields
public WidgetItem()
protected WidgetItem(com.vmware.vapi.data.StructValue __dynamicStructureFields)
public java.lang.String getAlignment()
public void setAlignment(java.lang.String alignment)
alignment - New value for the property.public Label getLabel()
public void setLabel(Label label)
label - New value for the property.public java.lang.Long getRowspan()
public void setRowspan(java.lang.Long rowspan)
rowspan - New value for the property.public java.lang.Boolean getSeparator()
public void setSeparator(java.lang.Boolean separator)
separator - New value for the property.public java.lang.Long getSpan()
public void setSpan(java.lang.Long span)
span - New value for the property.public java.lang.Long getWeight()
public void setWeight(java.lang.Long weight)
weight - New value for the property.public java.lang.String getWidgetId()
public void setWidgetId(java.lang.String widgetId)
widgetId - New value for the property.public com.vmware.vapi.bindings.type.StructType _getType()
_getType in interface com.vmware.vapi.bindings.StaticStructurepublic com.vmware.vapi.data.StructValue _getDataValue()
_getDataValue in interface com.vmware.vapi.bindings.Structureprotected void _updateDataValue(com.vmware.vapi.data.StructValue structValue)
public void _validate()
_validate in interface com.vmware.vapi.bindings.StaticStructurepublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in interface com.vmware.vapi.bindings.StaticStructuretoString in class java.lang.Objectpublic boolean _hasTypeNameOf(java.lang.Class<? extends com.vmware.vapi.bindings.Structure> clazz)
_hasTypeNameOf in interface com.vmware.vapi.bindings.Structurepublic <T extends com.vmware.vapi.bindings.Structure> T _convertTo(java.lang.Class<T> clazz)
_convertTo in interface com.vmware.vapi.bindings.Structurepublic void _setDynamicField(java.lang.String fieldName,
com.vmware.vapi.data.DataValue fieldValue)
_setDynamicField in interface com.vmware.vapi.bindings.StaticStructurepublic com.vmware.vapi.data.DataValue _getDynamicField(java.lang.String fieldName)
_getDynamicField in interface com.vmware.vapi.bindings.StaticStructurepublic java.util.Set<java.lang.String> _getDynamicFieldNames()
_getDynamicFieldNames in interface com.vmware.vapi.bindings.StaticStructurepublic 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.Structurepublic static java.lang.String _getCanonicalTypeName()
_getCanonicalName().public static WidgetItem _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.StructTypepublic static WidgetItem _newInstance2(com.vmware.vapi.data.StructValue structValue)