Class BaseView

All Implemented Interfaces:
Styleable, EventTarget

public abstract class BaseView extends Pane
FX Base View.
  • Field Details

    • app

      protected BaseApp app
      Reference to application.
    • stage

      protected Stage stage
      Reference to stage.
    • model

      protected BaseModel model
      Reference to model.
    • controller

      protected BaseController controller
      Reference to controller.
  • Constructor Details

    • BaseView

      public BaseView(BaseApp app, Stage stage, String styleResourcePath)
      Base view.

      The scene carries the autumo-ui base style first; the application's own style sheet follows on top if it ships one, i.e. if styleResourcePath is not null and resolves to an application resource. A later style sheet wins per property, so an application only overrides what it really wants - the base look stays the foundation.

      Parameters:
      app - app
      stage - stage
      styleResourcePath - relative style ('style/style.css') file name or fully qualified resource path, null for the base look only
  • Method Details

    • getApp

      public BaseApp getApp()
      Get the application.
      Returns:
      application
    • getStage

      public Stage getStage()
      Get the stage.
      Returns:
      stage stage
    • getController

      public BaseController getController()
      Get controller.
      Returns:
      controller
    • setController

      public void setController(BaseController controller)
      Set the controller.
      Parameters:
      controller - controller
    • getModel

      public BaseModel getModel()
      Get model.
      Returns:
      model
    • setModel

      public void setModel(BaseModel model)
      Set the model.
      Parameters:
      model - model
    • show

      public void show(boolean visible)
      Show view or not.
      Parameters:
      visible - true to show this view.