Interface PartialImport


public interface PartialImport
A partial import, i.e. an element which is importable, proposed to the end user.
  • Method Details

    • getKey

      Gets the key. Must be unique across the whole application (you should prefix it, for instance "plugins/my-plugin").
      Returns:
      the key
    • getLabel

      Gets the label
      Returns:
      the label
    • toJson

      default Map<String,Object> toJson()
      Jsonify this partial import for client-side
      Returns:
      the JSON representation of this partial import
    • of

      static PartialImport of(String key, I18nizableText label)
      Builds a partial import.
      Parameters:
      key - the key
      label - the label
      Returns:
      a partial import