Subversion Repositories HomeAutomation

Rev

Blame | Last modification | View Log | SVN | RSS feed

  1. /**
  2.  * File created by Jimmy
  3.  * at 2003-dec-28 13:08:55
  4.  */
  5. package Macbeth.System;
  6.  
  7. /**
  8.  * Implement this interface if your component has a HTML
  9.  * interface. A HTML interface can be anything from a
  10.  * simple page showing some information about your component
  11.  * to an advanced page with links for controlling
  12.  * functionality in your component. Very basic command-line
  13.  * kernels might never use these HTML capabilities, but
  14.  * more advanced GUI-kernels will.
  15.  */
  16. public interface MbHTMLInterface {
  17.  
  18.     /**
  19.      * Retreives the full code for your HTML-page. This is
  20.      * formatted as plain text and must be valid HTML-code.
  21.      * @return Full HTML-code for the page.
  22.      */
  23.     abstract public String getHTMLPage();
  24.  
  25.     /**
  26.      * This method is invoked when a link is pressed on your
  27.      * HTML-page.
  28.      * @param href The href-attribute of the link.
  29.      */
  30.     abstract public void linkPressed(String href);
  31.  
  32. }