Interface PartialImport
public interface PartialImport
A partial import, i.e. an element which is importable, proposed to the end user.
-
Method Summary
Modifier and TypeMethodDescriptiongetKey()Gets the key.getLabel()Gets the labelstatic PartialImportof(String key, I18nizableText label) Builds a partial import.toJson()Jsonify this partial import for client-side
-
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
Jsonify this partial import for client-side- Returns:
- the JSON representation of this partial import
-
of
Builds a partial import.- Parameters:
key- the keylabel- the label- Returns:
- a partial import
-