1 DocHTMLComponent
werwolf2303 edited this page 2023-08-23 18:48:39 +02:00

HTMLComponent

Displays html inside the setup

Only basic html support! No JavaScript


Example

HTMLComponent html = new HTMLComponent(); //Create instance of HTMLComponent
1. html.load("Hello World"); //Display hello world
2. html.load(new URL("https://www.google.de")); //Display google.de

Available methods

Public

  • getName() -> Returns "HTMLComponent"
  • load(String: html) -> Set html to display
  • load(URL: url) -> Display website

Private

  • drawable() -> Returns the internal JPanel
  • init() -> Used inside Setup class
  • nowVisible() -> Used inside Setup class
  • onLeave() -> Used inside Setup class
  • giveComponents(...) -> Used inside Setup class