Package sac.control

Class FloatController

java.lang.Object
sac.control.FloatController
Direct Known Subclasses:
HoldController, LineCountController, ScoreController, TimedController

public abstract class FloatController extends Object
Define a controller whose view element is floating (can be adjusted to different container).
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected javafx.scene.layout.VBox
     
    protected javafx.scene.Node
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    FloatController(javafx.scene.layout.VBox container)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected abstract void
    Init current controller.
    protected void
    Template method.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • container

      protected javafx.scene.layout.VBox container
    • root

      protected javafx.scene.Node root
  • Constructor Details

    • FloatController

      public FloatController(javafx.scene.layout.VBox container)
  • Method Details

    • initialize

      protected void initialize()
      Template method. Set the root view element controlled into the container. Subclass should not override this method.
    • init

      protected abstract void init()
      Init current controller.