| java.lang.Object | |
| ↳ | com.esri.core.map.popup.PopupFieldInfo |
The PopupFieldInfo class defines information about how a graphic's attribute (field) should be displayed in a popup.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| PopupFieldInfo() | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| static PopupFieldInfo |
fromJson(JsonParser parser)
Constructs a PopupFieldInfo object from its JSON representation.
| ||||||||||
| String |
getFieldName()
Returns the popup field's name.
| ||||||||||
| PopupFormatValue |
getFormat()
Returns the format of the field.
| ||||||||||
| String |
getLabel()
Returns the popup field's label.
| ||||||||||
| String |
getTooltip()
Returns the popup field's tooltip.
| ||||||||||
| boolean |
isEditable()
Returns true if this field is allowed to be modified and shown in a PopupView in the editing mode.
| ||||||||||
| boolean |
isVisible()
Returns true if this field is shown in a PopupView in the viewing mode.
| ||||||||||
| void |
setEditable(boolean isEditable)
Sets the editability of this field.
| ||||||||||
| void |
setFieldName(String fieldName)
Sets the popup field's name.
| ||||||||||
| void |
setFormat(PopupFormatValue format)
Sets the popup field's format from a
PopupFormatValue. | ||||||||||
| void |
setLabel(String label)
Sets the popup field's label.
| ||||||||||
| void |
setTooltip(String tooltip)
Sets the popup field's tooltip.
| ||||||||||
| void |
setVisible(boolean visible)
Sets the visibility of this field.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Constructs a PopupFieldInfo object from its JSON representation.
| parser | A JSON parser object whose position is set at the "fieldInfos" node. |
|---|
PopupFieldInfo object.| Exception | An exception that occurred during parsing. |
|---|
Returns true if this field is allowed to be modified and shown in a PopupView in the editing mode. Otherwise it is false.
Returns true if this field is shown in a PopupView in the viewing mode. Otherwise it is false.
Sets the editability of this field.
| isEditable | True if the field should be editable, false otherwise |
|---|
Sets the popup field's name.
| fieldName | The name of the field |
|---|
Sets the popup field's format from a PopupFormatValue.
| format | The PopupFormatValue of the field |
|---|
Sets the popup field's label.
| label | The label of the field |
|---|
Sets the popup field's tooltip.
| tooltip | The tool tip of the field |
|---|
Sets the visibility of this field.
| visible | True if the field should be visible, false otherwise |
|---|