Class Widget

java.lang.Object
lukas.wais.smart.mirror.model.Widget

public class Widget
extends java.lang.Object
Widget factory. Every widget that is supported is created here.
Author:
Lukas Wais
  • Constructor Summary

    Constructors 
    Constructor Description
    Widget()  
  • Method Summary

    Modifier and Type Method Description
    javafx.scene.Node getCalendar()
    Calendar panel from TilesFX.
    javafx.scene.Node getClock()
    Clock panel from TilesFX.
    javafx.scene.Node getCovid()
    Covid world cases widget.
    javafx.scene.Node getGreetings​(java.lang.String greetings)
    Greetings Panel
    javafx.scene.Node getJoke()
    Jokes panel with the button that toggles the joke method of the Joke class.
    javafx.scene.Node getMarkets()
    Stock market widget.
    javafx.scene.Node getPublicTransport()
    WebView of Google's public transport service.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • getGreetings

      public javafx.scene.Node getGreetings​(java.lang.String greetings)
      Greetings Panel
      Parameters:
      greetings - text for the greetings panel.
      Returns:
      new Node for the GUI
    • getJoke

      public javafx.scene.Node getJoke()
      Jokes panel with the button that toggles the joke method of the Joke class.
      Returns:
      new Node for the GUI
      See Also:
      Joke
    • getCalendar

      public javafx.scene.Node getCalendar()
      Calendar panel from TilesFX.
      Returns:
      new Node for the GUI
      See Also:
      TilesFX
    • getClock

      public javafx.scene.Node getClock()
      Clock panel from TilesFX.
      Returns:
      new Node for the GUI
      See Also:
      TilesFX
    • getPublicTransport

      public javafx.scene.Node getPublicTransport()
      WebView of Google's public transport service.
      Returns:
      new Node for the GUI
      See Also:
      Google Transit
    • getMarkets

      public javafx.scene.Node getMarkets()
      Stock market widget. Created by Trading view. Stored locally in the project.
      Returns:
      new Node for the GUI
      See Also:
      TradingView
    • getCovid

      public javafx.scene.Node getCovid()
      Covid world cases widget. Created by Trading view. Stored locally in the project.
      Returns:
      new Node for the GUI
      See Also:
      TradingView