Class MapEntryControl
java.lang.Object
de.xima.fc.gui.model.value_descriptor_form.Control
de.xima.fc.gui.model.value_descriptor_form.ValueReferencingControl
de.xima.fc.gui.model.value_descriptor_form.MapEntryControl
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
MapEntryEndControl, MapEntryStartControl
Base class of a
Control for a map entry container, either the start or end of a map entry. A map entry is
part of a map value. Each entry is enclosed in a container. A map entry container may have a delete button to remove
the entry from the map.- Since:
- 8.5.0
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedMapEntryControl(String type, IValueAccessor<?> root, String path, String key) Creates a new map entry control. -
Method Summary
Methods inherited from class ValueReferencingControl
readValue, writeValue
-
Constructor Details
-
MapEntryControl
Creates a new map entry control.- Parameters:
type- The type of the control that determines how it is rendered.root- The root object against which the path is evaluated.path- The JSON path expression that references the list.key- The key of the map entry this control is associated with.
-
-
Method Details
-
getKey
Gets the key of the map entry this control is associated with.- Returns:
- The key of the map entry.
-
removeRow
public void removeRow()Mutates the referenced map by removing the entry with thekey, if possible. If the entry cannot be removed, this method does nothing.
-