Interface Renderer

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface Renderer
Describes a page, for one dashboard, each time it is drawn.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    render(View view, Viewer viewer)
    Describes the page.
  • Method Details

    • render

      void render(View view, Viewer viewer) throws Exception
      Describes the page. It runs where the page says (Page.on(Execution)), and has 10 seconds: reading what the plugin keeps in memory is the idea, not waiting on a database (keep the result of such a read and Extension.refresh(String) when it changes).
      Parameters:
      view - what the page will show
      viewer - who looks at it
      Throws:
      Exception - anything: the page then says the plugin could not draw it, and the console shows why