public void setMediaData(final String type, final byte[] data, final String altText) {
        final int mediaId = this.mediaId >= 0 ? -1 : this.mediaId - 1;
        setMediaData(mediaId, type, "id" + mediaId, altText, () -> data);
    }
Allows live-editing of a formula, optionally associated with a Variable List
main/src/main/java/cgeo/geocaching/ui/WherigoMediaView.java