Class MapEntryControl

    • Constructor Detail

      • MapEntryControl

        protected MapEntryControl​(String type,
                                  IValueAccessor<?> root,
                                  String path,
                                  String key)
        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 Detail

      • getKey

        public String 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 the key, if possible. If the entry cannot be removed, this method does nothing.